Documentation ¶
Index ¶
- Variables
- func NewAuthEndpoints() []*api.Endpoint
- func RegisterAuthHandler(s server.Server, hdlr AuthHandler, opts ...server.HandlerOption) error
- type AuthHandler
- type AuthService
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetAddress() string
- func (x *RegisterRequest) GetBirthDate() string
- func (x *RegisterRequest) GetEmail() string
- func (x *RegisterRequest) GetFamily() string
- func (x *RegisterRequest) GetGender() string
- func (x *RegisterRequest) GetName() string
- func (x *RegisterRequest) GetPhone() string
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- type RegisterResponse
- func (*RegisterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterResponse) GetMessage() string
- func (x *RegisterResponse) GetStatus() *Status
- func (*RegisterResponse) ProtoMessage()
- func (x *RegisterResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterResponse) Reset()
- func (x *RegisterResponse) String() string
- type Status
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_auth_proto protoreflect.FileDescriptor
Functions ¶
func NewAuthEndpoints ¶
func RegisterAuthHandler ¶
func RegisterAuthHandler(s server.Server, hdlr AuthHandler, opts ...server.HandlerOption) error
Types ¶
type AuthHandler ¶
type AuthHandler interface {
Register(context.Context, *RegisterRequest, *RegisterResponse) error
}
type AuthService ¶
type AuthService interface {
Register(ctx context.Context, in *RegisterRequest, opts ...client.CallOption) (*RegisterResponse, error)
}
func NewAuthService ¶
func NewAuthService(name string, c client.Client) AuthService
type RegisterRequest ¶
type RegisterRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Family string `protobuf:"bytes,2,opt,name=family,proto3" json:"family,omitempty"` Phone string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"` Gender string `protobuf:"bytes,4,opt,name=gender,proto3" json:"gender,omitempty"` Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"` BirthDate string `protobuf:"bytes,6,opt,name=birthDate,proto3" json:"birthDate,omitempty"` Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetAddress ¶
func (x *RegisterRequest) GetAddress() string
func (*RegisterRequest) GetBirthDate ¶
func (x *RegisterRequest) GetBirthDate() string
func (*RegisterRequest) GetEmail ¶
func (x *RegisterRequest) GetEmail() string
func (*RegisterRequest) GetFamily ¶
func (x *RegisterRequest) GetFamily() string
func (*RegisterRequest) GetGender ¶
func (x *RegisterRequest) GetGender() string
func (*RegisterRequest) GetName ¶
func (x *RegisterRequest) GetName() string
func (*RegisterRequest) GetPhone ¶
func (x *RegisterRequest) GetPhone() string
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
type RegisterResponse ¶
type RegisterResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) GetMessage ¶
func (x *RegisterResponse) GetMessage() string
func (*RegisterResponse) GetStatus ¶
func (x *RegisterResponse) GetStatus() *Status
func (*RegisterResponse) ProtoMessage ¶
func (*RegisterResponse) ProtoMessage()
func (*RegisterResponse) ProtoReflect ¶
func (x *RegisterResponse) ProtoReflect() protoreflect.Message
func (*RegisterResponse) Reset ¶
func (x *RegisterResponse) Reset()
func (*RegisterResponse) String ¶
func (x *RegisterResponse) String() string
type Status ¶
type Status struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Status) Descriptor
deprecated
func (*Status) GetMessage ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) ProtoReflect ¶
func (x *Status) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.