protobuf

package
v0.0.0-...-b19801f Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	KCP_Start_FullMethodName = "/protobuf.KCP/Start"
)

Variables

View Source
var File_proto_kcp_proto protoreflect.FileDescriptor
View Source
var KCP_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "protobuf.KCP",
	HandlerType: (*KCPServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Start",
			Handler:    _KCP_Start_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/kcp.proto",
}

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

Functions

func RegisterKCPServer

func RegisterKCPServer(s grpc.ServiceRegistrar, srv KCPServer)

Types

type Empty

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

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type KCPClient

type KCPClient interface {
	Start(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
}

KCPClient is the client API for KCP 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 NewKCPClient

func NewKCPClient(cc grpc.ClientConnInterface) KCPClient

type KCPServer

type KCPServer interface {
	Start(context.Context, *Empty) (*Empty, error)
}

KCPServer is the server API for KCP service. All implementations should embed UnimplementedKCPServer for forward compatibility

type UnimplementedKCPServer

type UnimplementedKCPServer struct {
}

UnimplementedKCPServer should be embedded to have forward compatible implementations.

func (UnimplementedKCPServer) Start

type UnsafeKCPServer

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

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

Jump to

Keyboard shortcuts

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