Documentation
¶
Index ¶
- Constants
- type API
- type APIBase
- func (api *APIBase) AttachConveyorBelts(lineID string, fromShip, toShip chan *container.Container)
- func (api *APIBase) Call(handlerID uint8, c *container.Container) *Call
- func (api *APIBase) EndCall(id uint32)
- func (api *APIBase) GetNextID() uint32
- func (api *APIBase) Init(server, initiator bool, fromShip, toShip chan *container.Container)
- func (api *APIBase) IsAbandoned() bool
- func (api *APIBase) RegisterHandler(id uint8, handler ApiHandler)
- func (api *APIBase) Run()
- func (api *APIBase) Send(id uint32, msgType uint8, c *container.Container)
- func (api *APIBase) Shutdown()
- type ApiError
- type ApiHandler
- type ApiMsg
- type Call
Constants ¶
View Source
const ( API_CALL uint8 = iota // initiate API_ACK // ack and stop API_DATA // data API_ERR // error, must not mean stop API_END // silent stop )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIBase ¶
type APIBase struct {
// contains filtered or unexported fields
}
func (*APIBase) AttachConveyorBelts ¶
AttachConveyorBelts attaches the Conveyor to a line.
func (*APIBase) IsAbandoned ¶
func (*APIBase) RegisterHandler ¶
func (api *APIBase) RegisterHandler(id uint8, handler ApiHandler)
type ApiHandler ¶
Click to show internal directories.
Click to hide internal directories.