Documentation ¶
Index ¶
- type LineReader
- type Parser
- type ProtobufParser
- type ProtobufReader
- type ProtobufWriter
- type Reader
- type StringParser
- type StringWriter
- type TCPClient
- func (c *TCPClient) Close() error
- func (c *TCPClient) Connect() error
- func (c *TCPClient) GetParser() Parser
- func (c *TCPClient) GetReader() Reader
- func (c *TCPClient) IsConnected() bool
- func (c *TCPClient) SetParser(parser Parser)
- func (c *TCPClient) SetReader(reader Reader)
- func (c *TCPClient) Write(data []byte) ([]byte, error)
- func (c *TCPClient) WriteData(v interface{}) ([]byte, error)
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LineReader ¶
type LineReader struct {
// contains filtered or unexported fields
}
type ProtobufParser ¶
type ProtobufParser struct {
// contains filtered or unexported fields
}
func (*ProtobufParser) Marshal ¶
func (p *ProtobufParser) Marshal(v interface{}) (data []byte, err error)
func (*ProtobufParser) Register ¶
func (p *ProtobufParser) Register(args ...interface{}) error
func (*ProtobufParser) SetHandler ¶
func (p *ProtobufParser) SetHandler(h func(v interface{}), args ...interface{}) error
func (*ProtobufParser) Unmarshal ¶
func (p *ProtobufParser) Unmarshal(data []byte) (v interface{}, err error)
type ProtobufReader ¶
type ProtobufReader struct { }
type ProtobufWriter ¶
type ProtobufWriter struct { }
type StringParser ¶
type StringParser struct {
// contains filtered or unexported fields
}
func (*StringParser) Marshal ¶
func (p *StringParser) Marshal(v interface{}) (data []byte, err error)
func (*StringParser) Register ¶
func (p *StringParser) Register(args ...interface{}) error
func (*StringParser) SetHandler ¶
func (p *StringParser) SetHandler(h func(interface{}), args ...interface{}) error
func (*StringParser) Unmarshal ¶
func (p *StringParser) Unmarshal(data []byte) (v interface{}, err error)
type StringWriter ¶
type StringWriter struct { }
Click to show internal directories.
Click to hide internal directories.