circuit_pb

package
v0.20.4 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCircuit        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCircuit          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCircuit = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthVoucher        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowVoucher          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupVoucher = fmt.Errorf("proto: unexpected end of group")
)
View Source
var HopMessage_Type_name = map[int32]string{
	0: "RESERVE",
	1: "CONNECT",
	2: "STATUS",
}
View Source
var HopMessage_Type_value = map[string]int32{
	"RESERVE": 0,
	"CONNECT": 1,
	"STATUS":  2,
}
View Source
var Status_name = map[int32]string{
	100: "OK",
	200: "RESERVATION_REFUSED",
	201: "RESOURCE_LIMIT_EXCEEDED",
	202: "PERMISSION_DENIED",
	203: "CONNECTION_FAILED",
	204: "NO_RESERVATION",
	400: "MALFORMED_MESSAGE",
	401: "UNEXPECTED_MESSAGE",
}
View Source
var Status_value = map[string]int32{
	"OK":                      100,
	"RESERVATION_REFUSED":     200,
	"RESOURCE_LIMIT_EXCEEDED": 201,
	"PERMISSION_DENIED":       202,
	"CONNECTION_FAILED":       203,
	"NO_RESERVATION":          204,
	"MALFORMED_MESSAGE":       400,
	"UNEXPECTED_MESSAGE":      401,
}
View Source
var StopMessage_Type_name = map[int32]string{
	0: "CONNECT",
	1: "STATUS",
}
View Source
var StopMessage_Type_value = map[string]int32{
	"CONNECT": 0,
	"STATUS":  1,
}

Functions

This section is empty.

Types

type HopMessage

type HopMessage struct {
	Type                 *HopMessage_Type `protobuf:"varint,1,req,name=type,enum=circuit.pb.HopMessage_Type" json:"type,omitempty"`
	Peer                 *Peer            `protobuf:"bytes,2,opt,name=peer" json:"peer,omitempty"`
	Reservation          *Reservation     `protobuf:"bytes,3,opt,name=reservation" json:"reservation,omitempty"`
	Limit                *Limit           `protobuf:"bytes,4,opt,name=limit" json:"limit,omitempty"`
	Status               *Status          `protobuf:"varint,5,opt,name=status,enum=circuit.pb.Status" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*HopMessage) Descriptor

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

func (*HopMessage) GetLimit

func (m *HopMessage) GetLimit() *Limit

func (*HopMessage) GetPeer

func (m *HopMessage) GetPeer() *Peer

func (*HopMessage) GetReservation

func (m *HopMessage) GetReservation() *Reservation

func (*HopMessage) GetStatus

func (m *HopMessage) GetStatus() Status

func (*HopMessage) GetType

func (m *HopMessage) GetType() HopMessage_Type

func (*HopMessage) Marshal

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

func (*HopMessage) MarshalTo

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

func (*HopMessage) MarshalToSizedBuffer

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

func (*HopMessage) ProtoMessage

func (*HopMessage) ProtoMessage()

func (*HopMessage) Reset

func (m *HopMessage) Reset()

func (*HopMessage) Size

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

func (*HopMessage) String

func (m *HopMessage) String() string

func (*HopMessage) Unmarshal

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

func (*HopMessage) XXX_DiscardUnknown

func (m *HopMessage) XXX_DiscardUnknown()

func (*HopMessage) XXX_Marshal

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

func (*HopMessage) XXX_Merge

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

func (*HopMessage) XXX_Size

func (m *HopMessage) XXX_Size() int

func (*HopMessage) XXX_Unmarshal

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

type HopMessage_Type

type HopMessage_Type int32
const (
	HopMessage_RESERVE HopMessage_Type = 0
	HopMessage_CONNECT HopMessage_Type = 1
	HopMessage_STATUS  HopMessage_Type = 2
)

func (HopMessage_Type) Enum

func (x HopMessage_Type) Enum() *HopMessage_Type

func (HopMessage_Type) EnumDescriptor

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

func (HopMessage_Type) String

func (x HopMessage_Type) String() string

func (*HopMessage_Type) UnmarshalJSON

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

type Limit

type Limit struct {
	Duration             *uint32  `protobuf:"varint,1,opt,name=duration" json:"duration,omitempty"`
	Data                 *uint64  `protobuf:"varint,2,opt,name=data" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Limit) Descriptor

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

func (*Limit) GetData

func (m *Limit) GetData() uint64

func (*Limit) GetDuration

func (m *Limit) GetDuration() uint32

func (*Limit) Marshal

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

func (*Limit) MarshalTo

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

func (*Limit) MarshalToSizedBuffer

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

func (*Limit) ProtoMessage

func (*Limit) ProtoMessage()

func (*Limit) Reset

func (m *Limit) Reset()

func (*Limit) Size

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

func (*Limit) String

func (m *Limit) String() string

func (*Limit) Unmarshal

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

func (*Limit) XXX_DiscardUnknown

func (m *Limit) XXX_DiscardUnknown()

func (*Limit) XXX_Marshal

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

func (*Limit) XXX_Merge

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

func (*Limit) XXX_Size

func (m *Limit) XXX_Size() int

func (*Limit) XXX_Unmarshal

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

type Peer

type 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 (*Peer) Descriptor

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

func (*Peer) GetAddrs

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

func (*Peer) GetId

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

func (*Peer) Marshal

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

func (*Peer) MarshalTo

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

func (*Peer) MarshalToSizedBuffer

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

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) Reset

func (m *Peer) Reset()

func (*Peer) Size

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

func (*Peer) String

func (m *Peer) String() string

func (*Peer) Unmarshal

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

func (*Peer) XXX_DiscardUnknown

func (m *Peer) XXX_DiscardUnknown()

func (*Peer) XXX_Marshal

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

func (*Peer) XXX_Merge

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

func (*Peer) XXX_Size

func (m *Peer) XXX_Size() int

func (*Peer) XXX_Unmarshal

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

type Reservation

type Reservation struct {
	Expire               *uint64  `protobuf:"varint,1,req,name=expire" json:"expire,omitempty"`
	Addrs                [][]byte `protobuf:"bytes,2,rep,name=addrs" json:"addrs,omitempty"`
	Voucher              []byte   `protobuf:"bytes,3,opt,name=voucher" json:"voucher,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Reservation) Descriptor

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

func (*Reservation) GetAddrs

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

func (*Reservation) GetExpire

func (m *Reservation) GetExpire() uint64

func (*Reservation) GetVoucher

func (m *Reservation) GetVoucher() []byte

func (*Reservation) Marshal

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

func (*Reservation) MarshalTo

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

func (*Reservation) MarshalToSizedBuffer

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

func (*Reservation) ProtoMessage

func (*Reservation) ProtoMessage()

func (*Reservation) Reset

func (m *Reservation) Reset()

func (*Reservation) Size

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

func (*Reservation) String

func (m *Reservation) String() string

func (*Reservation) Unmarshal

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

func (*Reservation) XXX_DiscardUnknown

func (m *Reservation) XXX_DiscardUnknown()

func (*Reservation) XXX_Marshal

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

func (*Reservation) XXX_Merge

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

func (*Reservation) XXX_Size

func (m *Reservation) XXX_Size() int

func (*Reservation) XXX_Unmarshal

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

type ReservationVoucher

type ReservationVoucher struct {
	Relay                []byte   `protobuf:"bytes,1,req,name=relay" json:"relay,omitempty"`
	Peer                 []byte   `protobuf:"bytes,2,req,name=peer" json:"peer,omitempty"`
	Expiration           *uint64  `protobuf:"varint,3,req,name=expiration" json:"expiration,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReservationVoucher) Descriptor

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

func (*ReservationVoucher) GetExpiration

func (m *ReservationVoucher) GetExpiration() uint64

func (*ReservationVoucher) GetPeer

func (m *ReservationVoucher) GetPeer() []byte

func (*ReservationVoucher) GetRelay

func (m *ReservationVoucher) GetRelay() []byte

func (*ReservationVoucher) Marshal

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

func (*ReservationVoucher) MarshalTo

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

func (*ReservationVoucher) MarshalToSizedBuffer

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

func (*ReservationVoucher) ProtoMessage

func (*ReservationVoucher) ProtoMessage()

func (*ReservationVoucher) Reset

func (m *ReservationVoucher) Reset()

func (*ReservationVoucher) Size

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

func (*ReservationVoucher) String

func (m *ReservationVoucher) String() string

func (*ReservationVoucher) Unmarshal

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

func (*ReservationVoucher) XXX_DiscardUnknown

func (m *ReservationVoucher) XXX_DiscardUnknown()

func (*ReservationVoucher) XXX_Marshal

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

func (*ReservationVoucher) XXX_Merge

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

func (*ReservationVoucher) XXX_Size

func (m *ReservationVoucher) XXX_Size() int

func (*ReservationVoucher) XXX_Unmarshal

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

type Status

type Status int32
const (
	Status_OK                      Status = 100
	Status_RESERVATION_REFUSED     Status = 200
	Status_RESOURCE_LIMIT_EXCEEDED Status = 201
	Status_PERMISSION_DENIED       Status = 202
	Status_CONNECTION_FAILED       Status = 203
	Status_NO_RESERVATION          Status = 204
	Status_MALFORMED_MESSAGE       Status = 400
	Status_UNEXPECTED_MESSAGE      Status = 401
)

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor

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

func (Status) String

func (x Status) String() string

func (*Status) UnmarshalJSON

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

type StopMessage

type StopMessage struct {
	Type                 *StopMessage_Type `protobuf:"varint,1,req,name=type,enum=circuit.pb.StopMessage_Type" json:"type,omitempty"`
	Peer                 *Peer             `protobuf:"bytes,2,opt,name=peer" json:"peer,omitempty"`
	Limit                *Limit            `protobuf:"bytes,3,opt,name=limit" json:"limit,omitempty"`
	Status               *Status           `protobuf:"varint,4,opt,name=status,enum=circuit.pb.Status" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*StopMessage) Descriptor

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

func (*StopMessage) GetLimit

func (m *StopMessage) GetLimit() *Limit

func (*StopMessage) GetPeer

func (m *StopMessage) GetPeer() *Peer

func (*StopMessage) GetStatus

func (m *StopMessage) GetStatus() Status

func (*StopMessage) GetType

func (m *StopMessage) GetType() StopMessage_Type

func (*StopMessage) Marshal

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

func (*StopMessage) MarshalTo

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

func (*StopMessage) MarshalToSizedBuffer

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

func (*StopMessage) ProtoMessage

func (*StopMessage) ProtoMessage()

func (*StopMessage) Reset

func (m *StopMessage) Reset()

func (*StopMessage) Size

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

func (*StopMessage) String

func (m *StopMessage) String() string

func (*StopMessage) Unmarshal

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

func (*StopMessage) XXX_DiscardUnknown

func (m *StopMessage) XXX_DiscardUnknown()

func (*StopMessage) XXX_Marshal

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

func (*StopMessage) XXX_Merge

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

func (*StopMessage) XXX_Size

func (m *StopMessage) XXX_Size() int

func (*StopMessage) XXX_Unmarshal

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

type StopMessage_Type

type StopMessage_Type int32
const (
	StopMessage_CONNECT StopMessage_Type = 0
	StopMessage_STATUS  StopMessage_Type = 1
)

func (StopMessage_Type) Enum

func (StopMessage_Type) EnumDescriptor

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

func (StopMessage_Type) String

func (x StopMessage_Type) String() string

func (*StopMessage_Type) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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