internal

package
v0.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2018 License: AGPL-3.0 Imports: 4 Imported by: 0

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
PayloadNetworkUpdate
PayloadCtrl
PayloadBandwidth
PayloadMonitor
PayloadHello
PayloadConnect
PayloadDisconnect
PayloadNode
PayloadHeartbeat
PayloadProxyUpdate

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) Descriptor() ([]byte, []int)

func (*Header) GetId

func (m *Header) GetId() int32

func (*Header) GetModules

func (m *Header) GetModules() []string

func (*Header) GetProtocolVersion

func (m *Header) GetProtocolVersion() string

func (*Header) GetSentAt

func (m *Header) GetSentAt() *google_protobuf.Timestamp

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) Reset

func (m *Header) Reset()

func (*Header) String

func (m *Header) String() string

type PayloadBandwidth

type PayloadBandwidth struct {
	// node identifier.
	NodeID string `protobuf:"bytes,4,opt,name=nodeID" json:"nodeID,omitempty"`
	// 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) GetNodeID added in v0.5.1

func (m *PayloadBandwidth) GetNodeID() string

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 (*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 {
	// feature contains the feature that should be monitored.
	Feature int32 `protobuf:"varint,1,opt,name=feature" json:"feature,omitempty"`
}

func (*PayloadMonitor) Descriptor added in v0.4.0

func (*PayloadMonitor) Descriptor() ([]byte, []int)

func (*PayloadMonitor) GetFeature added in v0.5.1

func (m *PayloadMonitor) GetFeature() 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 PayloadNetworkUpdate added in v0.5.1

type PayloadNetworkUpdate struct {
	NodeID string `protobuf:"bytes,3,opt,name=nodeID" json:"nodeID,omitempty"`
	// operation is the event that occured to remote node.
	Operation int32 `protobuf:"varint,1,opt,name=operation" json:"operation,omitempty"`
	// remoteNode is the node on which actions where taken.
	RemoteNode *PayloadNode `protobuf:"bytes,2,opt,name=remoteNode" json:"remoteNode,omitempty"`
}

func (*PayloadNetworkUpdate) Descriptor added in v0.5.1

func (*PayloadNetworkUpdate) Descriptor() ([]byte, []int)

func (*PayloadNetworkUpdate) GetNodeID added in v0.5.1

func (m *PayloadNetworkUpdate) GetNodeID() string

func (*PayloadNetworkUpdate) GetOperation added in v0.5.1

func (m *PayloadNetworkUpdate) GetOperation() int32

func (*PayloadNetworkUpdate) GetRemoteNode added in v0.5.1

func (m *PayloadNetworkUpdate) GetRemoteNode() *PayloadNode

func (*PayloadNetworkUpdate) ProtoMessage added in v0.5.1

func (*PayloadNetworkUpdate) ProtoMessage()

func (*PayloadNetworkUpdate) Reset added in v0.5.1

func (m *PayloadNetworkUpdate) Reset()

func (*PayloadNetworkUpdate) String added in v0.5.1

func (m *PayloadNetworkUpdate) 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 {
	NodeID string `protobuf:"bytes,3,opt,name=nodeID" json:"nodeID,omitempty"`
	// 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) GetNodeID added in v0.5.1

func (m *PayloadProxyUpdate) GetNodeID() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL