v1

package
v0.0.0-...-7078411 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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)

View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Employee.ProtoReflect.Descriptor instead.

func (*Employee) GetCreatedAt

func (x *Employee) GetCreatedAt() *timestamppb.Timestamp

func (*Employee) GetIsActive

func (x *Employee) GetIsActive() bool

func (*Employee) GetRoleType

func (x *Employee) GetRoleType() RoleType

func (*Employee) GetUpdatedAt

func (x *Employee) GetUpdatedAt() *timestamppb.Timestamp

func (*Employee) GetUser

func (x *Employee) GetUser() *User

func (*Employee) ProtoMessage

func (*Employee) ProtoMessage()

func (*Employee) ProtoReflect

func (x *Employee) ProtoReflect() protoreflect.Message

func (*Employee) Reset

func (x *Employee) Reset()

func (*Employee) String

func (x *Employee) String() string

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
const (
	RoleType_auxiliary RoleType = 0
	RoleType_delivery  RoleType = 1
	RoleType_shopper   RoleType = 2
	RoleType_manager   RoleType = 3
	RoleType_admin     RoleType = 4
)

func (RoleType) Descriptor

func (RoleType) Descriptor() protoreflect.EnumDescriptor

func (RoleType) Enum

func (x RoleType) Enum() *RoleType

func (RoleType) EnumDescriptor deprecated

func (RoleType) EnumDescriptor() ([]byte, []int)

Deprecated: Use RoleType.Descriptor instead.

func (RoleType) Number

func (x RoleType) Number() protoreflect.EnumNumber

func (RoleType) String

func (x RoleType) String() string

func (RoleType) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use TokenReq.ProtoReflect.Descriptor instead.

func (*TokenReq) GetOneTimePass

func (x *TokenReq) GetOneTimePass() string

func (*TokenReq) GetPhoneNumber

func (x *TokenReq) GetPhoneNumber() string

func (*TokenReq) ProtoMessage

func (*TokenReq) ProtoMessage()

func (*TokenReq) ProtoReflect

func (x *TokenReq) ProtoReflect() protoreflect.Message

func (*TokenReq) Reset

func (x *TokenReq) Reset()

func (*TokenReq) String

func (x *TokenReq) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use TokenRes.ProtoReflect.Descriptor instead.

func (*TokenRes) GetResult

func (x *TokenRes) GetResult() string

func (*TokenRes) ProtoMessage

func (*TokenRes) ProtoMessage()

func (*TokenRes) ProtoReflect

func (x *TokenRes) ProtoReflect() protoreflect.Message

func (*TokenRes) Reset

func (x *TokenRes) Reset()

func (*TokenRes) String

func (x *TokenRes) String() string

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) 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

type UnimplementedAuthServer

type UnimplementedAuthServer struct {
}

UnimplementedAuthServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthServer) CreateOneTimePass

func (UnimplementedAuthServer) Token

func (UnimplementedAuthServer) VerifyOneTimePass

type UnimplementedCommServer

type UnimplementedCommServer struct {
}

UnimplementedCommServer must be embedded to have forward compatible implementations.

func (UnimplementedCommServer) SendOneTimePassMsg

func (UnimplementedCommServer) SendOrderPlacedMsg

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) CreateEmployee

func (UnimplementedUserServiceServer) CreateUser

func (UnimplementedUserServiceServer) GetEmployee

func (UnimplementedUserServiceServer) GetUser

func (UnimplementedUserServiceServer) GetUserByTel

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) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetFirstName

func (x *User) GetFirstName() string

func (*User) GetId

func (x *User) GetId() int64

func (*User) GetLastName

func (x *User) GetLastName() string

func (*User) GetPhoneNumber

func (x *User) GetPhoneNumber() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

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.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL