Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = DefaultConfig()
View Source
var EnableEmu = false
Functions ¶
Types ¶
type ConfigStruct ¶
type ConfigStruct struct { Debug bool `toml:"debug"` DeviceID string `toml:"device_id"` Secret string `toml:"secret"` DB DB `toml:"db"` BadgerDB BadgerDB `toml:"badger"` NodeClient GRPCClient `toml:"node"` EdgeService GRPCService `toml:"edge"` SlotService GRPCService `toml:"slot"` Sync Sync `toml:"sync"` Status Status `toml:"status"` Gin Gin `toml:"gin"` WebService HttpService `toml:"web"` ApiService HttpService `toml:"api"` Statics []Static `toml:"static"` Upload Upload `toml:"upload"` Slim Slim `toml:"slim"` Source Source `toml:"source"` }
func DefaultConfig ¶
func DefaultConfig() ConfigStruct
func (*ConfigStruct) Validate ¶
func (c *ConfigStruct) Validate() error
type GRPCClient ¶
type GRPCService ¶
type HttpService ¶
Click to show internal directories.
Click to hide internal directories.