Documentation ¶
Index ¶
- func GetPort(name string) int
- func ReceiveFromController(portNum int, msg string) (string, error)
- func RegisterPortHandler(name string, portHandler PortHandler) int
- func SetControllerContext(ctx sdk.Context) func()
- func UnregisterPortHandler(portNum int) error
- type ActionPusher
- type ControllerAdmissionMsg
- type ControllerContext
- type Jsonable
- type PortHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPortHandler ¶
func RegisterPortHandler(name string, portHandler PortHandler) int
func SetControllerContext ¶
func UnregisterPortHandler ¶
Types ¶
type ActionPusher ¶
ActionPusher enqueues data for later consumption by the controller.
type ControllerAdmissionMsg ¶
type ControllerAdmissionMsg interface { sdk.Msg CheckAdmissibility(sdk.Context, interface{}) error // GetInboundMsgCount returns the number of Swingset messages which will // be added to the inboundQueue. GetInboundMsgCount() int32 // IsHighPriority returns whether the message should be considered for // high priority processing, including bypass of some inbound checks // and queueing on higher priority queues. IsHighPriority(sdk.Context, interface{}) (bool, error) }
type ControllerContext ¶
type Jsonable ¶
type Jsonable interface{}
Jsonable is a value, j, that can be passed through json.Marshal(j).
type PortHandler ¶
type PortHandler interface {
Receive(*ControllerContext, string) (string, error)
}
Click to show internal directories.
Click to hide internal directories.