tcp

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RrMode string = "RR_MODE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Servers        map[string]*Server `mapstructure:"servers"`
	ReadBufferSize int                `mapstructure:"read_buf_size"`
	Pool           *pool.Config       `mapstructure:"pool"`
}

func (*Config) InitDefault

func (c *Config) InitDefault() error

type Plugin

type Plugin struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Plugin) Close

func (p *Plugin) Close(uuid string) error

func (*Plugin) Exec

func (p *Plugin) Exec(pld *payload.Payload) (*payload.Payload, error)

func (*Plugin) Init

func (p *Plugin) Init(log *zap.Logger, cfg config.Configurer, server server.Server) error

func (*Plugin) Name

func (p *Plugin) Name() string

func (*Plugin) RPC

func (p *Plugin) RPC() interface{}

func (*Plugin) Reset

func (p *Plugin) Reset() error

func (*Plugin) Serve

func (p *Plugin) Serve() chan error

func (*Plugin) Stop

func (p *Plugin) Stop() error

type Server

type Server struct {
	Addr      string `mapstructure:"addr"`
	Delimiter string `mapstructure:"delimiter"`
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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