Documentation ¶
Index ¶
Constants ¶
View Source
const ( // InvalidRequestErrorCode for invalid requests InvalidRequestErrorCode = command.Code(iota + command.ROUTE) // ResponseWriteErrorCode for response write error RegisterMissingConnIDCode // RegisterRouterErrorCode for register router error RegisterRouterErrorCode // UnregisterRouterErrorCode for unregister router error UnregisterRouterErrorCode // Connection for get connection id error GetConnectionIDErrorCode )
Error codes
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command contains command operations provided by route controller.
func (*Command) Connection ¶
Connection returns the connectionID of the router.
func (*Command) GetHandlers ¶
GetHandlers returns list of all commands supported by this controller command
type RegisterRoute ¶
type RegisterRoute struct {
ConnectionID string `json:"connectionID"`
}
RegisterRoute contains parameters for registering router.
Click to show internal directories.
Click to hide internal directories.