config

package module
v0.0.0-...-cf08979 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: BSD-3-Clause Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Error error
	Alias struct {
		EmptyValue    string `yaml:"emptyValue"`
		NotEmptyValue string `yaml:"notEmptyValue"`
		NullValue     string `yaml:"nullValue"`
		NotNullValue  string `yaml:"notNullValue"`
	} `yaml:"alias"`
	Resources Resources `json:"resources"`
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(filename string) Config

func (Config) Resource

func (c Config) Resource(name string) (rv ResourceValue)

type OrderFields

type OrderFields []string

func (OrderFields) In

func (of OrderFields) In(key string) bool

type ResourceValue

type ResourceValue struct {
	Where       Where                        `yaml:"where"`
	Convert     map[string]map[string]string `json:"convert"`
	OrderFields OrderFields                  `yaml:"orderFields"`
}

type Resources

type Resources map[string]ResourceValue

func (Resources) In

func (r Resources) In(name string) bool

func (Resources) Value

func (r Resources) Value(name string) ResourceValue

type Where

type Where map[string]string

func (Where) In

func (w Where) In(key string) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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