Documentation ¶
Index ¶
- Variables
- type Command
- type Sock
- func (this *Sock) Close() error
- func (this *Sock) Dial() (net.Conn, error)
- func (this *Sock) DialTimeout(timeout time.Duration) (net.Conn, error)
- func (this *Sock) IsListening() bool
- func (this *Sock) Listen() error
- func (this *Sock) On(cmd string, f func(params map[string]interface{}))
- func (this *Sock) OnCommand(f func(cmd *Command))
- func (this *Sock) OnError(f func(err error))
- func (this *Sock) Path() string
- func (this *Sock) Send(cmd *Command) (reply *Command, err error)
- func (this *Sock) SendTimeout(cmd *Command, timeout time.Duration) (reply *Command, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSockInUse = errors.New("bind: address already in use")
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Sock ¶
type Sock struct {
// contains filtered or unexported fields
}
func NewTmpSock ¶
func (*Sock) IsListening ¶
Click to show internal directories.
Click to hide internal directories.