Documentation
¶
Index ¶
Constants ¶
View Source
const ( CodeConfig = "configuration" CodeRoute = "route" CodeConnect = "connect" CodeDisconnect = "disconnect" CodeToken = "token" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Address string `json:"address,omitempty"` // Address ( IPv4, IPv6, path or an abstract socket ) the control server should listen on
Certificate string `json:"certificate,omitempty"` // Certificate file path
Key string `json:"key,omitempty"` // Key file path
LineLogBufferSize int `json:"logBufferSize,omitempty"` // Turns line log buffering on when larger than 0, affects only service mode
}
type Result ¶
type Server ¶
type Server struct {
*Config
// contains filtered or unexported fields
}
func New ¶
func New(serverConfiguration ServerConfiguration) *Server
type ServerConfiguration ¶
type ServerConfiguration interface {
GetConnectionConfiguration() *connection.Config
GetControlConfiguration() *Config
SaveJson() error
}
Click to show internal directories.
Click to hide internal directories.