rpc

package
v14.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_internal_module_reverse_tunnel_rpc_rpc_proto protoreflect.FileDescriptor
View Source
var ReverseTunnel_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gitlab.agent.reverse_tunnel.rpc.ReverseTunnel",
	HandlerType: (*ReverseTunnelServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Connect",
			Handler:       _ReverseTunnel_Connect_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "internal/module/reverse_tunnel/rpc/rpc.proto",
}

ReverseTunnel_ServiceDesc is the grpc.ServiceDesc for ReverseTunnel service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterReverseTunnelServer

func RegisterReverseTunnelServer(s grpc.ServiceRegistrar, srv ReverseTunnelServer)

Types

type CloseSend

type CloseSend struct {
	// contains filtered or unexported fields
}

func (*CloseSend) Descriptor deprecated

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

Deprecated: Use CloseSend.ProtoReflect.Descriptor instead.

func (*CloseSend) ProtoMessage

func (*CloseSend) ProtoMessage()

func (*CloseSend) ProtoReflect

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

func (*CloseSend) Reset

func (x *CloseSend) Reset()

func (*CloseSend) String

func (x *CloseSend) String() string

func (*CloseSend) Validate

func (m *CloseSend) Validate() error

Validate checks the field values on CloseSend with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CloseSend) ValidateAll added in v14.5.0

func (m *CloseSend) ValidateAll() error

ValidateAll checks the field values on CloseSend with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CloseSendMultiError, or nil if none found.

type CloseSendMultiError added in v14.5.0

type CloseSendMultiError []error

CloseSendMultiError is an error wrapping multiple validation errors returned by CloseSend.ValidateAll() if the designated constraints aren't met.

func (CloseSendMultiError) AllErrors added in v14.5.0

func (m CloseSendMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CloseSendMultiError) Error added in v14.5.0

func (m CloseSendMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CloseSendValidationError

type CloseSendValidationError struct {
	// contains filtered or unexported fields
}

CloseSendValidationError is the validation error returned by CloseSend.Validate if the designated constraints aren't met.

func (CloseSendValidationError) Cause

func (e CloseSendValidationError) Cause() error

Cause function returns cause value.

func (CloseSendValidationError) Error

func (e CloseSendValidationError) Error() string

Error satisfies the builtin error interface

func (CloseSendValidationError) ErrorName

func (e CloseSendValidationError) ErrorName() string

ErrorName returns error name.

func (CloseSendValidationError) Field

func (e CloseSendValidationError) Field() string

Field function returns field value.

func (CloseSendValidationError) Key

Key function returns key value.

func (CloseSendValidationError) Reason

func (e CloseSendValidationError) Reason() string

Reason function returns reason value.

type ConnectRequest

type ConnectRequest struct {

	// Types that are assignable to Msg:
	//	*ConnectRequest_Descriptor_
	//	*ConnectRequest_Header
	//	*ConnectRequest_Message
	//	*ConnectRequest_Trailer
	//	*ConnectRequest_Error
	Msg isConnectRequest_Msg `protobuf_oneof:"msg"`
	// contains filtered or unexported fields
}

func (*ConnectRequest) Descriptor deprecated

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

Deprecated: Use ConnectRequest.ProtoReflect.Descriptor instead.

func (*ConnectRequest) GetDescriptor_

func (x *ConnectRequest) GetDescriptor_() *Descriptor

func (*ConnectRequest) GetError

func (x *ConnectRequest) GetError() *Error

func (*ConnectRequest) GetHeader

func (x *ConnectRequest) GetHeader() *Header

func (*ConnectRequest) GetMessage

func (x *ConnectRequest) GetMessage() *Message

func (*ConnectRequest) GetMsg

func (m *ConnectRequest) GetMsg() isConnectRequest_Msg

func (*ConnectRequest) GetTrailer

func (x *ConnectRequest) GetTrailer() *Trailer

func (*ConnectRequest) ProtoMessage

func (*ConnectRequest) ProtoMessage()

func (*ConnectRequest) ProtoReflect

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

func (*ConnectRequest) Reset

func (x *ConnectRequest) Reset()

func (*ConnectRequest) String

func (x *ConnectRequest) String() string

func (*ConnectRequest) Validate

func (m *ConnectRequest) Validate() error

Validate checks the field values on ConnectRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ConnectRequest) ValidateAll added in v14.5.0

func (m *ConnectRequest) ValidateAll() error

ValidateAll checks the field values on ConnectRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConnectRequestMultiError, or nil if none found.

type ConnectRequestMultiError added in v14.5.0

type ConnectRequestMultiError []error

ConnectRequestMultiError is an error wrapping multiple validation errors returned by ConnectRequest.ValidateAll() if the designated constraints aren't met.

func (ConnectRequestMultiError) AllErrors added in v14.5.0

func (m ConnectRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ConnectRequestMultiError) Error added in v14.5.0

func (m ConnectRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ConnectRequestValidationError

type ConnectRequestValidationError struct {
	// contains filtered or unexported fields
}

ConnectRequestValidationError is the validation error returned by ConnectRequest.Validate if the designated constraints aren't met.

func (ConnectRequestValidationError) Cause

Cause function returns cause value.

func (ConnectRequestValidationError) Error

Error satisfies the builtin error interface

func (ConnectRequestValidationError) ErrorName

func (e ConnectRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ConnectRequestValidationError) Field

Field function returns field value.

func (ConnectRequestValidationError) Key

Key function returns key value.

func (ConnectRequestValidationError) Reason

Reason function returns reason value.

type ConnectRequest_Descriptor_

type ConnectRequest_Descriptor_ struct {
	Descriptor_ *Descriptor `protobuf:"bytes,1,opt,name=descriptor,proto3,oneof"`
}

type ConnectRequest_Error

type ConnectRequest_Error struct {
	Error *Error `protobuf:"bytes,5,opt,name=error,proto3,oneof"`
}

type ConnectRequest_Header

type ConnectRequest_Header struct {
	Header *Header `protobuf:"bytes,2,opt,name=header,proto3,oneof"`
}

type ConnectRequest_Message

type ConnectRequest_Message struct {
	Message *Message `protobuf:"bytes,3,opt,name=message,proto3,oneof"`
}

type ConnectRequest_Trailer

type ConnectRequest_Trailer struct {
	Trailer *Trailer `protobuf:"bytes,4,opt,name=trailer,proto3,oneof"`
}

type ConnectResponse

type ConnectResponse struct {

	// Types that are assignable to Msg:
	//	*ConnectResponse_RequestInfo
	//	*ConnectResponse_Message
	//	*ConnectResponse_CloseSend
	Msg isConnectResponse_Msg `protobuf_oneof:"msg"`
	// contains filtered or unexported fields
}

func (*ConnectResponse) Descriptor deprecated

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

Deprecated: Use ConnectResponse.ProtoReflect.Descriptor instead.

func (*ConnectResponse) GetCloseSend

func (x *ConnectResponse) GetCloseSend() *CloseSend

func (*ConnectResponse) GetMessage

func (x *ConnectResponse) GetMessage() *Message

func (*ConnectResponse) GetMsg

func (m *ConnectResponse) GetMsg() isConnectResponse_Msg

func (*ConnectResponse) GetRequestInfo

func (x *ConnectResponse) GetRequestInfo() *RequestInfo

func (*ConnectResponse) ProtoMessage

func (*ConnectResponse) ProtoMessage()

func (*ConnectResponse) ProtoReflect

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

func (*ConnectResponse) Reset

func (x *ConnectResponse) Reset()

func (*ConnectResponse) String

func (x *ConnectResponse) String() string

func (*ConnectResponse) Validate

func (m *ConnectResponse) Validate() error

Validate checks the field values on ConnectResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ConnectResponse) ValidateAll added in v14.5.0

func (m *ConnectResponse) ValidateAll() error

ValidateAll checks the field values on ConnectResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConnectResponseMultiError, or nil if none found.

type ConnectResponseMultiError added in v14.5.0

type ConnectResponseMultiError []error

ConnectResponseMultiError is an error wrapping multiple validation errors returned by ConnectResponse.ValidateAll() if the designated constraints aren't met.

func (ConnectResponseMultiError) AllErrors added in v14.5.0

func (m ConnectResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ConnectResponseMultiError) Error added in v14.5.0

Error returns a concatenation of all the error messages it wraps.

type ConnectResponseValidationError

type ConnectResponseValidationError struct {
	// contains filtered or unexported fields
}

ConnectResponseValidationError is the validation error returned by ConnectResponse.Validate if the designated constraints aren't met.

func (ConnectResponseValidationError) Cause

Cause function returns cause value.

func (ConnectResponseValidationError) Error

Error satisfies the builtin error interface

func (ConnectResponseValidationError) ErrorName

func (e ConnectResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ConnectResponseValidationError) Field

Field function returns field value.

func (ConnectResponseValidationError) Key

Key function returns key value.

func (ConnectResponseValidationError) Reason

Reason function returns reason value.

type ConnectResponse_CloseSend

type ConnectResponse_CloseSend struct {
	CloseSend *CloseSend `protobuf:"bytes,3,opt,name=close_send,json=closeSend,proto3,oneof"`
}

type ConnectResponse_Message

type ConnectResponse_Message struct {
	Message *Message `protobuf:"bytes,2,opt,name=message,proto3,oneof"`
}

type ConnectResponse_RequestInfo

type ConnectResponse_RequestInfo struct {
	RequestInfo *RequestInfo `protobuf:"bytes,1,opt,name=request_info,json=requestInfo,proto3,oneof"`
}

type Descriptor

type Descriptor struct {
	AgentDescriptor *info.AgentDescriptor `protobuf:"bytes,1,opt,name=agent_descriptor,json=agentDescriptor,proto3" json:"agent_descriptor,omitempty"`
	// contains filtered or unexported fields
}

func (*Descriptor) Descriptor deprecated

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

Deprecated: Use Descriptor.ProtoReflect.Descriptor instead.

func (*Descriptor) GetAgentDescriptor

func (x *Descriptor) GetAgentDescriptor() *info.AgentDescriptor

func (*Descriptor) ProtoMessage

func (*Descriptor) ProtoMessage()

func (*Descriptor) ProtoReflect

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

func (*Descriptor) Reset

func (x *Descriptor) Reset()

func (*Descriptor) String

func (x *Descriptor) String() string

func (*Descriptor) Validate

func (m *Descriptor) Validate() error

Validate checks the field values on Descriptor with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Descriptor) ValidateAll added in v14.5.0

func (m *Descriptor) ValidateAll() error

ValidateAll checks the field values on Descriptor with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DescriptorMultiError, or nil if none found.

type DescriptorMultiError added in v14.5.0

type DescriptorMultiError []error

DescriptorMultiError is an error wrapping multiple validation errors returned by Descriptor.ValidateAll() if the designated constraints aren't met.

func (DescriptorMultiError) AllErrors added in v14.5.0

func (m DescriptorMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DescriptorMultiError) Error added in v14.5.0

func (m DescriptorMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DescriptorValidationError

type DescriptorValidationError struct {
	// contains filtered or unexported fields
}

DescriptorValidationError is the validation error returned by Descriptor.Validate if the designated constraints aren't met.

func (DescriptorValidationError) Cause

func (e DescriptorValidationError) Cause() error

Cause function returns cause value.

func (DescriptorValidationError) Error

Error satisfies the builtin error interface

func (DescriptorValidationError) ErrorName

func (e DescriptorValidationError) ErrorName() string

ErrorName returns error name.

func (DescriptorValidationError) Field

Field function returns field value.

func (DescriptorValidationError) Key

Key function returns key value.

func (DescriptorValidationError) Reason

func (e DescriptorValidationError) Reason() string

Reason function returns reason value.

type Error

type Error struct {
	Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*Error) Descriptor deprecated

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetStatus

func (x *Error) GetStatus() *status.Status

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

func (*Error) Validate

func (m *Error) Validate() error

Validate checks the field values on Error with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Error) ValidateAll added in v14.5.0

func (m *Error) ValidateAll() error

ValidateAll checks the field values on Error with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ErrorMultiError, or nil if none found.

type ErrorMultiError added in v14.5.0

type ErrorMultiError []error

ErrorMultiError is an error wrapping multiple validation errors returned by Error.ValidateAll() if the designated constraints aren't met.

func (ErrorMultiError) AllErrors added in v14.5.0

func (m ErrorMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ErrorMultiError) Error added in v14.5.0

func (m ErrorMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ErrorValidationError

type ErrorValidationError struct {
	// contains filtered or unexported fields
}

ErrorValidationError is the validation error returned by Error.Validate if the designated constraints aren't met.

func (ErrorValidationError) Cause

func (e ErrorValidationError) Cause() error

Cause function returns cause value.

func (ErrorValidationError) Error

func (e ErrorValidationError) Error() string

Error satisfies the builtin error interface

func (ErrorValidationError) ErrorName

func (e ErrorValidationError) ErrorName() string

ErrorName returns error name.

func (ErrorValidationError) Field

func (e ErrorValidationError) Field() string

Field function returns field value.

func (ErrorValidationError) Key

func (e ErrorValidationError) Key() bool

Key function returns key value.

func (ErrorValidationError) Reason

func (e ErrorValidationError) Reason() string

Reason function returns reason value.

type Header struct {
	Meta map[string]*prototool.Values `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Header) Descriptor deprecated

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

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetMeta

func (x *Header) GetMeta() map[string]*prototool.Values

func (*Header) Metadata

func (x *Header) Metadata() metadata.MD

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect

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

func (*Header) Reset

func (x *Header) Reset()

func (*Header) String

func (x *Header) String() string

func (*Header) Validate

func (m *Header) Validate() error

Validate checks the field values on Header with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Header) ValidateAll added in v14.5.0

func (m *Header) ValidateAll() error

ValidateAll checks the field values on Header with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in HeaderMultiError, or nil if none found.

type HeaderMultiError added in v14.5.0

type HeaderMultiError []error

HeaderMultiError is an error wrapping multiple validation errors returned by Header.ValidateAll() if the designated constraints aren't met.

func (HeaderMultiError) AllErrors added in v14.5.0

func (m HeaderMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HeaderMultiError) Error added in v14.5.0

func (m HeaderMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type HeaderValidationError

type HeaderValidationError struct {
	// contains filtered or unexported fields
}

HeaderValidationError is the validation error returned by Header.Validate if the designated constraints aren't met.

func (HeaderValidationError) Cause

func (e HeaderValidationError) Cause() error

Cause function returns cause value.

func (HeaderValidationError) Error

func (e HeaderValidationError) Error() string

Error satisfies the builtin error interface

func (HeaderValidationError) ErrorName

func (e HeaderValidationError) ErrorName() string

ErrorName returns error name.

func (HeaderValidationError) Field

func (e HeaderValidationError) Field() string

Field function returns field value.

func (HeaderValidationError) Key

func (e HeaderValidationError) Key() bool

Key function returns key value.

func (HeaderValidationError) Reason

func (e HeaderValidationError) Reason() string

Reason function returns reason value.

type Message

type Message struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetData

func (x *Message) GetData() []byte

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

func (*Message) Validate

func (m *Message) Validate() error

Validate checks the field values on Message with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Message) ValidateAll added in v14.5.0

func (m *Message) ValidateAll() error

ValidateAll checks the field values on Message with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MessageMultiError, or nil if none found.

type MessageMultiError added in v14.5.0

type MessageMultiError []error

MessageMultiError is an error wrapping multiple validation errors returned by Message.ValidateAll() if the designated constraints aren't met.

func (MessageMultiError) AllErrors added in v14.5.0

func (m MessageMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MessageMultiError) Error added in v14.5.0

func (m MessageMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MessageValidationError

type MessageValidationError struct {
	// contains filtered or unexported fields
}

MessageValidationError is the validation error returned by Message.Validate if the designated constraints aren't met.

func (MessageValidationError) Cause

func (e MessageValidationError) Cause() error

Cause function returns cause value.

func (MessageValidationError) Error

func (e MessageValidationError) Error() string

Error satisfies the builtin error interface

func (MessageValidationError) ErrorName

func (e MessageValidationError) ErrorName() string

ErrorName returns error name.

func (MessageValidationError) Field

func (e MessageValidationError) Field() string

Field function returns field value.

func (MessageValidationError) Key

func (e MessageValidationError) Key() bool

Key function returns key value.

func (MessageValidationError) Reason

func (e MessageValidationError) Reason() string

Reason function returns reason value.

type RequestInfo

type RequestInfo struct {
	MethodName string                       `protobuf:"bytes,1,opt,name=method_name,json=methodName,proto3" json:"method_name,omitempty"`
	Meta       map[string]*prototool.Values `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*RequestInfo) Descriptor deprecated

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

Deprecated: Use RequestInfo.ProtoReflect.Descriptor instead.

func (*RequestInfo) GetMeta

func (x *RequestInfo) GetMeta() map[string]*prototool.Values

func (*RequestInfo) GetMethodName

func (x *RequestInfo) GetMethodName() string

func (*RequestInfo) Metadata

func (x *RequestInfo) Metadata() metadata.MD

func (*RequestInfo) ProtoMessage

func (*RequestInfo) ProtoMessage()

func (*RequestInfo) ProtoReflect

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

func (*RequestInfo) Reset

func (x *RequestInfo) Reset()

func (*RequestInfo) String

func (x *RequestInfo) String() string

func (*RequestInfo) Validate

func (m *RequestInfo) Validate() error

Validate checks the field values on RequestInfo with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RequestInfo) ValidateAll added in v14.5.0

func (m *RequestInfo) ValidateAll() error

ValidateAll checks the field values on RequestInfo with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RequestInfoMultiError, or nil if none found.

type RequestInfoMultiError added in v14.5.0

type RequestInfoMultiError []error

RequestInfoMultiError is an error wrapping multiple validation errors returned by RequestInfo.ValidateAll() if the designated constraints aren't met.

func (RequestInfoMultiError) AllErrors added in v14.5.0

func (m RequestInfoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RequestInfoMultiError) Error added in v14.5.0

func (m RequestInfoMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RequestInfoValidationError

type RequestInfoValidationError struct {
	// contains filtered or unexported fields
}

RequestInfoValidationError is the validation error returned by RequestInfo.Validate if the designated constraints aren't met.

func (RequestInfoValidationError) Cause

Cause function returns cause value.

func (RequestInfoValidationError) Error

Error satisfies the builtin error interface

func (RequestInfoValidationError) ErrorName

func (e RequestInfoValidationError) ErrorName() string

ErrorName returns error name.

func (RequestInfoValidationError) Field

Field function returns field value.

func (RequestInfoValidationError) Key

Key function returns key value.

func (RequestInfoValidationError) Reason

Reason function returns reason value.

type ReverseTunnelClient

type ReverseTunnelClient interface {
	Connect(ctx context.Context, opts ...grpc.CallOption) (ReverseTunnel_ConnectClient, error)
}

ReverseTunnelClient is the client API for ReverseTunnel service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ReverseTunnelServer

type ReverseTunnelServer interface {
	Connect(ReverseTunnel_ConnectServer) error
	// contains filtered or unexported methods
}

ReverseTunnelServer is the server API for ReverseTunnel service. All implementations must embed UnimplementedReverseTunnelServer for forward compatibility

type ReverseTunnel_ConnectClient

type ReverseTunnel_ConnectClient interface {
	Send(*ConnectRequest) error
	Recv() (*ConnectResponse, error)
	grpc.ClientStream
}

type ReverseTunnel_ConnectServer

type ReverseTunnel_ConnectServer interface {
	Send(*ConnectResponse) error
	Recv() (*ConnectRequest, error)
	grpc.ServerStream
}

type Trailer

type Trailer struct {
	Meta map[string]*prototool.Values `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Trailer) Descriptor deprecated

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

Deprecated: Use Trailer.ProtoReflect.Descriptor instead.

func (*Trailer) GetMeta

func (x *Trailer) GetMeta() map[string]*prototool.Values

func (*Trailer) Metadata

func (x *Trailer) Metadata() metadata.MD

func (*Trailer) ProtoMessage

func (*Trailer) ProtoMessage()

func (*Trailer) ProtoReflect

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

func (*Trailer) Reset

func (x *Trailer) Reset()

func (*Trailer) String

func (x *Trailer) String() string

func (*Trailer) Validate

func (m *Trailer) Validate() error

Validate checks the field values on Trailer with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Trailer) ValidateAll added in v14.5.0

func (m *Trailer) ValidateAll() error

ValidateAll checks the field values on Trailer with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TrailerMultiError, or nil if none found.

type TrailerMultiError added in v14.5.0

type TrailerMultiError []error

TrailerMultiError is an error wrapping multiple validation errors returned by Trailer.ValidateAll() if the designated constraints aren't met.

func (TrailerMultiError) AllErrors added in v14.5.0

func (m TrailerMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TrailerMultiError) Error added in v14.5.0

func (m TrailerMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TrailerValidationError

type TrailerValidationError struct {
	// contains filtered or unexported fields
}

TrailerValidationError is the validation error returned by Trailer.Validate if the designated constraints aren't met.

func (TrailerValidationError) Cause

func (e TrailerValidationError) Cause() error

Cause function returns cause value.

func (TrailerValidationError) Error

func (e TrailerValidationError) Error() string

Error satisfies the builtin error interface

func (TrailerValidationError) ErrorName

func (e TrailerValidationError) ErrorName() string

ErrorName returns error name.

func (TrailerValidationError) Field

func (e TrailerValidationError) Field() string

Field function returns field value.

func (TrailerValidationError) Key

func (e TrailerValidationError) Key() bool

Key function returns key value.

func (TrailerValidationError) Reason

func (e TrailerValidationError) Reason() string

Reason function returns reason value.

type UnimplementedReverseTunnelServer

type UnimplementedReverseTunnelServer struct {
}

UnimplementedReverseTunnelServer must be embedded to have forward compatible implementations.

func (UnimplementedReverseTunnelServer) Connect

type UnsafeReverseTunnelServer

type UnsafeReverseTunnelServer interface {
	// contains filtered or unexported methods
}

UnsafeReverseTunnelServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ReverseTunnelServer will result in compilation errors.

Jump to

Keyboard shortcuts

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