proxy

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HANDSHAKECOMMAND_name = map[int32]string{
		0: "HANDSHAKECOMMAND_UNSPECIFIED",
		1: "HANDSHAKECOMMAND_SESSION_CANCEL",
	}
	HANDSHAKECOMMAND_value = map[string]int32{
		"HANDSHAKECOMMAND_UNSPECIFIED":    0,
		"HANDSHAKECOMMAND_SESSION_CANCEL": 1,
	}
)

Enum value maps for HANDSHAKECOMMAND.

View Source
var File_worker_proxy_v1_proxy_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ClientHandshake

type ClientHandshake struct {
	TofuToken string           `protobuf:"bytes,10,opt,name=tofu_token,json=tofuToken,proto3" json:"tofu_token,omitempty"`
	Command   HANDSHAKECOMMAND `protobuf:"varint,20,opt,name=command,proto3,enum=worker.proxy.v1.HANDSHAKECOMMAND" json:"command,omitempty"`
	// contains filtered or unexported fields
}

func (*ClientHandshake) Descriptor deprecated

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

Deprecated: Use ClientHandshake.ProtoReflect.Descriptor instead.

func (*ClientHandshake) GetCommand added in v0.1.3

func (x *ClientHandshake) GetCommand() HANDSHAKECOMMAND

func (*ClientHandshake) GetTofuToken

func (x *ClientHandshake) GetTofuToken() string

func (*ClientHandshake) ProtoMessage

func (*ClientHandshake) ProtoMessage()

func (*ClientHandshake) ProtoReflect

func (x *ClientHandshake) ProtoReflect() protoreflect.Message

func (*ClientHandshake) Reset

func (x *ClientHandshake) Reset()

func (*ClientHandshake) String

func (x *ClientHandshake) String() string

type HANDSHAKECOMMAND added in v0.1.3

type HANDSHAKECOMMAND int32
const (
	// Note: Unspecified is the desired zero value based on protolint, but for
	// our purposes it simply means a normal connection.
	HANDSHAKECOMMAND_HANDSHAKECOMMAND_UNSPECIFIED    HANDSHAKECOMMAND = 0
	HANDSHAKECOMMAND_HANDSHAKECOMMAND_SESSION_CANCEL HANDSHAKECOMMAND = 1
)

func (HANDSHAKECOMMAND) Descriptor added in v0.1.3

func (HANDSHAKECOMMAND) Enum added in v0.1.3

func (HANDSHAKECOMMAND) EnumDescriptor deprecated added in v0.1.3

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

Deprecated: Use HANDSHAKECOMMAND.Descriptor instead.

func (HANDSHAKECOMMAND) Number added in v0.1.3

func (HANDSHAKECOMMAND) String added in v0.1.3

func (x HANDSHAKECOMMAND) String() string

func (HANDSHAKECOMMAND) Type added in v0.1.3

type HandshakeResult

type HandshakeResult struct {
	Expiration      *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=expiration,proto3" json:"expiration,omitempty"`
	ConnectionLimit int32                  `protobuf:"varint,20,opt,name=connection_limit,json=connectionLimit,proto3" json:"connection_limit,omitempty"`
	ConnectionsLeft int32                  `protobuf:"varint,30,opt,name=connections_left,json=connectionsLeft,proto3" json:"connections_left,omitempty"`
	// contains filtered or unexported fields
}

func (*HandshakeResult) Descriptor deprecated

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

Deprecated: Use HandshakeResult.ProtoReflect.Descriptor instead.

func (*HandshakeResult) GetConnectionLimit

func (x *HandshakeResult) GetConnectionLimit() int32

func (*HandshakeResult) GetConnectionsLeft

func (x *HandshakeResult) GetConnectionsLeft() int32

func (*HandshakeResult) GetExpiration

func (x *HandshakeResult) GetExpiration() *timestamppb.Timestamp

func (*HandshakeResult) ProtoMessage

func (*HandshakeResult) ProtoMessage()

func (*HandshakeResult) ProtoReflect

func (x *HandshakeResult) ProtoReflect() protoreflect.Message

func (*HandshakeResult) Reset

func (x *HandshakeResult) Reset()

func (*HandshakeResult) String

func (x *HandshakeResult) String() string

Jump to

Keyboard shortcuts

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