Documentation ¶
Overview ¶
Package internal is a generated protocol buffer package.
It is generated from these files:
header.proto payload.proto
It has these top-level messages:
Header PayloadCtrl PayloadBandwidth PayloadMonitor PayloadHello PayloadConnect PayloadDisconnect PayloadNode PayloadHeartbeat PayloadProxyUpdate
Index ¶
- type Header
- func (*Header) Descriptor() ([]byte, []int)
- func (m *Header) GetId() int32
- func (m *Header) GetModules() []string
- func (m *Header) GetProtocolVersion() string
- func (m *Header) GetSentAt() *google_protobuf.Timestamp
- func (*Header) ProtoMessage()
- func (m *Header) Reset()
- func (m *Header) String() string
- type PayloadBandwidth
- func (*PayloadBandwidth) Descriptor() ([]byte, []int)
- func (m *PayloadBandwidth) GetBandwidth() int64
- func (m *PayloadBandwidth) GetTot() int64
- func (m *PayloadBandwidth) GetType() string
- func (*PayloadBandwidth) ProtoMessage()
- func (m *PayloadBandwidth) Reset()
- func (m *PayloadBandwidth) String() string
- type PayloadConnect
- type PayloadCtrl
- type PayloadDisconnect
- type PayloadHeartbeat
- func (*PayloadHeartbeat) Descriptor() ([]byte, []int)
- func (m *PayloadHeartbeat) GetHops() int32
- func (m *PayloadHeartbeat) GetId() string
- func (m *PayloadHeartbeat) GetTtl() *google_protobuf.Timestamp
- func (*PayloadHeartbeat) ProtoMessage()
- func (m *PayloadHeartbeat) Reset()
- func (m *PayloadHeartbeat) String() string
- type PayloadHello
- type PayloadMonitor
- type PayloadNode
- func (*PayloadNode) Descriptor() ([]byte, []int)
- func (m *PayloadNode) GetActive() bool
- func (m *PayloadNode) GetBaddr() string
- func (m *PayloadNode) GetId() string
- func (m *PayloadNode) GetPaddr() string
- func (m *PayloadNode) GetTunnels() []*PayloadNode_Tunnel
- func (*PayloadNode) ProtoMessage()
- func (m *PayloadNode) Reset()
- func (m *PayloadNode) String() string
- type PayloadNode_Tunnel
- func (*PayloadNode_Tunnel) Descriptor() ([]byte, []int)
- func (m *PayloadNode_Tunnel) GetCopies() int32
- func (m *PayloadNode_Tunnel) GetId() string
- func (m *PayloadNode_Tunnel) GetTarget() string
- func (*PayloadNode_Tunnel) ProtoMessage()
- func (m *PayloadNode_Tunnel) Reset()
- func (m *PayloadNode_Tunnel) String() string
- type PayloadProxyUpdate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Header ¶
type Header struct { // id is the header identifier. Example: Hello message (represented as int). Id int32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` // modules contains the ids of the other modules present in the package. Modules []string `protobuf:"bytes,2,rep,name=modules" json:"modules,omitempty"` // sentAt tells when the message was send. SentAt *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=sentAt" json:"sentAt,omitempty"` // protocolVersion used by the packet. ProtocolVersion string `protobuf:"bytes,4,opt,name=protocolVersion" json:"protocolVersion,omitempty"` }
func (*Header) Descriptor ¶
func (*Header) GetModules ¶
func (*Header) GetProtocolVersion ¶
func (*Header) GetSentAt ¶
func (m *Header) GetSentAt() *google_protobuf.Timestamp
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
type PayloadBandwidth ¶
type PayloadBandwidth struct { // tot is the total number of bytes transmitted. Tot int64 `protobuf:"varint,1,opt,name=tot" json:"tot,omitempty"` // bandwidth is the current bandwidth. Bandwidth int64 `protobuf:"varint,2,opt,name=bandwidth" json:"bandwidth,omitempty"` // type is the transmission direction, i.e. dowload/upload Type string `protobuf:"bytes,3,opt,name=type" json:"type,omitempty"` }
func (*PayloadBandwidth) Descriptor ¶
func (*PayloadBandwidth) Descriptor() ([]byte, []int)
func (*PayloadBandwidth) GetBandwidth ¶
func (m *PayloadBandwidth) GetBandwidth() int64
func (*PayloadBandwidth) GetTot ¶
func (m *PayloadBandwidth) GetTot() int64
func (*PayloadBandwidth) GetType ¶
func (m *PayloadBandwidth) GetType() string
func (*PayloadBandwidth) ProtoMessage ¶
func (*PayloadBandwidth) ProtoMessage()
func (*PayloadBandwidth) Reset ¶
func (m *PayloadBandwidth) Reset()
func (*PayloadBandwidth) String ¶
func (m *PayloadBandwidth) String() string
type PayloadConnect ¶
type PayloadConnect struct { // target of the connect procedure. Target string `protobuf:"bytes,1,opt,name=target" json:"target,omitempty"` }
func (*PayloadConnect) Descriptor ¶
func (*PayloadConnect) Descriptor() ([]byte, []int)
func (*PayloadConnect) GetTarget ¶
func (m *PayloadConnect) GetTarget() string
func (*PayloadConnect) ProtoMessage ¶
func (*PayloadConnect) ProtoMessage()
func (*PayloadConnect) Reset ¶
func (m *PayloadConnect) Reset()
func (*PayloadConnect) String ¶
func (m *PayloadConnect) String() string
type PayloadCtrl ¶
type PayloadCtrl struct { // operation is the operation that has to be performed. // See Ctrl operations in protocol.go Operation int32 `protobuf:"varint,1,opt,name=operation" json:"operation,omitempty"` }
func (*PayloadCtrl) Descriptor ¶
func (*PayloadCtrl) Descriptor() ([]byte, []int)
func (*PayloadCtrl) GetOperation ¶
func (m *PayloadCtrl) GetOperation() int32
func (*PayloadCtrl) ProtoMessage ¶
func (*PayloadCtrl) ProtoMessage()
func (*PayloadCtrl) Reset ¶
func (m *PayloadCtrl) Reset()
func (*PayloadCtrl) String ¶
func (m *PayloadCtrl) String() string
type PayloadDisconnect ¶
type PayloadDisconnect struct { // id is the identifier of the node that should be disconnected Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` }
func (*PayloadDisconnect) Descriptor ¶
func (*PayloadDisconnect) Descriptor() ([]byte, []int)
func (*PayloadDisconnect) GetId ¶
func (m *PayloadDisconnect) GetId() string
func (*PayloadDisconnect) ProtoMessage ¶
func (*PayloadDisconnect) ProtoMessage()
func (*PayloadDisconnect) Reset ¶
func (m *PayloadDisconnect) Reset()
func (*PayloadDisconnect) String ¶
func (m *PayloadDisconnect) String() string
type PayloadHeartbeat ¶
type PayloadHeartbeat struct { // id is the identifier of the heartbeat message. Should be unique. Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // hops is the number of times that the heartbeat message has been reused. Hops int32 `protobuf:"varint,2,opt,name=hops" json:"hops,omitempty"` // ttl is the time to leave. Ttl *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=ttl" json:"ttl,omitempty"` }
func (*PayloadHeartbeat) Descriptor ¶
func (*PayloadHeartbeat) Descriptor() ([]byte, []int)
func (*PayloadHeartbeat) GetHops ¶
func (m *PayloadHeartbeat) GetHops() int32
func (*PayloadHeartbeat) GetId ¶
func (m *PayloadHeartbeat) GetId() string
func (*PayloadHeartbeat) GetTtl ¶
func (m *PayloadHeartbeat) GetTtl() *google_protobuf.Timestamp
func (*PayloadHeartbeat) ProtoMessage ¶
func (*PayloadHeartbeat) ProtoMessage()
func (*PayloadHeartbeat) Reset ¶
func (m *PayloadHeartbeat) Reset()
func (*PayloadHeartbeat) String ¶
func (m *PayloadHeartbeat) String() string
type PayloadHello ¶
type PayloadHello struct { // bport is the booster listening port. Bport string `protobuf:"bytes,1,opt,name=bport" json:"bport,omitempty"` // pport is the proxy listening port. Pport string `protobuf:"bytes,2,opt,name=pport" json:"pport,omitempty"` }
func (*PayloadHello) Descriptor ¶
func (*PayloadHello) Descriptor() ([]byte, []int)
func (*PayloadHello) GetBport ¶
func (m *PayloadHello) GetBport() string
func (*PayloadHello) GetPport ¶
func (m *PayloadHello) GetPport() string
func (*PayloadHello) ProtoMessage ¶
func (*PayloadHello) ProtoMessage()
func (*PayloadHello) Reset ¶
func (m *PayloadHello) Reset()
func (*PayloadHello) String ¶
func (m *PayloadHello) String() string
type PayloadMonitor ¶ added in v0.4.0
type PayloadMonitor struct { // features contains the features that should be inspected. Features []int32 `protobuf:"varint,1,rep,packed,name=features" json:"features,omitempty"` }
func (*PayloadMonitor) Descriptor ¶ added in v0.4.0
func (*PayloadMonitor) Descriptor() ([]byte, []int)
func (*PayloadMonitor) GetFeatures ¶ added in v0.4.0
func (m *PayloadMonitor) GetFeatures() []int32
func (*PayloadMonitor) ProtoMessage ¶ added in v0.4.0
func (*PayloadMonitor) ProtoMessage()
func (*PayloadMonitor) Reset ¶ added in v0.4.0
func (m *PayloadMonitor) Reset()
func (*PayloadMonitor) String ¶ added in v0.4.0
func (m *PayloadMonitor) String() string
type PayloadNode ¶
type PayloadNode struct { // id is the identifier of the node. Usually a sha1 hash. Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // baddr is the booster listening address. Baddr string `protobuf:"bytes,2,opt,name=baddr" json:"baddr,omitempty"` // paddr is the proxy listening address. Paddr string `protobuf:"bytes,3,opt,name=paddr" json:"paddr,omitempty"` // active tells the connection state of the node. Active bool `protobuf:"varint,4,opt,name=active" json:"active,omitempty"` // tunnels are the proxy tunnels managed by this node. Tunnels []*PayloadNode_Tunnel `protobuf:"bytes,5,rep,name=tunnels" json:"tunnels,omitempty"` }
func (*PayloadNode) Descriptor ¶
func (*PayloadNode) Descriptor() ([]byte, []int)
func (*PayloadNode) GetActive ¶
func (m *PayloadNode) GetActive() bool
func (*PayloadNode) GetBaddr ¶
func (m *PayloadNode) GetBaddr() string
func (*PayloadNode) GetId ¶
func (m *PayloadNode) GetId() string
func (*PayloadNode) GetPaddr ¶
func (m *PayloadNode) GetPaddr() string
func (*PayloadNode) GetTunnels ¶
func (m *PayloadNode) GetTunnels() []*PayloadNode_Tunnel
func (*PayloadNode) ProtoMessage ¶
func (*PayloadNode) ProtoMessage()
func (*PayloadNode) Reset ¶
func (m *PayloadNode) Reset()
func (*PayloadNode) String ¶
func (m *PayloadNode) String() string
type PayloadNode_Tunnel ¶
type PayloadNode_Tunnel struct { // id is the tunnel identifier. Usally a sha1 hash. Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // target is the remote endpoint address of the tunnel. Target string `protobuf:"bytes,2,opt,name=target" json:"target,omitempty"` // copies are the replications of this tunnel. Copies int32 `protobuf:"varint,4,opt,name=copies" json:"copies,omitempty"` }
func (*PayloadNode_Tunnel) Descriptor ¶
func (*PayloadNode_Tunnel) Descriptor() ([]byte, []int)
func (*PayloadNode_Tunnel) GetCopies ¶
func (m *PayloadNode_Tunnel) GetCopies() int32
func (*PayloadNode_Tunnel) GetId ¶
func (m *PayloadNode_Tunnel) GetId() string
func (*PayloadNode_Tunnel) GetTarget ¶
func (m *PayloadNode_Tunnel) GetTarget() string
func (*PayloadNode_Tunnel) ProtoMessage ¶
func (*PayloadNode_Tunnel) ProtoMessage()
func (*PayloadNode_Tunnel) Reset ¶
func (m *PayloadNode_Tunnel) Reset()
func (*PayloadNode_Tunnel) String ¶
func (m *PayloadNode_Tunnel) String() string
type PayloadProxyUpdate ¶ added in v0.4.0
type PayloadProxyUpdate struct { // target is the remote endpoint address of the tunnel. Target string `protobuf:"bytes,1,opt,name=target" json:"target,omitempty"` // operation is the action performed on the tunnel. Operation int32 `protobuf:"varint,2,opt,name=operation" json:"operation,omitempty"` }
func (*PayloadProxyUpdate) Descriptor ¶ added in v0.4.0
func (*PayloadProxyUpdate) Descriptor() ([]byte, []int)
func (*PayloadProxyUpdate) GetOperation ¶ added in v0.4.0
func (m *PayloadProxyUpdate) GetOperation() int32
func (*PayloadProxyUpdate) GetTarget ¶ added in v0.4.0
func (m *PayloadProxyUpdate) GetTarget() string
func (*PayloadProxyUpdate) ProtoMessage ¶ added in v0.4.0
func (*PayloadProxyUpdate) ProtoMessage()
func (*PayloadProxyUpdate) Reset ¶ added in v0.4.0
func (m *PayloadProxyUpdate) Reset()
func (*PayloadProxyUpdate) String ¶ added in v0.4.0
func (m *PayloadProxyUpdate) String() string
Click to show internal directories.
Click to hide internal directories.