Documentation
¶
Index ¶
- Variables
- func RegisterAuthenticationServer(s grpc.ServiceRegistrar, srv AuthenticationServer)
- type AuthenticationClient
- type AuthenticationServer
- type Empty
- type Server
- type UnimplementedAuthenticationServer
- type UnsafeAuthenticationServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAbout() string
- func (x *User) GetAddress() string
- func (x *User) GetAvatar() string
- func (x *User) GetBirthday() string
- func (x *User) GetCity() string
- func (x *User) GetCountry() string
- func (x *User) GetEmail() string
- func (x *User) GetFirstName() string
- func (x *User) GetGender() string
- func (x *User) GetLastName() string
- func (x *User) GetPassword() string
- func (x *User) GetPhoneNumber() string
- func (x *User) GetPostCode() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
Constants ¶
This section is empty.
Variables ¶
var Authentication_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Authentication", HandlerType: (*AuthenticationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterUser", Handler: _Authentication_RegisterUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "protos/auth.proto", }
Authentication_ServiceDesc is the grpc.ServiceDesc for Authentication service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_protos_auth_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthenticationServer ¶
func RegisterAuthenticationServer(s grpc.ServiceRegistrar, srv AuthenticationServer)
Types ¶
type AuthenticationClient ¶
type AuthenticationClient interface {
RegisterUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*Empty, error)
}
AuthenticationClient is the client API for Authentication 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 NewAuthenticationClient ¶
func NewAuthenticationClient(cc grpc.ClientConnInterface) AuthenticationClient
type AuthenticationServer ¶
type AuthenticationServer interface {
RegisterUser(context.Context, *User) (*Empty, error)
// contains filtered or unexported methods
}
AuthenticationServer is the server API for Authentication service. All implementations must embed UnimplementedAuthenticationServer for forward compatibility
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 Server ¶
type Server struct {
UnimplementedAuthenticationServer
}
Server implements proto interface
type UnimplementedAuthenticationServer ¶
type UnimplementedAuthenticationServer struct {
}
UnimplementedAuthenticationServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthenticationServer) RegisterUser ¶
type UnsafeAuthenticationServer ¶
type UnsafeAuthenticationServer interface {
// contains filtered or unexported methods
}
UnsafeAuthenticationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthenticationServer will result in compilation errors.
type User ¶
type User struct {
FirstName string `protobuf:"bytes,1,opt,name=FirstName,proto3" json:"FirstName,omitempty"`
LastName string `protobuf:"bytes,2,opt,name=LastName,proto3" json:"LastName,omitempty"`
Email string `protobuf:"bytes,3,opt,name=Email,proto3" json:"Email,omitempty"`
Password string `protobuf:"bytes,4,opt,name=Password,proto3" json:"Password,omitempty"`
About string `protobuf:"bytes,5,opt,name=About,proto3" json:"About,omitempty"`
Avatar string `protobuf:"bytes,6,opt,name=Avatar,proto3" json:"Avatar,omitempty"`
PhoneNumber string `protobuf:"bytes,7,opt,name=PhoneNumber,proto3" json:"PhoneNumber,omitempty"`
Address string `protobuf:"bytes,8,opt,name=Address,proto3" json:"Address,omitempty"`
City string `protobuf:"bytes,9,opt,name=City,proto3" json:"City,omitempty"`
Country string `protobuf:"bytes,10,opt,name=Country,proto3" json:"Country,omitempty"`
Gender string `protobuf:"bytes,11,opt,name=Gender,proto3" json:"Gender,omitempty"`
PostCode string `protobuf:"bytes,12,opt,name=PostCode,proto3" json:"PostCode,omitempty"`
Birthday string `protobuf:"bytes,13,opt,name=Birthday,proto3" json:"Birthday,omitempty"`
// contains filtered or unexported fields
}
func (*User) Descriptor
deprecated
func (*User) GetAddress ¶
func (*User) GetBirthday ¶
func (*User) GetCountry ¶
func (*User) GetFirstName ¶
func (*User) GetLastName ¶
func (*User) GetPassword ¶
func (*User) GetPhoneNumber ¶
func (*User) GetPostCode ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message