Documentation
¶
Index ¶
- Variables
- func New(port int, usr interface{}, brk breaker.Breaker, df DealFunc) *server
- func NewMessageWriter(w *bufio.Writer) *messageWriter
- func NewUnit(rc int, addr string, timeout time.Duration) *unit
- type DealFunc
- type Message
- type MessageArray
- type MessageError
- type MessageWriter
- type Server
- type Unit
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TYPEERROR = errors.New("Unsupport Type") ENCODEERROR = errors.New("Failed To Encode") )
Functions ¶
func NewMessageWriter ¶
Types ¶
type DealFunc ¶
type DealFunc (func(interface{}, MessageWriter, *Message))
type MessageArray ¶
type MessageArray struct {
M []string
}
type MessageError ¶
type MessageError struct {
M string
}
type MessageWriter ¶
Click to show internal directories.
Click to hide internal directories.