Documentation
¶
Index ¶
- Variables
- func RegisterRegistrationServer(s grpc.ServiceRegistrar, srv RegistrationServer)
- type Profile
- func (*Profile) Descriptor() ([]byte, []int)deprecated
- func (x *Profile) GetCreatedDate() bool
- func (x *Profile) GetEmail() string
- func (x *Profile) GetFullname() string
- func (x *Profile) GetIsActivated() bool
- func (x *Profile) GetPassword() string
- func (*Profile) ProtoMessage()
- func (x *Profile) ProtoReflect() protoreflect.Message
- func (x *Profile) Reset()
- func (x *Profile) String() string
- type RegistrationClient
- type RegistrationServer
- type Token
- type UnimplementedRegistrationServer
- type UnsafeRegistrationServer
Constants ¶
This section is empty.
Variables ¶
var File_UserSchema_user_proto protoreflect.FileDescriptor
var Registration_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.Registration", HandlerType: (*RegistrationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateNewUser", Handler: _Registration_CreateNewUser_Handler, }, { MethodName: "Login", Handler: _Registration_Login_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "UserSchema/user.proto", }
Registration_ServiceDesc is the grpc.ServiceDesc for Registration service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRegistrationServer ¶
func RegisterRegistrationServer(s grpc.ServiceRegistrar, srv RegistrationServer)
Types ¶
type Profile ¶
type Profile struct { Fullname string `protobuf:"bytes,1,opt,name=fullname,proto3" json:"fullname,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` IsActivated bool `protobuf:"varint,4,opt,name=isActivated,proto3" json:"isActivated,omitempty"` CreatedDate bool `protobuf:"varint,5,opt,name=createdDate,proto3" json:"createdDate,omitempty"` // contains filtered or unexported fields }
func (*Profile) Descriptor
deprecated
func (*Profile) GetCreatedDate ¶
func (*Profile) GetFullname ¶
func (*Profile) GetIsActivated ¶
func (*Profile) GetPassword ¶
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
func (*Profile) ProtoReflect ¶
func (x *Profile) ProtoReflect() protoreflect.Message
type RegistrationClient ¶
type RegistrationClient interface { CreateNewUser(ctx context.Context, in *Profile, opts ...grpc.CallOption) (*Profile, error) Login(ctx context.Context, in *Token, opts ...grpc.CallOption) (*Profile, error) }
RegistrationClient is the client API for Registration 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 NewRegistrationClient ¶
func NewRegistrationClient(cc grpc.ClientConnInterface) RegistrationClient
type RegistrationServer ¶
type RegistrationServer interface { CreateNewUser(context.Context, *Profile) (*Profile, error) Login(context.Context, *Token) (*Profile, error) // contains filtered or unexported methods }
RegistrationServer is the server API for Registration service. All implementations must embed UnimplementedRegistrationServer for forward compatibility
type Token ¶
type Token struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*Token) Descriptor
deprecated
func (*Token) GetPassword ¶
func (*Token) GetUsername ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) ProtoReflect ¶
func (x *Token) ProtoReflect() protoreflect.Message
type UnimplementedRegistrationServer ¶
type UnimplementedRegistrationServer struct { }
UnimplementedRegistrationServer must be embedded to have forward compatible implementations.
func (UnimplementedRegistrationServer) CreateNewUser ¶
type UnsafeRegistrationServer ¶
type UnsafeRegistrationServer interface {
// contains filtered or unexported methods
}
UnsafeRegistrationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RegistrationServer will result in compilation errors.