Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PlumberSrv ¶
type PlumberSrv struct { SrvAddr string // tcp listener map[localPort]listener TcpListenerMap map[int]net.Listener Conf *config.SrvConf // contains filtered or unexported fields }
func NewService ¶
func NewService(conf *config.SrvConf) *PlumberSrv
func (*PlumberSrv) Close ¶
func (s *PlumberSrv) Close()
func (*PlumberSrv) Exit ¶
func (s *PlumberSrv) Exit()
func (*PlumberSrv) HandleClientCommands ¶
func (s *PlumberSrv) HandleClientCommands() error
func (*PlumberSrv) HandleHttpForward ¶
func (s *PlumberSrv) HandleHttpForward() error
func (*PlumberSrv) Run ¶
func (s *PlumberSrv) Run()
type ServProtocol ¶
type ServProtocol struct {
Plumber *PlumberSrv
}
func NewServProtocol ¶
func NewServProtocol(srv *PlumberSrv) *ServProtocol
func (*ServProtocol) ExecCommand ¶
func (s *ServProtocol) ExecCommand(c *client, cmdType protocol.CommandType, params [][]byte) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.