Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelServer ¶
type ChannelServer struct {
// contains filtered or unexported fields
}
func NewChannelServer ¶
func NewChannelServer(cfg *Config) *ChannelServer
func (*ChannelServer) Serve ¶
func (s *ChannelServer) Serve(ctx *gosync.Context) error
Serve starts serving and blocked until shutdown or error occurs
func (*ChannelServer) Stop ¶
func (s *ChannelServer) Stop()
type Config ¶
type Config struct { LogLevel string `toml:"log-level"` ListenClients string `toml:"listen-clients"` DataSource models.DataSourceConfig `toml:"data-source"` SendOps string `toml:"send-ops"` RecvOps string `toml:"recv-ops"` TestServer bool `toml:"test-server"` }
func (*Config) LoadFromFile ¶
Click to show internal directories.
Click to hide internal directories.