Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustMarshalAny ¶
MustMarshalAny serializes a protobuf message into an Any or panics.
func NameFromMessage ¶
func NameFromMessage(msg *protocolpb.Message) (string, error)
NameFromMessage extracts the name of the protocol to which the supplied message belongs.
Types ¶
type Instance ¶
type Instance interface { HandleMessage(*protocolpb.Message) error HasCompleted() bool }
Instance is the required interface for protocol objects.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry stores running protocols.
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) ClearCompleted ¶
func (r *Registry) ClearCompleted()
ClearCopmleted walks the registered protocols and removes those that have completed.
Click to show internal directories.
Click to hide internal directories.