Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) HandleDisconnect ¶
func (*Client) HandleEvents ¶
func (client *Client) HandleEvents(handler func(event *primitives.Message))
func (*Client) SendCommand ¶
func (client *Client) SendCommand(command *primitives.Message)
type ClientConfig ¶ added in v0.3.0
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(config ServerConfig) *Server
func (*Server) HandleHttp ¶ added in v0.2.0
type ServerConfig ¶ added in v0.3.0
type ServerConfig struct { Server struct { Port string `yaml:"port"` Host string `yaml:"host"` } `yaml:"server"` ClientConfig ClientConfig `yaml:"client"` }
func ConfigFromYamlFile ¶ added in v0.3.0
func ConfigFromYamlFile(filePath string, fileName string) (*ServerConfig, error)
Click to show internal directories.
Click to hide internal directories.