Documentation
¶
Index ¶
Constants ¶
View Source
const ContextKey = "run/state-global"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // only used for Unmarshal, do not access XXX_Include []ConfigSource `hcl:"include"` DB struct { PingTimeoutMs int `hcl:"ping_timeout_ms"` URL string `hcl:"url"` } Money struct { Scale int `hcl:"scale"` } Tax struct { Ru2019 struct { Tag1009 string // payment address Tag1187 string // payment place Tag1018 string // business INN Tag1055 int // uint32 tax form Tag1199 int // uint32 tax rate Umka struct { BaseURL string `hcl:"base_url"` XXX_testRT http.RoundTripper `hcl:"-"` } } } Tele tele_config.Config // contains filtered or unexported fields }
func MustReadConfig ¶
func MustReadConfig(log *log2.Log, fs FullReader, names ...string) *Config
func ReadConfig ¶
type ConfigSource ¶
type FullReader ¶
type Global ¶
type MockFullReader ¶
func NewMockFullReader ¶
func NewMockFullReader(sources map[string]string) *MockFullReader
func (*MockFullReader) Normalize ¶
func (self *MockFullReader) Normalize(name string) string
type OsFullReader ¶
type OsFullReader struct {
// contains filtered or unexported fields
}
func NewOsFullReader ¶
func NewOsFullReader() *OsFullReader
func (OsFullReader) Normalize ¶
func (self OsFullReader) Normalize(path string) string
func (*OsFullReader) SetBase ¶
func (self *OsFullReader) SetBase(path string)
Click to show internal directories.
Click to hide internal directories.