Documentation
¶
Index ¶
Constants ¶
const (
KCP_Start_FullMethodName = "/protobuf.KCP/Start"
)
Variables ¶
var File_proto_kcp_proto protoreflect.FileDescriptor
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) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
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 ¶
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.
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.