Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentOptions ¶
type AgentOptions struct { Listen string `json:"listen,omitempty"` ClientID string `json:"clientID,omitempty"` ClientIDSecret string `json:"clientIDSecret,omitempty" description:"client ID secret"` ManufactureFile string `json:"manufactureFile,omitempty" description:"file with manufacture info in json object format"` EdgeHubAddr string `json:"edgeHubAddr,omitempty"` KeepAliveInterval time.Duration `json:"keepAliveInterval,omitempty"` }
func NewDefaultAgentOptions ¶
func NewDefaultAgentOptions() *AgentOptions
type HubOptions ¶
type HubOptions struct { Listen string `json:"listen,omitempty"` ListenGrpc string `json:"listenGrpc,omitempty"` Host string `json:"host,omitempty" validate:"required"` ServerID string `json:"serverID,omitempty" validate:"required"` TLS *TLS `json:"tls,omitempty"` EdgeServerAddr string `json:"edgeServerAddr,omitempty"` }
func NewDefaultHub ¶
func NewDefaultHub() *HubOptions
type ServerOptions ¶
type ServerOptions struct { Listen string `json:"listen,omitempty"` Host string `json:"host,omitempty"` ListenGrpc string `json:"listenGrpc,omitempty"` ServerID string `json:"serverID,omitempty"` TLS *TLS `json:"tls,omitempty"` Database database.Options `json:"database,omitempty"` }
func NewDefaultServer ¶
func NewDefaultServer() *ServerOptions
type TLS ¶
type TLS struct { CertFile string `json:"certFile,omitempty"` KeyFile string `json:"keyFile,omitempty"` CAFile string `json:"caFile,omitempty"` ClientAuth bool `json:"clientAuth,omitempty"` InsecureSkipVerify bool `json:"insecureSkipVerify,omitempty"` }
func NewDefaultTLS ¶
func NewDefaultTLS() *TLS
Click to show internal directories.
Click to hide internal directories.