config

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdditionalTags

type AdditionalTags struct {
	Matches   []string   `yaml:"matches"`
	FieldTags []FieldTag `yaml:"field_tags"`
}

func (AdditionalTags) GetFieldTagsByField

func (a AdditionalTags) GetFieldTagsByField() map[string]map[string]string

func (AdditionalTags) GetStructMatches

func (a AdditionalTags) GetStructMatches() []string

type Config

type Config struct {
	GrpcConfig     GrpcConfig       `yaml:"grpc"`
	AdditionalTags []AdditionalTags `yaml:"additional_tags"`
	PackagesConfig PackagesConfig   `yaml:"packages"`
	// contains filtered or unexported fields
}

func GetDefaultConfig

func GetDefaultConfig() Config

func ReadConfig

func ReadConfig(path string) (Config, error)

func (*Config) BastPath

func (c *Config) BastPath() string

func (*Config) GoModulePath

func (c *Config) GoModulePath() string

type FieldTag

type FieldTag struct {
	FieldName   string            `yaml:"field_name"`
	ValueByTags map[string]string `yaml:"tags"`
}

type GrpcConfig

type GrpcConfig struct {
	Exclude []string `yaml:"exclude"`
}

GrpcConfig ...

type PackageConfig

type PackageConfig struct {
	Structs PackageStructsConfig `yaml:"structs"`
	Dst     string               `yaml:"dst"`
}

type PackageStructsConfig

type PackageStructsConfig struct {
	Include []string `yaml:"include"`
	Exclude []string `yaml:"exclude"`
}

type PackagesConfig

type PackagesConfig map[string]PackageConfig

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL