messages

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Protocol_name = map[int32]string{
		0: "TCP",
		1: "HTTP",
	}
	Protocol_value = map[string]int32{
		"TCP":  0,
		"HTTP": 1,
	}
)

Enum value maps for Protocol.

View Source
var (
	TunnelStatus_name = map[int32]string{
		0: "NOT_USED",
		1: "ERROR",
		2: "ALREADY_EXISTS",
		3: "OK",
	}
	TunnelStatus_value = map[string]int32{
		"NOT_USED":       0,
		"ERROR":          1,
		"ALREADY_EXISTS": 2,
		"OK":             3,
	}
)

Enum value maps for TunnelStatus.

View Source
var File_messages_proto protoreflect.FileDescriptor

Functions

func ReadMsg

func ReadMsg(c net.Conn) (msg proto.Message, err error)

func ReadMsgInto

func ReadMsgInto(c net.Conn, msg proto.Message) (err error)

func WriteMsg

func WriteMsg(c net.Conn, msg proto.Message) (err error)

Types

type Auth

type Auth struct {
	User     string            `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	Password string            `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	Metadata map[string]string `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Auth) Descriptor deprecated

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

Deprecated: Use Auth.ProtoReflect.Descriptor instead.

func (*Auth) GetMetadata

func (x *Auth) GetMetadata() map[string]string

func (*Auth) GetPassword

func (x *Auth) GetPassword() string

func (*Auth) GetUser

func (x *Auth) GetUser() string

func (*Auth) ProtoMessage

func (*Auth) ProtoMessage()

func (*Auth) ProtoReflect

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

func (*Auth) Reset

func (x *Auth) Reset()

func (*Auth) String

func (x *Auth) String() string

type HttpTunnel

type HttpTunnel struct {
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// contains filtered or unexported fields
}

func (*HttpTunnel) Descriptor deprecated

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

Deprecated: Use HttpTunnel.ProtoReflect.Descriptor instead.

func (*HttpTunnel) GetHost

func (x *HttpTunnel) GetHost() string

func (*HttpTunnel) ProtoMessage

func (*HttpTunnel) ProtoMessage()

func (*HttpTunnel) ProtoReflect

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

func (*HttpTunnel) Reset

func (x *HttpTunnel) Reset()

func (*HttpTunnel) String

func (x *HttpTunnel) String() string

type HttpTunnelRequest

type HttpTunnelRequest struct {
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// contains filtered or unexported fields
}

func (*HttpTunnelRequest) Descriptor deprecated

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

Deprecated: Use HttpTunnelRequest.ProtoReflect.Descriptor instead.

func (*HttpTunnelRequest) GetHost

func (x *HttpTunnelRequest) GetHost() string

func (*HttpTunnelRequest) ProtoMessage

func (*HttpTunnelRequest) ProtoMessage()

func (*HttpTunnelRequest) ProtoReflect

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

func (*HttpTunnelRequest) Reset

func (x *HttpTunnelRequest) Reset()

func (*HttpTunnelRequest) String

func (x *HttpTunnelRequest) String() string

type Protocol

type Protocol int32
const (
	Protocol_TCP  Protocol = 0
	Protocol_HTTP Protocol = 1
)

func (Protocol) Descriptor

func (Protocol) Descriptor() protoreflect.EnumDescriptor

func (Protocol) Enum

func (x Protocol) Enum() *Protocol

func (Protocol) EnumDescriptor deprecated

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

Deprecated: Use Protocol.Descriptor instead.

func (Protocol) Number

func (x Protocol) Number() protoreflect.EnumNumber

func (Protocol) String

func (x Protocol) String() string

func (Protocol) Type

type TlsTunnel

type TlsTunnel struct {
	Sni string `protobuf:"bytes,1,opt,name=sni,proto3" json:"sni,omitempty"`
	// contains filtered or unexported fields
}

func (*TlsTunnel) Descriptor deprecated

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

Deprecated: Use TlsTunnel.ProtoReflect.Descriptor instead.

func (*TlsTunnel) GetSni

func (x *TlsTunnel) GetSni() string

func (*TlsTunnel) ProtoMessage

func (*TlsTunnel) ProtoMessage()

func (*TlsTunnel) ProtoReflect

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

func (*TlsTunnel) Reset

func (x *TlsTunnel) Reset()

func (*TlsTunnel) String

func (x *TlsTunnel) String() string

type TlsTunnelRequest

type TlsTunnelRequest struct {
	Sni string `protobuf:"bytes,1,opt,name=sni,proto3" json:"sni,omitempty"`
	// contains filtered or unexported fields
}

func (*TlsTunnelRequest) Descriptor deprecated

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

Deprecated: Use TlsTunnelRequest.ProtoReflect.Descriptor instead.

func (*TlsTunnelRequest) GetSni

func (x *TlsTunnelRequest) GetSni() string

func (*TlsTunnelRequest) ProtoMessage

func (*TlsTunnelRequest) ProtoMessage()

func (*TlsTunnelRequest) ProtoReflect

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

func (*TlsTunnelRequest) Reset

func (x *TlsTunnelRequest) Reset()

func (*TlsTunnelRequest) String

func (x *TlsTunnelRequest) String() string

type TunnelRequest

type TunnelRequest struct {

	// Types that are assignable to Req:
	//	*TunnelRequest_Tls
	//	*TunnelRequest_Http
	Req isTunnelRequest_Req `protobuf_oneof:"req"`
	// contains filtered or unexported fields
}

func (*TunnelRequest) Descriptor deprecated

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

Deprecated: Use TunnelRequest.ProtoReflect.Descriptor instead.

func (*TunnelRequest) GetHttp

func (x *TunnelRequest) GetHttp() *HttpTunnelRequest

func (*TunnelRequest) GetReq

func (m *TunnelRequest) GetReq() isTunnelRequest_Req

func (*TunnelRequest) GetTls

func (x *TunnelRequest) GetTls() *TlsTunnelRequest

func (*TunnelRequest) ProtoMessage

func (*TunnelRequest) ProtoMessage()

func (*TunnelRequest) ProtoReflect

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

func (*TunnelRequest) Reset

func (x *TunnelRequest) Reset()

func (*TunnelRequest) String

func (x *TunnelRequest) String() string

type TunnelRequest_Http

type TunnelRequest_Http struct {
	Http *HttpTunnelRequest `protobuf:"bytes,2,opt,name=http,proto3,oneof"`
}

type TunnelRequest_Tls

type TunnelRequest_Tls struct {
	Tls *TlsTunnelRequest `protobuf:"bytes,1,opt,name=tls,proto3,oneof"`
}

type TunnelResponse

type TunnelResponse struct {
	Status TunnelStatus `protobuf:"varint,1,opt,name=status,proto3,enum=tutorial.TunnelStatus" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*TunnelResponse) Descriptor deprecated

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

Deprecated: Use TunnelResponse.ProtoReflect.Descriptor instead.

func (*TunnelResponse) GetStatus

func (x *TunnelResponse) GetStatus() TunnelStatus

func (*TunnelResponse) ProtoMessage

func (*TunnelResponse) ProtoMessage()

func (*TunnelResponse) ProtoReflect

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

func (*TunnelResponse) Reset

func (x *TunnelResponse) Reset()

func (*TunnelResponse) String

func (x *TunnelResponse) String() string

type TunnelStatus

type TunnelStatus int32
const (
	TunnelStatus_NOT_USED       TunnelStatus = 0
	TunnelStatus_ERROR          TunnelStatus = 1
	TunnelStatus_ALREADY_EXISTS TunnelStatus = 2
	TunnelStatus_OK             TunnelStatus = 3
)

func (TunnelStatus) Descriptor

func (TunnelStatus) Enum

func (x TunnelStatus) Enum() *TunnelStatus

func (TunnelStatus) EnumDescriptor deprecated

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

Deprecated: Use TunnelStatus.Descriptor instead.

func (TunnelStatus) Number

func (TunnelStatus) String

func (x TunnelStatus) String() string

func (TunnelStatus) Type

Jump to

Keyboard shortcuts

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