Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { TLS TLS `yaml:"TLS"` Clients []Client `yaml:"clients"` Payment []PaymentProvider `yaml:"payment"` Storage Storage `yaml:"storage"` Locker Locker `yaml:"locker"` }
AppConfig is the main config structure
func LoadConfig ¶
LoadConfig read file from provided path and returns *AppConfig or error
type Client ¶
Client is the client config structure accept serial and scopse
clients: - serial: "A2FF9503829A3A0DDE9CB87191A472D4" scopes: - READ - WRITE
type Locker ¶
Locker is the lock server handler config
locker: handler: zookeeper address: - localhost
type PaymentProvider ¶
type PaymentProvider struct { Provider string `yaml:"provider"` Secret string `yaml:"secret"` Live bool `yaml:"live"` MerchId string `yaml:"merchId"` PublicKey string `yaml:"pubkey"` PrivateKey string `yaml:"priKey"` }
PaymentProvider is the payment provider config
payment: - provider: Stripe secret: sk_test_0000000000000000000
Click to show internal directories.
Click to hide internal directories.