gconnproto

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Conn_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gconnproto.Conn",
	HandlerType: (*ConnServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Read",
			Handler:    _Conn_Read_Handler,
		},
		{
			MethodName: "Write",
			Handler:    _Conn_Write_Handler,
		},
		{
			MethodName: "Close",
			Handler:    _Conn_Close_Handler,
		},
		{
			MethodName: "SetDeadline",
			Handler:    _Conn_SetDeadline_Handler,
		},
		{
			MethodName: "SetReadDeadline",
			Handler:    _Conn_SetReadDeadline_Handler,
		},
		{
			MethodName: "SetWriteDeadline",
			Handler:    _Conn_SetWriteDeadline_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "gconn.proto",
}

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

View Source
var File_gconn_proto protoreflect.FileDescriptor

Functions

func RegisterConnServer

func RegisterConnServer(s grpc.ServiceRegistrar, srv ConnServer)

Types

type CloseRequest

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

func (*CloseRequest) Descriptor deprecated

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

Deprecated: Use CloseRequest.ProtoReflect.Descriptor instead.

func (*CloseRequest) ProtoMessage

func (*CloseRequest) ProtoMessage()

func (*CloseRequest) ProtoReflect

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

func (*CloseRequest) Reset

func (x *CloseRequest) Reset()

func (*CloseRequest) String

func (x *CloseRequest) String() string

type CloseResponse

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

func (*CloseResponse) Descriptor deprecated

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

Deprecated: Use CloseResponse.ProtoReflect.Descriptor instead.

func (*CloseResponse) ProtoMessage

func (*CloseResponse) ProtoMessage()

func (*CloseResponse) ProtoReflect

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

func (*CloseResponse) Reset

func (x *CloseResponse) Reset()

func (*CloseResponse) String

func (x *CloseResponse) String() string

type ConnClient

type ConnClient interface {
	Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error)
	Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error)
	Close(ctx context.Context, in *CloseRequest, opts ...grpc.CallOption) (*CloseResponse, error)
	SetDeadline(ctx context.Context, in *SetDeadlineRequest, opts ...grpc.CallOption) (*SetDeadlineResponse, error)
	SetReadDeadline(ctx context.Context, in *SetReadDeadlineRequest, opts ...grpc.CallOption) (*SetReadDeadlineResponse, error)
	SetWriteDeadline(ctx context.Context, in *SetWriteDeadlineRequest, opts ...grpc.CallOption) (*SetWriteDeadlineResponse, error)
}

ConnClient is the client API for Conn 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.

func NewConnClient

func NewConnClient(cc grpc.ClientConnInterface) ConnClient

type ConnServer

ConnServer is the server API for Conn service. All implementations must embed UnimplementedConnServer for forward compatibility

type ReadRequest

type ReadRequest struct {
	Length int32 `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadRequest) Descriptor deprecated

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

Deprecated: Use ReadRequest.ProtoReflect.Descriptor instead.

func (*ReadRequest) GetLength

func (x *ReadRequest) GetLength() int32

func (*ReadRequest) ProtoMessage

func (*ReadRequest) ProtoMessage()

func (*ReadRequest) ProtoReflect

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

func (*ReadRequest) Reset

func (x *ReadRequest) Reset()

func (*ReadRequest) String

func (x *ReadRequest) String() string

type ReadResponse

type ReadResponse struct {
	Read    []byte `protobuf:"bytes,1,opt,name=read,proto3" json:"read,omitempty"`
	Error   string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	Errored bool   `protobuf:"varint,3,opt,name=errored,proto3" json:"errored,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadResponse) Descriptor deprecated

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

Deprecated: Use ReadResponse.ProtoReflect.Descriptor instead.

func (*ReadResponse) GetError

func (x *ReadResponse) GetError() string

func (*ReadResponse) GetErrored

func (x *ReadResponse) GetErrored() bool

func (*ReadResponse) GetRead

func (x *ReadResponse) GetRead() []byte

func (*ReadResponse) ProtoMessage

func (*ReadResponse) ProtoMessage()

func (*ReadResponse) ProtoReflect

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

func (*ReadResponse) Reset

func (x *ReadResponse) Reset()

func (*ReadResponse) String

func (x *ReadResponse) String() string

type SetDeadlineRequest

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

func (*SetDeadlineRequest) Descriptor deprecated

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

Deprecated: Use SetDeadlineRequest.ProtoReflect.Descriptor instead.

func (*SetDeadlineRequest) GetTime

func (x *SetDeadlineRequest) GetTime() []byte

func (*SetDeadlineRequest) ProtoMessage

func (*SetDeadlineRequest) ProtoMessage()

func (*SetDeadlineRequest) ProtoReflect

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

func (*SetDeadlineRequest) Reset

func (x *SetDeadlineRequest) Reset()

func (*SetDeadlineRequest) String

func (x *SetDeadlineRequest) String() string

type SetDeadlineResponse

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

func (*SetDeadlineResponse) Descriptor deprecated

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

Deprecated: Use SetDeadlineResponse.ProtoReflect.Descriptor instead.

func (*SetDeadlineResponse) ProtoMessage

func (*SetDeadlineResponse) ProtoMessage()

func (*SetDeadlineResponse) ProtoReflect

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

func (*SetDeadlineResponse) Reset

func (x *SetDeadlineResponse) Reset()

func (*SetDeadlineResponse) String

func (x *SetDeadlineResponse) String() string

type SetReadDeadlineRequest

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

func (*SetReadDeadlineRequest) Descriptor deprecated

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

Deprecated: Use SetReadDeadlineRequest.ProtoReflect.Descriptor instead.

func (*SetReadDeadlineRequest) GetTime

func (x *SetReadDeadlineRequest) GetTime() []byte

func (*SetReadDeadlineRequest) ProtoMessage

func (*SetReadDeadlineRequest) ProtoMessage()

func (*SetReadDeadlineRequest) ProtoReflect

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

func (*SetReadDeadlineRequest) Reset

func (x *SetReadDeadlineRequest) Reset()

func (*SetReadDeadlineRequest) String

func (x *SetReadDeadlineRequest) String() string

type SetReadDeadlineResponse

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

func (*SetReadDeadlineResponse) Descriptor deprecated

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

Deprecated: Use SetReadDeadlineResponse.ProtoReflect.Descriptor instead.

func (*SetReadDeadlineResponse) ProtoMessage

func (*SetReadDeadlineResponse) ProtoMessage()

func (*SetReadDeadlineResponse) ProtoReflect

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

func (*SetReadDeadlineResponse) Reset

func (x *SetReadDeadlineResponse) Reset()

func (*SetReadDeadlineResponse) String

func (x *SetReadDeadlineResponse) String() string

type SetWriteDeadlineRequest

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

func (*SetWriteDeadlineRequest) Descriptor deprecated

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

Deprecated: Use SetWriteDeadlineRequest.ProtoReflect.Descriptor instead.

func (*SetWriteDeadlineRequest) GetTime

func (x *SetWriteDeadlineRequest) GetTime() []byte

func (*SetWriteDeadlineRequest) ProtoMessage

func (*SetWriteDeadlineRequest) ProtoMessage()

func (*SetWriteDeadlineRequest) ProtoReflect

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

func (*SetWriteDeadlineRequest) Reset

func (x *SetWriteDeadlineRequest) Reset()

func (*SetWriteDeadlineRequest) String

func (x *SetWriteDeadlineRequest) String() string

type SetWriteDeadlineResponse

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

func (*SetWriteDeadlineResponse) Descriptor deprecated

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

Deprecated: Use SetWriteDeadlineResponse.ProtoReflect.Descriptor instead.

func (*SetWriteDeadlineResponse) ProtoMessage

func (*SetWriteDeadlineResponse) ProtoMessage()

func (*SetWriteDeadlineResponse) ProtoReflect

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

func (*SetWriteDeadlineResponse) Reset

func (x *SetWriteDeadlineResponse) Reset()

func (*SetWriteDeadlineResponse) String

func (x *SetWriteDeadlineResponse) String() string

type UnimplementedConnServer

type UnimplementedConnServer struct {
}

UnimplementedConnServer must be embedded to have forward compatible implementations.

func (UnimplementedConnServer) Close

func (UnimplementedConnServer) Read

func (UnimplementedConnServer) SetDeadline

func (UnimplementedConnServer) SetReadDeadline

func (UnimplementedConnServer) Write

type UnsafeConnServer

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

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

type WriteRequest

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

func (*WriteRequest) Descriptor deprecated

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

Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead.

func (*WriteRequest) GetPayload

func (x *WriteRequest) GetPayload() []byte

func (*WriteRequest) ProtoMessage

func (*WriteRequest) ProtoMessage()

func (*WriteRequest) ProtoReflect

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

func (*WriteRequest) Reset

func (x *WriteRequest) Reset()

func (*WriteRequest) String

func (x *WriteRequest) String() string

type WriteResponse

type WriteResponse struct {
	Length  int32  `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"`
	Error   string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	Errored bool   `protobuf:"varint,3,opt,name=errored,proto3" json:"errored,omitempty"`
	// contains filtered or unexported fields
}

func (*WriteResponse) Descriptor deprecated

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

Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead.

func (*WriteResponse) GetError

func (x *WriteResponse) GetError() string

func (*WriteResponse) GetErrored

func (x *WriteResponse) GetErrored() bool

func (*WriteResponse) GetLength

func (x *WriteResponse) GetLength() int32

func (*WriteResponse) ProtoMessage

func (*WriteResponse) ProtoMessage()

func (*WriteResponse) ProtoReflect

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

func (*WriteResponse) Reset

func (x *WriteResponse) Reset()

func (*WriteResponse) String

func (x *WriteResponse) String() string

Jump to

Keyboard shortcuts

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