circuitv1_pb

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCircuitv1        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCircuitv1          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCircuitv1 = fmt.Errorf("proto: unexpected end of group")
)
View Source
var CircuitRelay_Status_name = map[int32]string{
	100: "SUCCESS",
	220: "HOP_SRC_ADDR_TOO_LONG",
	221: "HOP_DST_ADDR_TOO_LONG",
	250: "HOP_SRC_MULTIADDR_INVALID",
	251: "HOP_DST_MULTIADDR_INVALID",
	260: "HOP_NO_CONN_TO_DST",
	261: "HOP_CANT_DIAL_DST",
	262: "HOP_CANT_OPEN_DST_STREAM",
	270: "HOP_CANT_SPEAK_RELAY",
	280: "HOP_CANT_RELAY_TO_SELF",
	320: "STOP_SRC_ADDR_TOO_LONG",
	321: "STOP_DST_ADDR_TOO_LONG",
	350: "STOP_SRC_MULTIADDR_INVALID",
	351: "STOP_DST_MULTIADDR_INVALID",
	390: "STOP_RELAY_REFUSED",
	400: "MALFORMED_MESSAGE",
}
View Source
var CircuitRelay_Status_value = map[string]int32{
	"SUCCESS":                    100,
	"HOP_SRC_ADDR_TOO_LONG":      220,
	"HOP_DST_ADDR_TOO_LONG":      221,
	"HOP_SRC_MULTIADDR_INVALID":  250,
	"HOP_DST_MULTIADDR_INVALID":  251,
	"HOP_NO_CONN_TO_DST":         260,
	"HOP_CANT_DIAL_DST":          261,
	"HOP_CANT_OPEN_DST_STREAM":   262,
	"HOP_CANT_SPEAK_RELAY":       270,
	"HOP_CANT_RELAY_TO_SELF":     280,
	"STOP_SRC_ADDR_TOO_LONG":     320,
	"STOP_DST_ADDR_TOO_LONG":     321,
	"STOP_SRC_MULTIADDR_INVALID": 350,
	"STOP_DST_MULTIADDR_INVALID": 351,
	"STOP_RELAY_REFUSED":         390,
	"MALFORMED_MESSAGE":          400,
}
View Source
var CircuitRelay_Type_name = map[int32]string{
	1: "HOP",
	2: "STOP",
	3: "STATUS",
	4: "CAN_HOP",
}
View Source
var CircuitRelay_Type_value = map[string]int32{
	"HOP":     1,
	"STOP":    2,
	"STATUS":  3,
	"CAN_HOP": 4,
}

Functions

This section is empty.

Types

type CircuitRelay

type CircuitRelay struct {
	Type                 *CircuitRelay_Type   `protobuf:"varint,1,opt,name=type,enum=circuitv1.pb.CircuitRelay_Type" json:"type,omitempty"`
	SrcPeer              *CircuitRelay_Peer   `protobuf:"bytes,2,opt,name=srcPeer" json:"srcPeer,omitempty"`
	DstPeer              *CircuitRelay_Peer   `protobuf:"bytes,3,opt,name=dstPeer" json:"dstPeer,omitempty"`
	Code                 *CircuitRelay_Status `protobuf:"varint,4,opt,name=code,enum=circuitv1.pb.CircuitRelay_Status" json:"code,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*CircuitRelay) Descriptor

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

func (*CircuitRelay) GetCode

func (m *CircuitRelay) GetCode() CircuitRelay_Status

func (*CircuitRelay) GetDstPeer

func (m *CircuitRelay) GetDstPeer() *CircuitRelay_Peer

func (*CircuitRelay) GetSrcPeer

func (m *CircuitRelay) GetSrcPeer() *CircuitRelay_Peer

func (*CircuitRelay) GetType

func (m *CircuitRelay) GetType() CircuitRelay_Type

func (*CircuitRelay) Marshal

func (m *CircuitRelay) Marshal() (dAtA []byte, err error)

func (*CircuitRelay) MarshalTo

func (m *CircuitRelay) MarshalTo(dAtA []byte) (int, error)

func (*CircuitRelay) MarshalToSizedBuffer

func (m *CircuitRelay) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CircuitRelay) ProtoMessage

func (*CircuitRelay) ProtoMessage()

func (*CircuitRelay) Reset

func (m *CircuitRelay) Reset()

func (*CircuitRelay) Size

func (m *CircuitRelay) Size() (n int)

func (*CircuitRelay) String

func (m *CircuitRelay) String() string

func (*CircuitRelay) Unmarshal

func (m *CircuitRelay) Unmarshal(dAtA []byte) error

func (*CircuitRelay) XXX_DiscardUnknown

func (m *CircuitRelay) XXX_DiscardUnknown()

func (*CircuitRelay) XXX_Marshal

func (m *CircuitRelay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CircuitRelay) XXX_Merge

func (m *CircuitRelay) XXX_Merge(src proto.Message)

func (*CircuitRelay) XXX_Size

func (m *CircuitRelay) XXX_Size() int

func (*CircuitRelay) XXX_Unmarshal

func (m *CircuitRelay) XXX_Unmarshal(b []byte) error

type CircuitRelay_Peer

type CircuitRelay_Peer struct {
	Id                   []byte   `protobuf:"bytes,1,req,name=id" json:"id,omitempty"`
	Addrs                [][]byte `protobuf:"bytes,2,rep,name=addrs" json:"addrs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CircuitRelay_Peer) Descriptor

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

func (*CircuitRelay_Peer) GetAddrs

func (m *CircuitRelay_Peer) GetAddrs() [][]byte

func (*CircuitRelay_Peer) GetId

func (m *CircuitRelay_Peer) GetId() []byte

func (*CircuitRelay_Peer) Marshal

func (m *CircuitRelay_Peer) Marshal() (dAtA []byte, err error)

func (*CircuitRelay_Peer) MarshalTo

func (m *CircuitRelay_Peer) MarshalTo(dAtA []byte) (int, error)

func (*CircuitRelay_Peer) MarshalToSizedBuffer

func (m *CircuitRelay_Peer) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CircuitRelay_Peer) ProtoMessage

func (*CircuitRelay_Peer) ProtoMessage()

func (*CircuitRelay_Peer) Reset

func (m *CircuitRelay_Peer) Reset()

func (*CircuitRelay_Peer) Size

func (m *CircuitRelay_Peer) Size() (n int)

func (*CircuitRelay_Peer) String

func (m *CircuitRelay_Peer) String() string

func (*CircuitRelay_Peer) Unmarshal

func (m *CircuitRelay_Peer) Unmarshal(dAtA []byte) error

func (*CircuitRelay_Peer) XXX_DiscardUnknown

func (m *CircuitRelay_Peer) XXX_DiscardUnknown()

func (*CircuitRelay_Peer) XXX_Marshal

func (m *CircuitRelay_Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CircuitRelay_Peer) XXX_Merge

func (m *CircuitRelay_Peer) XXX_Merge(src proto.Message)

func (*CircuitRelay_Peer) XXX_Size

func (m *CircuitRelay_Peer) XXX_Size() int

func (*CircuitRelay_Peer) XXX_Unmarshal

func (m *CircuitRelay_Peer) XXX_Unmarshal(b []byte) error

type CircuitRelay_Status

type CircuitRelay_Status int32
const (
	CircuitRelay_SUCCESS                    CircuitRelay_Status = 100
	CircuitRelay_HOP_SRC_ADDR_TOO_LONG      CircuitRelay_Status = 220
	CircuitRelay_HOP_DST_ADDR_TOO_LONG      CircuitRelay_Status = 221
	CircuitRelay_HOP_SRC_MULTIADDR_INVALID  CircuitRelay_Status = 250
	CircuitRelay_HOP_DST_MULTIADDR_INVALID  CircuitRelay_Status = 251
	CircuitRelay_HOP_NO_CONN_TO_DST         CircuitRelay_Status = 260
	CircuitRelay_HOP_CANT_DIAL_DST          CircuitRelay_Status = 261
	CircuitRelay_HOP_CANT_OPEN_DST_STREAM   CircuitRelay_Status = 262
	CircuitRelay_HOP_CANT_SPEAK_RELAY       CircuitRelay_Status = 270
	CircuitRelay_HOP_CANT_RELAY_TO_SELF     CircuitRelay_Status = 280
	CircuitRelay_STOP_SRC_ADDR_TOO_LONG     CircuitRelay_Status = 320
	CircuitRelay_STOP_DST_ADDR_TOO_LONG     CircuitRelay_Status = 321
	CircuitRelay_STOP_SRC_MULTIADDR_INVALID CircuitRelay_Status = 350
	CircuitRelay_STOP_DST_MULTIADDR_INVALID CircuitRelay_Status = 351
	CircuitRelay_STOP_RELAY_REFUSED         CircuitRelay_Status = 390
	CircuitRelay_MALFORMED_MESSAGE          CircuitRelay_Status = 400
)

func (CircuitRelay_Status) Enum

func (CircuitRelay_Status) EnumDescriptor

func (CircuitRelay_Status) EnumDescriptor() ([]byte, []int)

func (CircuitRelay_Status) String

func (x CircuitRelay_Status) String() string

func (*CircuitRelay_Status) UnmarshalJSON

func (x *CircuitRelay_Status) UnmarshalJSON(data []byte) error

type CircuitRelay_Type

type CircuitRelay_Type int32
const (
	CircuitRelay_HOP     CircuitRelay_Type = 1
	CircuitRelay_STOP    CircuitRelay_Type = 2
	CircuitRelay_STATUS  CircuitRelay_Type = 3
	CircuitRelay_CAN_HOP CircuitRelay_Type = 4
)

func (CircuitRelay_Type) Enum

func (CircuitRelay_Type) EnumDescriptor

func (CircuitRelay_Type) EnumDescriptor() ([]byte, []int)

func (CircuitRelay_Type) String

func (x CircuitRelay_Type) String() string

func (*CircuitRelay_Type) UnmarshalJSON

func (x *CircuitRelay_Type) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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