Documentation ¶
Overview ¶
Package gotocol provides protocol support to send a variety of commands listener channels and types over a single channel type
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Impositions ¶
type Impositions int
Impositions is the promise theory term for requests made to a service
const ( // Hello ChanToParent NameForPirate // initial noodly touch Hello Impositions = iota // NameDrop ChanToBuddy NameOfBuddy // here's someone to talk to NameDrop // Chat - ThisOften // chat to buddies time interval Chat // GoldCoin FromChan HowMuch GoldCoin // Inform loggerChan text message Inform // GetRequest FromChan key // simulate http inbound request GetRequest // GetResponse FromChan value // simulate http outbound response GetResponse // Put - "key value" // save the key and value Put // Goodbye - - // tell FSM and exit Goodbye // test assumes this is the last and exits )
Constant definitions for message types to be imposed on the receiver
func (Impositions) String ¶
func (imps Impositions) String() string
String handler to make imposition types printable
type Message ¶
type Message struct { Imposition Impositions // request type ResponseChan chan Message // place to send response messages Sent time.Time // time at which message was sent Intention string // payload }
Message structure used for all messages, includes a channel of itself
Click to show internal directories.
Click to hide internal directories.