Documentation ¶
Index ¶
- Variables
- func RegisterMagoServiceServer(s grpc.ServiceRegistrar, srv MagoServiceServer)
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserRequest) GetFirstName() string
- func (x *CreateUserRequest) GetLastName() string
- func (x *CreateUserRequest) GetPhone() string
- func (*CreateUserRequest) ProtoMessage()
- func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserRequest) Reset()
- func (x *CreateUserRequest) String() string
- type CreateUserResponse
- func (*CreateUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserResponse) GetUserId() string
- func (*CreateUserResponse) ProtoMessage()
- func (x *CreateUserResponse) ProtoReflect() protoreflect.Message
- func (x *CreateUserResponse) Reset()
- func (x *CreateUserResponse) String() string
- type MagoServiceClient
- type MagoServiceServer
- type UnimplementedMagoServiceServer
- type UnsafeMagoServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_magopb_mago_proto protoreflect.FileDescriptor
var MagoService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "mago.MagoService", HandlerType: (*MagoServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateUser", Handler: _MagoService_CreateUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "magopb/mago.proto", }
MagoService_ServiceDesc is the grpc.ServiceDesc for MagoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMagoServiceServer ¶
func RegisterMagoServiceServer(s grpc.ServiceRegistrar, srv MagoServiceServer)
Types ¶
type CreateUserRequest ¶
type CreateUserRequest struct { Phone string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"` FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` // contains filtered or unexported fields }
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetFirstName ¶
func (x *CreateUserRequest) GetFirstName() string
func (*CreateUserRequest) GetLastName ¶
func (x *CreateUserRequest) GetLastName() string
func (*CreateUserRequest) GetPhone ¶
func (x *CreateUserRequest) GetPhone() string
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) ProtoReflect ¶
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
func (*CreateUserRequest) Reset ¶
func (x *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (x *CreateUserRequest) String() string
type CreateUserResponse ¶
type CreateUserResponse struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*CreateUserResponse) Descriptor
deprecated
func (*CreateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.
func (*CreateUserResponse) GetUserId ¶
func (x *CreateUserResponse) GetUserId() string
func (*CreateUserResponse) ProtoMessage ¶
func (*CreateUserResponse) ProtoMessage()
func (*CreateUserResponse) ProtoReflect ¶
func (x *CreateUserResponse) ProtoReflect() protoreflect.Message
func (*CreateUserResponse) Reset ¶
func (x *CreateUserResponse) Reset()
func (*CreateUserResponse) String ¶
func (x *CreateUserResponse) String() string
type MagoServiceClient ¶
type MagoServiceClient interface {
CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error)
}
MagoServiceClient is the client API for MagoService 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 NewMagoServiceClient ¶
func NewMagoServiceClient(cc grpc.ClientConnInterface) MagoServiceClient
type MagoServiceServer ¶
type MagoServiceServer interface { CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error) // contains filtered or unexported methods }
MagoServiceServer is the server API for MagoService service. All implementations must embed UnimplementedMagoServiceServer for forward compatibility
type UnimplementedMagoServiceServer ¶
type UnimplementedMagoServiceServer struct { }
UnimplementedMagoServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMagoServiceServer) CreateUser ¶
func (UnimplementedMagoServiceServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
type UnsafeMagoServiceServer ¶
type UnsafeMagoServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMagoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MagoServiceServer will result in compilation errors.