Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterUserServer ¶ added in v1.0.0
func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
Types ¶
type Reply ¶
type Reply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Reply) Descriptor
deprecated
func (*Reply) GetMessage ¶
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
func (*Reply) ProtoReflect ¶ added in v1.11.0
func (x *Reply) ProtoReflect() protoreflect.Message
type Request ¶
type Request struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) GetMessage ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶ added in v1.11.0
func (x *Request) ProtoReflect() protoreflect.Message
type UnimplementedUserServer ¶ added in v1.0.0
type UnimplementedUserServer struct { }
UnimplementedUserServer should be embedded to have forward compatible implementations.
type UnsafeUserServer ¶ added in v1.11.0
type UnsafeUserServer interface {
// contains filtered or unexported methods
}
UnsafeUserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServer will result in compilation errors.
type UserClient ¶ added in v1.0.0
type UserClient interface {
Ping(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Reply, error)
}
UserClient is the client API for User 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 NewUserClient ¶ added in v1.0.0
func NewUserClient(cc grpc.ClientConnInterface) UserClient
Click to show internal directories.
Click to hide internal directories.