Documentation
¶
Index ¶
Constants ¶
View Source
const ( StatusOk = 0 StatusErr = 13 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
Name string
Handler ActionFunc
}
type ActionFunc ¶
type Request ¶
type Request struct {
Action string `json:"ActionFunc"`
Args json.RawMessage `json:"args"`
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) SetHandler ¶
func (sw *Server) SetHandler(name string, action ActionFunc)
Click to show internal directories.
Click to hide internal directories.