Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ContestUm_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ContestUm", HandlerType: (*ContestUmServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Call", Handler: _ContestUm_Call_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "contest1.proto", }
ContestUm_ServiceDesc is the grpc.ServiceDesc for ContestUm service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_contest1_proto protoreflect.FileDescriptor
Functions ¶
func RegisterContestUmServer ¶
func RegisterContestUmServer(s grpc.ServiceRegistrar, srv ContestUmServer)
Types ¶
type CallRequest ¶
type CallRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*CallRequest) Descriptor
deprecated
func (*CallRequest) Descriptor() ([]byte, []int)
Deprecated: Use CallRequest.ProtoReflect.Descriptor instead.
func (*CallRequest) GetName ¶
func (x *CallRequest) GetName() string
func (*CallRequest) ProtoMessage ¶
func (*CallRequest) ProtoMessage()
func (*CallRequest) ProtoReflect ¶
func (x *CallRequest) ProtoReflect() protoreflect.Message
func (*CallRequest) Reset ¶
func (x *CallRequest) Reset()
func (*CallRequest) String ¶
func (x *CallRequest) String() string
type CallResponse ¶
type CallResponse struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*CallResponse) Descriptor
deprecated
func (*CallResponse) Descriptor() ([]byte, []int)
Deprecated: Use CallResponse.ProtoReflect.Descriptor instead.
func (*CallResponse) GetMsg ¶
func (x *CallResponse) GetMsg() string
func (*CallResponse) ProtoMessage ¶
func (*CallResponse) ProtoMessage()
func (*CallResponse) ProtoReflect ¶
func (x *CallResponse) ProtoReflect() protoreflect.Message
func (*CallResponse) Reset ¶
func (x *CallResponse) Reset()
func (*CallResponse) String ¶
func (x *CallResponse) String() string
type ContestUmClient ¶
type ContestUmClient interface {
Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error)
}
ContestUmClient is the client API for ContestUm 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 NewContestUmClient ¶
func NewContestUmClient(cc grpc.ClientConnInterface) ContestUmClient
type ContestUmServer ¶
type ContestUmServer interface { Call(context.Context, *CallRequest) (*CallResponse, error) // contains filtered or unexported methods }
ContestUmServer is the server API for ContestUm service. All implementations must embed UnimplementedContestUmServer for forward compatibility
type UnimplementedContestUmServer ¶
type UnimplementedContestUmServer struct { }
UnimplementedContestUmServer must be embedded to have forward compatible implementations.
func (UnimplementedContestUmServer) Call ¶
func (UnimplementedContestUmServer) Call(context.Context, *CallRequest) (*CallResponse, error)
type UnsafeContestUmServer ¶
type UnsafeContestUmServer interface {
// contains filtered or unexported methods
}
UnsafeContestUmServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ContestUmServer will result in compilation errors.