channel

package
v0.0.0-...-769df87 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2018 License: MIT Imports: 16 Imported by: 1

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

func (c *Config) LoadFromFile(f string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL