Documentation ¶
Overview ¶
Package accessors is a generated protocol buffer package.
It is generated from these files:
accessors.proto
It has these top-level messages:
MessageEvent
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accessor ¶
type Accessor interface { // TunnelEvents tunnels events from a connected network into a provided // channel (this should be ran within it's own goroutine), a separate // error channel should also be provided (and checked). TunnelEvents(chan MessageEvent, chan error, chan error) // SendMessage allows a process to send a message through the Accessor // to a connected network. SendMessage(msg string, dest string) error }
Accessor provides access to a network.
type MessageEvent ¶
type MessageEvent struct { Sender *MessageEvent_Sender `protobuf:"bytes,1,opt,name=sender" json:"sender,omitempty"` Origin string `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"` Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` }
MessageEvent is a MessageEvent from a connected network.
func (*MessageEvent) Descriptor ¶
func (*MessageEvent) Descriptor() ([]byte, []int)
func (*MessageEvent) GetBody ¶
func (m *MessageEvent) GetBody() string
func (*MessageEvent) GetOrigin ¶
func (m *MessageEvent) GetOrigin() string
func (*MessageEvent) GetSender ¶
func (m *MessageEvent) GetSender() *MessageEvent_Sender
func (*MessageEvent) ProtoMessage ¶
func (*MessageEvent) ProtoMessage()
func (*MessageEvent) Reset ¶
func (m *MessageEvent) Reset()
func (*MessageEvent) String ¶
func (m *MessageEvent) String() string
type MessageEvent_Sender ¶
type MessageEvent_Sender struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` }
Sender is who sent the message.
func (*MessageEvent_Sender) Descriptor ¶
func (*MessageEvent_Sender) Descriptor() ([]byte, []int)
func (*MessageEvent_Sender) GetId ¶
func (m *MessageEvent_Sender) GetId() string
func (*MessageEvent_Sender) GetName ¶
func (m *MessageEvent_Sender) GetName() string
func (*MessageEvent_Sender) ProtoMessage ¶
func (*MessageEvent_Sender) ProtoMessage()
func (*MessageEvent_Sender) Reset ¶
func (m *MessageEvent_Sender) Reset()
func (*MessageEvent_Sender) String ¶
func (m *MessageEvent_Sender) String() string
Click to show internal directories.
Click to hide internal directories.