package
Version:
v0.0.0-...-cff5d44
Opens a new window with list of versions in this module.
Published: Aug 17, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Bind(v interface{}) error
type Database struct {
Host string `yaml:"host"`
Port string `yaml:"port"`
User string `yaml:"user"`
Pass string `yaml:"pass"`
Name string `yaml:"name"`
SslMode string `yaml:"ssl_mode"`
Migrate bool `yaml:"migrate"`
}
type EventStream struct {
StreamUrl string `yaml:"stream_url"`
}
type I18n struct {
Locales []string `yaml:"locales"`
Default string `yaml:"default"`
}
type Keyval struct {
Host string `yaml:"host"`
Port string `yaml:"port"`
Pw string `yaml:"pw"`
Db int `yaml:"db"`
}
type Observer struct {
Name string `yaml:"name"`
Endpoint string `yaml:"endpoint"`
UseSSL bool `yaml:"use_ssl"`
}
type Rest struct {
Host string `yaml:"host"`
Port string `yaml:"port"`
Domain string `yaml:"domain"`
AllowMethods string `yaml:"allowed_methods"`
AllowOrigins string `yaml:"allowed_origins"`
AllowCred bool `yaml:"allow_credentials"`
}
type Rpc struct {
Host string `yaml:"host"`
Port string `yaml:"port"`
Domain string `yaml:"domain"`
UseSSL bool `yaml:"use_ssl"`
}
type Token struct {
PublicKeyFile string `yaml:"public_key_file"`
PrivateKeyFile string `yaml:"private_key_file"`
Project string `yaml:"project"`
SignMethod string `yaml:"sign_method"`
}
type Turnstile struct {
Secret string `yaml:"secret"`
Skip bool `yaml:"skip"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.