Documentation ¶
Index ¶
- Variables
- func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
- func RegisterCommServer(s grpc.ServiceRegistrar, srv CommServer)
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type AuthClient
- type AuthServer
- type CommClient
- type CommServer
- type CreateEmployeeReq
- func (*CreateEmployeeReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateEmployeeReq) GetIsActive() bool
- func (x *CreateEmployeeReq) GetRoleType() RoleType
- func (x *CreateEmployeeReq) GetUser() *User
- func (*CreateEmployeeReq) ProtoMessage()
- func (x *CreateEmployeeReq) ProtoReflect() protoreflect.Message
- func (x *CreateEmployeeReq) Reset()
- func (x *CreateEmployeeReq) String() string
- type CreateEmployeeRes
- type CreateOneTimePassReq
- func (*CreateOneTimePassReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateOneTimePassReq) GetChannel() TwilChannel
- func (x *CreateOneTimePassReq) GetPhoneNumber() string
- func (*CreateOneTimePassReq) ProtoMessage()
- func (x *CreateOneTimePassReq) ProtoReflect() protoreflect.Message
- func (x *CreateOneTimePassReq) Reset()
- func (x *CreateOneTimePassReq) String() string
- type CreateOneTimePassRes
- type CreateUserReq
- func (*CreateUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserReq) GetFirstName() string
- func (x *CreateUserReq) GetLastName() string
- func (x *CreateUserReq) GetPhoneNumber() string
- func (*CreateUserReq) ProtoMessage()
- func (x *CreateUserReq) ProtoReflect() protoreflect.Message
- func (x *CreateUserReq) Reset()
- func (x *CreateUserReq) String() string
- type CreateUserRes
- type Employee
- func (*Employee) Descriptor() ([]byte, []int)deprecated
- func (x *Employee) GetCreatedAt() *timestamppb.Timestamp
- func (x *Employee) GetIsActive() bool
- func (x *Employee) GetRoleType() RoleType
- func (x *Employee) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Employee) GetUser() *User
- func (*Employee) ProtoMessage()
- func (x *Employee) ProtoReflect() protoreflect.Message
- func (x *Employee) Reset()
- func (x *Employee) String() string
- type GetEmployeeReq
- type GetEmployeeRes
- type GetUserByTelReq
- type GetUserByTelRes
- type GetUserReq
- type GetUserRes
- type RoleType
- type SendOneTimePassMsgReq
- func (*SendOneTimePassMsgReq) Descriptor() ([]byte, []int)deprecated
- func (x *SendOneTimePassMsgReq) GetChannel() TwilChannel
- func (x *SendOneTimePassMsgReq) GetOneTimePass() string
- func (x *SendOneTimePassMsgReq) GetPhoneNumber() string
- func (*SendOneTimePassMsgReq) ProtoMessage()
- func (x *SendOneTimePassMsgReq) ProtoReflect() protoreflect.Message
- func (x *SendOneTimePassMsgReq) Reset()
- func (x *SendOneTimePassMsgReq) String() string
- type SendOneTimePassMsgRes
- type SendOrderPlacedMsgReq
- type SendOrderPlacedMsgRes
- type TokenReq
- type TokenRes
- type TwilChannel
- func (TwilChannel) Descriptor() protoreflect.EnumDescriptor
- func (x TwilChannel) Enum() *TwilChannel
- func (TwilChannel) EnumDescriptor() ([]byte, []int)deprecated
- func (x TwilChannel) Number() protoreflect.EnumNumber
- func (x TwilChannel) String() string
- func (TwilChannel) Type() protoreflect.EnumType
- type UnimplementedAuthServer
- func (UnimplementedAuthServer) CreateOneTimePass(context.Context, *CreateOneTimePassReq) (*CreateOneTimePassRes, error)
- func (UnimplementedAuthServer) Token(context.Context, *TokenReq) (*TokenRes, error)
- func (UnimplementedAuthServer) VerifyOneTimePass(context.Context, *VerifyOneTimePassReq) (*VerifyOneTimePassRes, error)
- type UnimplementedCommServer
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) CreateEmployee(context.Context, *CreateEmployeeReq) (*CreateEmployeeRes, error)
- func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserReq) (*CreateUserRes, error)
- func (UnimplementedUserServiceServer) GetEmployee(context.Context, *GetEmployeeReq) (*GetEmployeeRes, error)
- func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserReq) (*GetUserRes, error)
- func (UnimplementedUserServiceServer) GetUserByTel(context.Context, *GetUserByTelReq) (*GetUserByTelRes, error)
- type UnsafeAuthServer
- type UnsafeCommServer
- type UnsafeUserServiceServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetFirstName() string
- func (x *User) GetId() int64
- func (x *User) GetLastName() string
- func (x *User) GetPhoneNumber() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserServiceClient
- type UserServiceServer
- type VerifyOneTimePassReq
- func (*VerifyOneTimePassReq) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyOneTimePassReq) GetOneTimePass() string
- func (x *VerifyOneTimePassReq) GetPhoneNumber() string
- func (*VerifyOneTimePassReq) ProtoMessage()
- func (x *VerifyOneTimePassReq) ProtoReflect() protoreflect.Message
- func (x *VerifyOneTimePassReq) Reset()
- func (x *VerifyOneTimePassReq) String() string
- type VerifyOneTimePassRes
Constants ¶
This section is empty.
Variables ¶
var ( TwilChannel_name = map[int32]string{ 0: "Email", 1: "Voice", 2: "WhatsApp", 3: "TextMessage", } TwilChannel_value = map[string]int32{ "Email": 0, "Voice": 1, "WhatsApp": 2, "TextMessage": 3, } )
Enum value maps for TwilChannel.
var ( RoleType_name = map[int32]string{ 0: "auxiliary", 1: "delivery", 2: "shopper", 3: "manager", 4: "admin", } RoleType_value = map[string]int32{ "auxiliary": 0, "delivery": 1, "shopper": 2, "manager": 3, "admin": 4, } )
Enum value maps for RoleType.
var Auth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "fruver.core.protobuf.Auth", HandlerType: (*AuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Token", Handler: _Auth_Token_Handler, }, { MethodName: "CreateOneTimePass", Handler: _Auth_CreateOneTimePass_Handler, }, { MethodName: "VerifyOneTimePass", Handler: _Auth_VerifyOneTimePass_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth.proto", }
Auth_ServiceDesc is the grpc.ServiceDesc for Auth service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Comm_ServiceDesc = grpc.ServiceDesc{ ServiceName: "fruver.core.protobuf.Comm", HandlerType: (*CommServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SendOneTimePassMsg", Handler: _Comm_SendOneTimePassMsg_Handler, }, { MethodName: "SendOrderPlacedMsg", Handler: _Comm_SendOrderPlacedMsg_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "comm.proto", }
Comm_ServiceDesc is the grpc.ServiceDesc for Comm service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_auth_proto protoreflect.FileDescriptor
var File_comm_proto protoreflect.FileDescriptor
var File_user_proto protoreflect.FileDescriptor
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "fruver.core.protobuf.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateUser", Handler: _UserService_CreateUser_Handler, }, { MethodName: "GetUser", Handler: _UserService_GetUser_Handler, }, { MethodName: "GetUserByTel", Handler: _UserService_GetUserByTel_Handler, }, { MethodName: "CreateEmployee", Handler: _UserService_CreateEmployee_Handler, }, { MethodName: "GetEmployee", Handler: _UserService_GetEmployee_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAuthServer ¶
func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
func RegisterCommServer ¶
func RegisterCommServer(s grpc.ServiceRegistrar, srv CommServer)
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type AuthClient ¶
type AuthClient interface { Token(ctx context.Context, in *TokenReq, opts ...grpc.CallOption) (*TokenRes, error) CreateOneTimePass(ctx context.Context, in *CreateOneTimePassReq, opts ...grpc.CallOption) (*CreateOneTimePassRes, error) VerifyOneTimePass(ctx context.Context, in *VerifyOneTimePassReq, opts ...grpc.CallOption) (*VerifyOneTimePassRes, error) }
AuthClient is the client API for Auth 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 NewAuthClient ¶
func NewAuthClient(cc grpc.ClientConnInterface) AuthClient
type AuthServer ¶
type AuthServer interface { Token(context.Context, *TokenReq) (*TokenRes, error) CreateOneTimePass(context.Context, *CreateOneTimePassReq) (*CreateOneTimePassRes, error) VerifyOneTimePass(context.Context, *VerifyOneTimePassReq) (*VerifyOneTimePassRes, error) // contains filtered or unexported methods }
AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility
type CommClient ¶
type CommClient interface { SendOneTimePassMsg(ctx context.Context, in *SendOneTimePassMsgReq, opts ...grpc.CallOption) (*SendOneTimePassMsgRes, error) SendOrderPlacedMsg(ctx context.Context, in *SendOrderPlacedMsgReq, opts ...grpc.CallOption) (*SendOrderPlacedMsgRes, error) }
CommClient is the client API for Comm 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 NewCommClient ¶
func NewCommClient(cc grpc.ClientConnInterface) CommClient
type CommServer ¶
type CommServer interface { SendOneTimePassMsg(context.Context, *SendOneTimePassMsgReq) (*SendOneTimePassMsgRes, error) SendOrderPlacedMsg(context.Context, *SendOrderPlacedMsgReq) (*SendOrderPlacedMsgRes, error) // contains filtered or unexported methods }
CommServer is the server API for Comm service. All implementations must embed UnimplementedCommServer for forward compatibility
type CreateEmployeeReq ¶
type CreateEmployeeReq struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` IsActive bool `protobuf:"varint,2,opt,name=isActive,proto3" json:"isActive,omitempty"` RoleType RoleType `protobuf:"varint,3,opt,name=roleType,proto3,enum=fruver.core.protobuf.RoleType" json:"roleType,omitempty"` // contains filtered or unexported fields }
func (*CreateEmployeeReq) Descriptor
deprecated
func (*CreateEmployeeReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateEmployeeReq.ProtoReflect.Descriptor instead.
func (*CreateEmployeeReq) GetIsActive ¶
func (x *CreateEmployeeReq) GetIsActive() bool
func (*CreateEmployeeReq) GetRoleType ¶
func (x *CreateEmployeeReq) GetRoleType() RoleType
func (*CreateEmployeeReq) GetUser ¶
func (x *CreateEmployeeReq) GetUser() *User
func (*CreateEmployeeReq) ProtoMessage ¶
func (*CreateEmployeeReq) ProtoMessage()
func (*CreateEmployeeReq) ProtoReflect ¶
func (x *CreateEmployeeReq) ProtoReflect() protoreflect.Message
func (*CreateEmployeeReq) Reset ¶
func (x *CreateEmployeeReq) Reset()
func (*CreateEmployeeReq) String ¶
func (x *CreateEmployeeReq) String() string
type CreateEmployeeRes ¶
type CreateEmployeeRes struct {
// contains filtered or unexported fields
}
func (*CreateEmployeeRes) Descriptor
deprecated
func (*CreateEmployeeRes) Descriptor() ([]byte, []int)
Deprecated: Use CreateEmployeeRes.ProtoReflect.Descriptor instead.
func (*CreateEmployeeRes) ProtoMessage ¶
func (*CreateEmployeeRes) ProtoMessage()
func (*CreateEmployeeRes) ProtoReflect ¶
func (x *CreateEmployeeRes) ProtoReflect() protoreflect.Message
func (*CreateEmployeeRes) Reset ¶
func (x *CreateEmployeeRes) Reset()
func (*CreateEmployeeRes) String ¶
func (x *CreateEmployeeRes) String() string
type CreateOneTimePassReq ¶
type CreateOneTimePassReq struct { PhoneNumber string `protobuf:"bytes,1,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"` Channel TwilChannel `protobuf:"varint,2,opt,name=channel,proto3,enum=fruver.core.protobuf.TwilChannel" json:"channel,omitempty"` // contains filtered or unexported fields }
func (*CreateOneTimePassReq) Descriptor
deprecated
func (*CreateOneTimePassReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateOneTimePassReq.ProtoReflect.Descriptor instead.
func (*CreateOneTimePassReq) GetChannel ¶
func (x *CreateOneTimePassReq) GetChannel() TwilChannel
func (*CreateOneTimePassReq) GetPhoneNumber ¶
func (x *CreateOneTimePassReq) GetPhoneNumber() string
func (*CreateOneTimePassReq) ProtoMessage ¶
func (*CreateOneTimePassReq) ProtoMessage()
func (*CreateOneTimePassReq) ProtoReflect ¶
func (x *CreateOneTimePassReq) ProtoReflect() protoreflect.Message
func (*CreateOneTimePassReq) Reset ¶
func (x *CreateOneTimePassReq) Reset()
func (*CreateOneTimePassReq) String ¶
func (x *CreateOneTimePassReq) String() string
type CreateOneTimePassRes ¶
type CreateOneTimePassRes struct {
// contains filtered or unexported fields
}
func (*CreateOneTimePassRes) Descriptor
deprecated
func (*CreateOneTimePassRes) Descriptor() ([]byte, []int)
Deprecated: Use CreateOneTimePassRes.ProtoReflect.Descriptor instead.
func (*CreateOneTimePassRes) ProtoMessage ¶
func (*CreateOneTimePassRes) ProtoMessage()
func (*CreateOneTimePassRes) ProtoReflect ¶
func (x *CreateOneTimePassRes) ProtoReflect() protoreflect.Message
func (*CreateOneTimePassRes) Reset ¶
func (x *CreateOneTimePassRes) Reset()
func (*CreateOneTimePassRes) String ¶
func (x *CreateOneTimePassRes) String() string
type CreateUserReq ¶
type CreateUserReq 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"` PhoneNumber string `protobuf:"bytes,3,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"` // contains filtered or unexported fields }
func (*CreateUserReq) Descriptor
deprecated
func (*CreateUserReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserReq.ProtoReflect.Descriptor instead.
func (*CreateUserReq) GetFirstName ¶
func (x *CreateUserReq) GetFirstName() string
func (*CreateUserReq) GetLastName ¶
func (x *CreateUserReq) GetLastName() string
func (*CreateUserReq) GetPhoneNumber ¶
func (x *CreateUserReq) GetPhoneNumber() string
func (*CreateUserReq) ProtoMessage ¶
func (*CreateUserReq) ProtoMessage()
func (*CreateUserReq) ProtoReflect ¶
func (x *CreateUserReq) ProtoReflect() protoreflect.Message
func (*CreateUserReq) Reset ¶
func (x *CreateUserReq) Reset()
func (*CreateUserReq) String ¶
func (x *CreateUserReq) String() string
type CreateUserRes ¶
type CreateUserRes struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*CreateUserRes) Descriptor
deprecated
func (*CreateUserRes) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRes.ProtoReflect.Descriptor instead.
func (*CreateUserRes) GetUid ¶
func (x *CreateUserRes) GetUid() int64
func (*CreateUserRes) ProtoMessage ¶
func (*CreateUserRes) ProtoMessage()
func (*CreateUserRes) ProtoReflect ¶
func (x *CreateUserRes) ProtoReflect() protoreflect.Message
func (*CreateUserRes) Reset ¶
func (x *CreateUserRes) Reset()
func (*CreateUserRes) String ¶
func (x *CreateUserRes) String() string
type Employee ¶
type Employee struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` IsActive bool `protobuf:"varint,2,opt,name=isActive,proto3" json:"isActive,omitempty"` RoleType RoleType `protobuf:"varint,3,opt,name=roleType,proto3,enum=fruver.core.protobuf.RoleType" json:"roleType,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*Employee) Descriptor
deprecated
func (*Employee) GetCreatedAt ¶
func (x *Employee) GetCreatedAt() *timestamppb.Timestamp
func (*Employee) GetIsActive ¶
func (*Employee) GetRoleType ¶
func (*Employee) GetUpdatedAt ¶
func (x *Employee) GetUpdatedAt() *timestamppb.Timestamp
func (*Employee) ProtoMessage ¶
func (*Employee) ProtoMessage()
func (*Employee) ProtoReflect ¶
func (x *Employee) ProtoReflect() protoreflect.Message
type GetEmployeeReq ¶
type GetEmployeeReq struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*GetEmployeeReq) Descriptor
deprecated
func (*GetEmployeeReq) Descriptor() ([]byte, []int)
Deprecated: Use GetEmployeeReq.ProtoReflect.Descriptor instead.
func (*GetEmployeeReq) GetUid ¶
func (x *GetEmployeeReq) GetUid() int64
func (*GetEmployeeReq) ProtoMessage ¶
func (*GetEmployeeReq) ProtoMessage()
func (*GetEmployeeReq) ProtoReflect ¶
func (x *GetEmployeeReq) ProtoReflect() protoreflect.Message
func (*GetEmployeeReq) Reset ¶
func (x *GetEmployeeReq) Reset()
func (*GetEmployeeReq) String ¶
func (x *GetEmployeeReq) String() string
type GetEmployeeRes ¶
type GetEmployeeRes struct { Employee *Employee `protobuf:"bytes,1,opt,name=employee,proto3" json:"employee,omitempty"` // contains filtered or unexported fields }
func (*GetEmployeeRes) Descriptor
deprecated
func (*GetEmployeeRes) Descriptor() ([]byte, []int)
Deprecated: Use GetEmployeeRes.ProtoReflect.Descriptor instead.
func (*GetEmployeeRes) GetEmployee ¶
func (x *GetEmployeeRes) GetEmployee() *Employee
func (*GetEmployeeRes) ProtoMessage ¶
func (*GetEmployeeRes) ProtoMessage()
func (*GetEmployeeRes) ProtoReflect ¶
func (x *GetEmployeeRes) ProtoReflect() protoreflect.Message
func (*GetEmployeeRes) Reset ¶
func (x *GetEmployeeRes) Reset()
func (*GetEmployeeRes) String ¶
func (x *GetEmployeeRes) String() string
type GetUserByTelReq ¶
type GetUserByTelReq struct { PhoneNumber string `protobuf:"bytes,1,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"` // contains filtered or unexported fields }
func (*GetUserByTelReq) Descriptor
deprecated
func (*GetUserByTelReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUserByTelReq.ProtoReflect.Descriptor instead.
func (*GetUserByTelReq) GetPhoneNumber ¶
func (x *GetUserByTelReq) GetPhoneNumber() string
func (*GetUserByTelReq) ProtoMessage ¶
func (*GetUserByTelReq) ProtoMessage()
func (*GetUserByTelReq) ProtoReflect ¶
func (x *GetUserByTelReq) ProtoReflect() protoreflect.Message
func (*GetUserByTelReq) Reset ¶
func (x *GetUserByTelReq) Reset()
func (*GetUserByTelReq) String ¶
func (x *GetUserByTelReq) String() string
type GetUserByTelRes ¶
type GetUserByTelRes struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*GetUserByTelRes) Descriptor
deprecated
func (*GetUserByTelRes) Descriptor() ([]byte, []int)
Deprecated: Use GetUserByTelRes.ProtoReflect.Descriptor instead.
func (*GetUserByTelRes) GetUser ¶
func (x *GetUserByTelRes) GetUser() *User
func (*GetUserByTelRes) ProtoMessage ¶
func (*GetUserByTelRes) ProtoMessage()
func (*GetUserByTelRes) ProtoReflect ¶
func (x *GetUserByTelRes) ProtoReflect() protoreflect.Message
func (*GetUserByTelRes) Reset ¶
func (x *GetUserByTelRes) Reset()
func (*GetUserByTelRes) String ¶
func (x *GetUserByTelRes) String() string
type GetUserReq ¶
type GetUserReq struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*GetUserReq) Descriptor
deprecated
func (*GetUserReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUserReq.ProtoReflect.Descriptor instead.
func (*GetUserReq) GetUid ¶
func (x *GetUserReq) GetUid() int64
func (*GetUserReq) ProtoMessage ¶
func (*GetUserReq) ProtoMessage()
func (*GetUserReq) ProtoReflect ¶
func (x *GetUserReq) ProtoReflect() protoreflect.Message
func (*GetUserReq) Reset ¶
func (x *GetUserReq) Reset()
func (*GetUserReq) String ¶
func (x *GetUserReq) String() string
type GetUserRes ¶
type GetUserRes struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*GetUserRes) Descriptor
deprecated
func (*GetUserRes) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRes.ProtoReflect.Descriptor instead.
func (*GetUserRes) GetUser ¶
func (x *GetUserRes) GetUser() *User
func (*GetUserRes) ProtoMessage ¶
func (*GetUserRes) ProtoMessage()
func (*GetUserRes) ProtoReflect ¶
func (x *GetUserRes) ProtoReflect() protoreflect.Message
func (*GetUserRes) Reset ¶
func (x *GetUserRes) Reset()
func (*GetUserRes) String ¶
func (x *GetUserRes) String() string
type RoleType ¶
type RoleType int32
func (RoleType) Descriptor ¶
func (RoleType) Descriptor() protoreflect.EnumDescriptor
func (RoleType) EnumDescriptor
deprecated
func (RoleType) Number ¶
func (x RoleType) Number() protoreflect.EnumNumber
func (RoleType) Type ¶
func (RoleType) Type() protoreflect.EnumType
type SendOneTimePassMsgReq ¶
type SendOneTimePassMsgReq struct { Channel TwilChannel `protobuf:"varint,1,opt,name=channel,proto3,enum=fruver.core.protobuf.TwilChannel" json:"channel,omitempty"` PhoneNumber string `protobuf:"bytes,2,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"` OneTimePass string `protobuf:"bytes,3,opt,name=oneTimePass,proto3" json:"oneTimePass,omitempty"` // contains filtered or unexported fields }
func (*SendOneTimePassMsgReq) Descriptor
deprecated
func (*SendOneTimePassMsgReq) Descriptor() ([]byte, []int)
Deprecated: Use SendOneTimePassMsgReq.ProtoReflect.Descriptor instead.
func (*SendOneTimePassMsgReq) GetChannel ¶
func (x *SendOneTimePassMsgReq) GetChannel() TwilChannel
func (*SendOneTimePassMsgReq) GetOneTimePass ¶
func (x *SendOneTimePassMsgReq) GetOneTimePass() string
func (*SendOneTimePassMsgReq) GetPhoneNumber ¶
func (x *SendOneTimePassMsgReq) GetPhoneNumber() string
func (*SendOneTimePassMsgReq) ProtoMessage ¶
func (*SendOneTimePassMsgReq) ProtoMessage()
func (*SendOneTimePassMsgReq) ProtoReflect ¶
func (x *SendOneTimePassMsgReq) ProtoReflect() protoreflect.Message
func (*SendOneTimePassMsgReq) Reset ¶
func (x *SendOneTimePassMsgReq) Reset()
func (*SendOneTimePassMsgReq) String ¶
func (x *SendOneTimePassMsgReq) String() string
type SendOneTimePassMsgRes ¶
type SendOneTimePassMsgRes struct {
// contains filtered or unexported fields
}
func (*SendOneTimePassMsgRes) Descriptor
deprecated
func (*SendOneTimePassMsgRes) Descriptor() ([]byte, []int)
Deprecated: Use SendOneTimePassMsgRes.ProtoReflect.Descriptor instead.
func (*SendOneTimePassMsgRes) ProtoMessage ¶
func (*SendOneTimePassMsgRes) ProtoMessage()
func (*SendOneTimePassMsgRes) ProtoReflect ¶
func (x *SendOneTimePassMsgRes) ProtoReflect() protoreflect.Message
func (*SendOneTimePassMsgRes) Reset ¶
func (x *SendOneTimePassMsgRes) Reset()
func (*SendOneTimePassMsgRes) String ¶
func (x *SendOneTimePassMsgRes) String() string
type SendOrderPlacedMsgReq ¶
type SendOrderPlacedMsgReq struct {
// contains filtered or unexported fields
}
func (*SendOrderPlacedMsgReq) Descriptor
deprecated
func (*SendOrderPlacedMsgReq) Descriptor() ([]byte, []int)
Deprecated: Use SendOrderPlacedMsgReq.ProtoReflect.Descriptor instead.
func (*SendOrderPlacedMsgReq) ProtoMessage ¶
func (*SendOrderPlacedMsgReq) ProtoMessage()
func (*SendOrderPlacedMsgReq) ProtoReflect ¶
func (x *SendOrderPlacedMsgReq) ProtoReflect() protoreflect.Message
func (*SendOrderPlacedMsgReq) Reset ¶
func (x *SendOrderPlacedMsgReq) Reset()
func (*SendOrderPlacedMsgReq) String ¶
func (x *SendOrderPlacedMsgReq) String() string
type SendOrderPlacedMsgRes ¶
type SendOrderPlacedMsgRes struct {
// contains filtered or unexported fields
}
func (*SendOrderPlacedMsgRes) Descriptor
deprecated
func (*SendOrderPlacedMsgRes) Descriptor() ([]byte, []int)
Deprecated: Use SendOrderPlacedMsgRes.ProtoReflect.Descriptor instead.
func (*SendOrderPlacedMsgRes) ProtoMessage ¶
func (*SendOrderPlacedMsgRes) ProtoMessage()
func (*SendOrderPlacedMsgRes) ProtoReflect ¶
func (x *SendOrderPlacedMsgRes) ProtoReflect() protoreflect.Message
func (*SendOrderPlacedMsgRes) Reset ¶
func (x *SendOrderPlacedMsgRes) Reset()
func (*SendOrderPlacedMsgRes) String ¶
func (x *SendOrderPlacedMsgRes) String() string
type TokenReq ¶
type TokenReq struct { PhoneNumber string `protobuf:"bytes,1,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"` OneTimePass string `protobuf:"bytes,2,opt,name=oneTimePass,proto3" json:"oneTimePass,omitempty"` // contains filtered or unexported fields }
func (*TokenReq) Descriptor
deprecated
func (*TokenReq) GetOneTimePass ¶
func (*TokenReq) GetPhoneNumber ¶
func (*TokenReq) ProtoMessage ¶
func (*TokenReq) ProtoMessage()
func (*TokenReq) ProtoReflect ¶
func (x *TokenReq) ProtoReflect() protoreflect.Message
type TokenRes ¶
type TokenRes struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*TokenRes) Descriptor
deprecated
func (*TokenRes) ProtoMessage ¶
func (*TokenRes) ProtoMessage()
func (*TokenRes) ProtoReflect ¶
func (x *TokenRes) ProtoReflect() protoreflect.Message
type TwilChannel ¶
type TwilChannel int32
const ( TwilChannel_Email TwilChannel = 0 TwilChannel_Voice TwilChannel = 1 TwilChannel_WhatsApp TwilChannel = 2 TwilChannel_TextMessage TwilChannel = 3 )
func (TwilChannel) Descriptor ¶
func (TwilChannel) Descriptor() protoreflect.EnumDescriptor
func (TwilChannel) Enum ¶
func (x TwilChannel) Enum() *TwilChannel
func (TwilChannel) EnumDescriptor
deprecated
func (TwilChannel) EnumDescriptor() ([]byte, []int)
Deprecated: Use TwilChannel.Descriptor instead.
func (TwilChannel) Number ¶
func (x TwilChannel) Number() protoreflect.EnumNumber
func (TwilChannel) String ¶
func (x TwilChannel) String() string
func (TwilChannel) Type ¶
func (TwilChannel) Type() protoreflect.EnumType
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct { }
UnimplementedAuthServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServer) CreateOneTimePass ¶
func (UnimplementedAuthServer) CreateOneTimePass(context.Context, *CreateOneTimePassReq) (*CreateOneTimePassRes, error)
func (UnimplementedAuthServer) VerifyOneTimePass ¶
func (UnimplementedAuthServer) VerifyOneTimePass(context.Context, *VerifyOneTimePassReq) (*VerifyOneTimePassRes, error)
type UnimplementedCommServer ¶
type UnimplementedCommServer struct { }
UnimplementedCommServer must be embedded to have forward compatible implementations.
func (UnimplementedCommServer) SendOneTimePassMsg ¶
func (UnimplementedCommServer) SendOneTimePassMsg(context.Context, *SendOneTimePassMsgReq) (*SendOneTimePassMsgRes, error)
func (UnimplementedCommServer) SendOrderPlacedMsg ¶
func (UnimplementedCommServer) SendOrderPlacedMsg(context.Context, *SendOrderPlacedMsgReq) (*SendOrderPlacedMsgRes, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) CreateEmployee ¶
func (UnimplementedUserServiceServer) CreateEmployee(context.Context, *CreateEmployeeReq) (*CreateEmployeeRes, error)
func (UnimplementedUserServiceServer) CreateUser ¶
func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserReq) (*CreateUserRes, error)
func (UnimplementedUserServiceServer) GetEmployee ¶
func (UnimplementedUserServiceServer) GetEmployee(context.Context, *GetEmployeeReq) (*GetEmployeeRes, error)
func (UnimplementedUserServiceServer) GetUser ¶
func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserReq) (*GetUserRes, error)
func (UnimplementedUserServiceServer) GetUserByTel ¶
func (UnimplementedUserServiceServer) GetUserByTel(context.Context, *GetUserByTelReq) (*GetUserByTelRes, error)
type UnsafeAuthServer ¶
type UnsafeAuthServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServer will result in compilation errors.
type UnsafeCommServer ¶
type UnsafeCommServer interface {
// contains filtered or unexported methods
}
UnsafeCommServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CommServer will result in compilation errors.
type UnsafeUserServiceServer ¶
type UnsafeUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
type User ¶
type User struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` FirstName string `protobuf:"bytes,2,opt,name=firstName,proto3" json:"firstName,omitempty"` LastName string `protobuf:"bytes,3,opt,name=lastName,proto3" json:"lastName,omitempty"` PhoneNumber string `protobuf:"bytes,4,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetFirstName ¶
func (*User) GetLastName ¶
func (*User) GetPhoneNumber ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserServiceClient ¶
type UserServiceClient interface { CreateUser(ctx context.Context, in *CreateUserReq, opts ...grpc.CallOption) (*CreateUserRes, error) GetUser(ctx context.Context, in *GetUserReq, opts ...grpc.CallOption) (*GetUserRes, error) GetUserByTel(ctx context.Context, in *GetUserByTelReq, opts ...grpc.CallOption) (*GetUserByTelRes, error) CreateEmployee(ctx context.Context, in *CreateEmployeeReq, opts ...grpc.CallOption) (*CreateEmployeeRes, error) GetEmployee(ctx context.Context, in *GetEmployeeReq, opts ...grpc.CallOption) (*GetEmployeeRes, error) }
UserServiceClient is the client API for UserService 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 NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { CreateUser(context.Context, *CreateUserReq) (*CreateUserRes, error) GetUser(context.Context, *GetUserReq) (*GetUserRes, error) GetUserByTel(context.Context, *GetUserByTelReq) (*GetUserByTelRes, error) CreateEmployee(context.Context, *CreateEmployeeReq) (*CreateEmployeeRes, error) GetEmployee(context.Context, *GetEmployeeReq) (*GetEmployeeRes, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility
type VerifyOneTimePassReq ¶
type VerifyOneTimePassReq struct { PhoneNumber string `protobuf:"bytes,1,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"` OneTimePass string `protobuf:"bytes,2,opt,name=oneTimePass,proto3" json:"oneTimePass,omitempty"` // contains filtered or unexported fields }
func (*VerifyOneTimePassReq) Descriptor
deprecated
func (*VerifyOneTimePassReq) Descriptor() ([]byte, []int)
Deprecated: Use VerifyOneTimePassReq.ProtoReflect.Descriptor instead.
func (*VerifyOneTimePassReq) GetOneTimePass ¶
func (x *VerifyOneTimePassReq) GetOneTimePass() string
func (*VerifyOneTimePassReq) GetPhoneNumber ¶
func (x *VerifyOneTimePassReq) GetPhoneNumber() string
func (*VerifyOneTimePassReq) ProtoMessage ¶
func (*VerifyOneTimePassReq) ProtoMessage()
func (*VerifyOneTimePassReq) ProtoReflect ¶
func (x *VerifyOneTimePassReq) ProtoReflect() protoreflect.Message
func (*VerifyOneTimePassReq) Reset ¶
func (x *VerifyOneTimePassReq) Reset()
func (*VerifyOneTimePassReq) String ¶
func (x *VerifyOneTimePassReq) String() string
type VerifyOneTimePassRes ¶
type VerifyOneTimePassRes struct {
// contains filtered or unexported fields
}
func (*VerifyOneTimePassRes) Descriptor
deprecated
func (*VerifyOneTimePassRes) Descriptor() ([]byte, []int)
Deprecated: Use VerifyOneTimePassRes.ProtoReflect.Descriptor instead.
func (*VerifyOneTimePassRes) ProtoMessage ¶
func (*VerifyOneTimePassRes) ProtoMessage()
func (*VerifyOneTimePassRes) ProtoReflect ¶
func (x *VerifyOneTimePassRes) ProtoReflect() protoreflect.Message
func (*VerifyOneTimePassRes) Reset ¶
func (x *VerifyOneTimePassRes) Reset()
func (*VerifyOneTimePassRes) String ¶
func (x *VerifyOneTimePassRes) String() string