Documentation ¶
Index ¶
- Variables
- func RegisterInviteServer(s grpc.ServiceRegistrar, srv InviteServer)
- type GetInvitationStatusRequest
- func (*GetInvitationStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetInvitationStatusRequest) GetUserId() *v1.UserId
- func (*GetInvitationStatusRequest) ProtoMessage()
- func (x *GetInvitationStatusRequest) ProtoReflect() protoreflect.Message
- func (x *GetInvitationStatusRequest) Reset()
- func (x *GetInvitationStatusRequest) String() string
- func (m *GetInvitationStatusRequest) Validate() error
- type GetInvitationStatusRequestValidationError
- func (e GetInvitationStatusRequestValidationError) Cause() error
- func (e GetInvitationStatusRequestValidationError) Error() string
- func (e GetInvitationStatusRequestValidationError) ErrorName() string
- func (e GetInvitationStatusRequestValidationError) Field() string
- func (e GetInvitationStatusRequestValidationError) Key() bool
- func (e GetInvitationStatusRequestValidationError) Reason() string
- type GetInvitationStatusResponse
- func (*GetInvitationStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetInvitationStatusResponse) GetResult() GetInvitationStatusResponse_Result
- func (x *GetInvitationStatusResponse) GetStatus() InvitationStatus
- func (*GetInvitationStatusResponse) ProtoMessage()
- func (x *GetInvitationStatusResponse) ProtoReflect() protoreflect.Message
- func (x *GetInvitationStatusResponse) Reset()
- func (x *GetInvitationStatusResponse) String() string
- func (m *GetInvitationStatusResponse) Validate() error
- type GetInvitationStatusResponseValidationError
- func (e GetInvitationStatusResponseValidationError) Cause() error
- func (e GetInvitationStatusResponseValidationError) Error() string
- func (e GetInvitationStatusResponseValidationError) ErrorName() string
- func (e GetInvitationStatusResponseValidationError) Field() string
- func (e GetInvitationStatusResponseValidationError) Key() bool
- func (e GetInvitationStatusResponseValidationError) Reason() string
- type GetInvitationStatusResponse_Result
- func (GetInvitationStatusResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x GetInvitationStatusResponse_Result) Enum() *GetInvitationStatusResponse_Result
- func (GetInvitationStatusResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetInvitationStatusResponse_Result) Number() protoreflect.EnumNumber
- func (x GetInvitationStatusResponse_Result) String() string
- func (GetInvitationStatusResponse_Result) Type() protoreflect.EnumType
- type GetInviteCountRequest
- func (*GetInviteCountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetInviteCountRequest) GetUserId() *v1.UserId
- func (*GetInviteCountRequest) ProtoMessage()
- func (x *GetInviteCountRequest) ProtoReflect() protoreflect.Message
- func (x *GetInviteCountRequest) Reset()
- func (x *GetInviteCountRequest) String() string
- func (m *GetInviteCountRequest) Validate() error
- type GetInviteCountRequestValidationError
- func (e GetInviteCountRequestValidationError) Cause() error
- func (e GetInviteCountRequestValidationError) Error() string
- func (e GetInviteCountRequestValidationError) ErrorName() string
- func (e GetInviteCountRequestValidationError) Field() string
- func (e GetInviteCountRequestValidationError) Key() bool
- func (e GetInviteCountRequestValidationError) Reason() string
- type GetInviteCountResponse
- func (*GetInviteCountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetInviteCountResponse) GetInviteCount() uint32
- func (x *GetInviteCountResponse) GetResult() GetInviteCountResponse_Result
- func (*GetInviteCountResponse) ProtoMessage()
- func (x *GetInviteCountResponse) ProtoReflect() protoreflect.Message
- func (x *GetInviteCountResponse) Reset()
- func (x *GetInviteCountResponse) String() string
- func (m *GetInviteCountResponse) Validate() error
- type GetInviteCountResponseValidationError
- func (e GetInviteCountResponseValidationError) Cause() error
- func (e GetInviteCountResponseValidationError) Error() string
- func (e GetInviteCountResponseValidationError) ErrorName() string
- func (e GetInviteCountResponseValidationError) Field() string
- func (e GetInviteCountResponseValidationError) Key() bool
- func (e GetInviteCountResponseValidationError) Reason() string
- type GetInviteCountResponse_Result
- func (GetInviteCountResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x GetInviteCountResponse_Result) Enum() *GetInviteCountResponse_Result
- func (GetInviteCountResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetInviteCountResponse_Result) Number() protoreflect.EnumNumber
- func (x GetInviteCountResponse_Result) String() string
- func (GetInviteCountResponse_Result) Type() protoreflect.EnumType
- type InvitationStatus
- func (InvitationStatus) Descriptor() protoreflect.EnumDescriptor
- func (x InvitationStatus) Enum() *InvitationStatus
- func (InvitationStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x InvitationStatus) Number() protoreflect.EnumNumber
- func (x InvitationStatus) String() string
- func (InvitationStatus) Type() protoreflect.EnumType
- type InviteClient
- type InviteCode
- type InviteCodeValidationError
- type InvitePhoneNumberRequest
- func (*InvitePhoneNumberRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InvitePhoneNumberRequest) GetInviteCode() *InviteCode
- func (x *InvitePhoneNumberRequest) GetReceiver() *v1.PhoneNumber
- func (m *InvitePhoneNumberRequest) GetSource() isInvitePhoneNumberRequest_Source
- func (x *InvitePhoneNumberRequest) GetUser() *v1.UserId
- func (*InvitePhoneNumberRequest) ProtoMessage()
- func (x *InvitePhoneNumberRequest) ProtoReflect() protoreflect.Message
- func (x *InvitePhoneNumberRequest) Reset()
- func (x *InvitePhoneNumberRequest) String() string
- func (m *InvitePhoneNumberRequest) Validate() error
- type InvitePhoneNumberRequestValidationError
- func (e InvitePhoneNumberRequestValidationError) Cause() error
- func (e InvitePhoneNumberRequestValidationError) Error() string
- func (e InvitePhoneNumberRequestValidationError) ErrorName() string
- func (e InvitePhoneNumberRequestValidationError) Field() string
- func (e InvitePhoneNumberRequestValidationError) Key() bool
- func (e InvitePhoneNumberRequestValidationError) Reason() string
- type InvitePhoneNumberRequest_InviteCode
- type InvitePhoneNumberRequest_User
- type InvitePhoneNumberResponse
- func (*InvitePhoneNumberResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InvitePhoneNumberResponse) GetResult() InvitePhoneNumberResponse_Result
- func (*InvitePhoneNumberResponse) ProtoMessage()
- func (x *InvitePhoneNumberResponse) ProtoReflect() protoreflect.Message
- func (x *InvitePhoneNumberResponse) Reset()
- func (x *InvitePhoneNumberResponse) String() string
- func (m *InvitePhoneNumberResponse) Validate() error
- type InvitePhoneNumberResponseValidationError
- func (e InvitePhoneNumberResponseValidationError) Cause() error
- func (e InvitePhoneNumberResponseValidationError) Error() string
- func (e InvitePhoneNumberResponseValidationError) ErrorName() string
- func (e InvitePhoneNumberResponseValidationError) Field() string
- func (e InvitePhoneNumberResponseValidationError) Key() bool
- func (e InvitePhoneNumberResponseValidationError) Reason() string
- type InvitePhoneNumberResponse_Result
- func (InvitePhoneNumberResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x InvitePhoneNumberResponse_Result) Enum() *InvitePhoneNumberResponse_Result
- func (InvitePhoneNumberResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x InvitePhoneNumberResponse_Result) Number() protoreflect.EnumNumber
- func (x InvitePhoneNumberResponse_Result) String() string
- func (InvitePhoneNumberResponse_Result) Type() protoreflect.EnumType
- type InviteServer
- type PageToken
- type PageTokenValidationError
- type UnimplementedInviteServer
- func (UnimplementedInviteServer) GetInvitationStatus(context.Context, *GetInvitationStatusRequest) (*GetInvitationStatusResponse, error)
- func (UnimplementedInviteServer) GetInviteCount(context.Context, *GetInviteCountRequest) (*GetInviteCountResponse, error)
- func (UnimplementedInviteServer) InvitePhoneNumber(context.Context, *InvitePhoneNumberRequest) (*InvitePhoneNumberResponse, error)
- type UnsafeInviteServer
Constants ¶
This section is empty.
Variables ¶
var ( InvitationStatus_name = map[int32]string{ 0: "NOT_INVITED", 1: "INVITED", 2: "REGISTERED", 3: "REVOKED", } InvitationStatus_value = map[string]int32{ "NOT_INVITED": 0, "INVITED": 1, "REGISTERED": 2, "REVOKED": 3, } )
Enum value maps for InvitationStatus.
var ( GetInviteCountResponse_Result_name = map[int32]string{ 0: "OK", } GetInviteCountResponse_Result_value = map[string]int32{ "OK": 0, } )
Enum value maps for GetInviteCountResponse_Result.
var ( InvitePhoneNumberResponse_Result_name = map[int32]string{ 0: "OK", 1: "INVITE_COUNT_EXCEEDED", 2: "ALREADY_INVITED", 3: "USER_NOT_INVITED", 4: "INVALID_RECEIVER_PHONE_NUMBER", 5: "INVITE_CODE_NOT_FOUND", 6: "INVITE_CODE_REVOKED", 7: "INVITE_CODE_EXPIRED", } InvitePhoneNumberResponse_Result_value = map[string]int32{ "OK": 0, "INVITE_COUNT_EXCEEDED": 1, "ALREADY_INVITED": 2, "USER_NOT_INVITED": 3, "INVALID_RECEIVER_PHONE_NUMBER": 4, "INVITE_CODE_NOT_FOUND": 5, "INVITE_CODE_REVOKED": 6, "INVITE_CODE_EXPIRED": 7, } )
Enum value maps for InvitePhoneNumberResponse_Result.
var ( GetInvitationStatusResponse_Result_name = map[int32]string{ 0: "OK", } GetInvitationStatusResponse_Result_value = map[string]int32{ "OK": 0, } )
Enum value maps for GetInvitationStatusResponse_Result.
var File_invite_v2_invite_service_proto protoreflect.FileDescriptor
var Invite_ServiceDesc = grpc.ServiceDesc{ ServiceName: "code.invite.v2.Invite", HandlerType: (*InviteServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetInviteCount", Handler: _Invite_GetInviteCount_Handler, }, { MethodName: "InvitePhoneNumber", Handler: _Invite_InvitePhoneNumber_Handler, }, { MethodName: "GetInvitationStatus", Handler: _Invite_GetInvitationStatus_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "invite/v2/invite_service.proto", }
Invite_ServiceDesc is the grpc.ServiceDesc for Invite service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterInviteServer ¶
func RegisterInviteServer(s grpc.ServiceRegistrar, srv InviteServer)
Types ¶
type GetInvitationStatusRequest ¶
type GetInvitationStatusRequest struct { // The user being queried for their invitation status. UserId *v1.UserId `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*GetInvitationStatusRequest) Descriptor
deprecated
func (*GetInvitationStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetInvitationStatusRequest.ProtoReflect.Descriptor instead.
func (*GetInvitationStatusRequest) GetUserId ¶
func (x *GetInvitationStatusRequest) GetUserId() *v1.UserId
func (*GetInvitationStatusRequest) ProtoMessage ¶
func (*GetInvitationStatusRequest) ProtoMessage()
func (*GetInvitationStatusRequest) ProtoReflect ¶
func (x *GetInvitationStatusRequest) ProtoReflect() protoreflect.Message
func (*GetInvitationStatusRequest) Reset ¶
func (x *GetInvitationStatusRequest) Reset()
func (*GetInvitationStatusRequest) String ¶
func (x *GetInvitationStatusRequest) String() string
func (*GetInvitationStatusRequest) Validate ¶
func (m *GetInvitationStatusRequest) Validate() error
Validate checks the field values on GetInvitationStatusRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetInvitationStatusRequestValidationError ¶
type GetInvitationStatusRequestValidationError struct {
// contains filtered or unexported fields
}
GetInvitationStatusRequestValidationError is the validation error returned by GetInvitationStatusRequest.Validate if the designated constraints aren't met.
func (GetInvitationStatusRequestValidationError) Cause ¶
func (e GetInvitationStatusRequestValidationError) Cause() error
Cause function returns cause value.
func (GetInvitationStatusRequestValidationError) Error ¶
func (e GetInvitationStatusRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetInvitationStatusRequestValidationError) ErrorName ¶
func (e GetInvitationStatusRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetInvitationStatusRequestValidationError) Field ¶
func (e GetInvitationStatusRequestValidationError) Field() string
Field function returns field value.
func (GetInvitationStatusRequestValidationError) Key ¶
func (e GetInvitationStatusRequestValidationError) Key() bool
Key function returns key value.
func (GetInvitationStatusRequestValidationError) Reason ¶
func (e GetInvitationStatusRequestValidationError) Reason() string
Reason function returns reason value.
type GetInvitationStatusResponse ¶
type GetInvitationStatusResponse struct { Result GetInvitationStatusResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.invite.v2.GetInvitationStatusResponse_Result" json:"result,omitempty"` // The user's invitation status Status InvitationStatus `protobuf:"varint,2,opt,name=status,proto3,enum=code.invite.v2.InvitationStatus" json:"status,omitempty"` // contains filtered or unexported fields }
func (*GetInvitationStatusResponse) Descriptor
deprecated
func (*GetInvitationStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetInvitationStatusResponse.ProtoReflect.Descriptor instead.
func (*GetInvitationStatusResponse) GetResult ¶
func (x *GetInvitationStatusResponse) GetResult() GetInvitationStatusResponse_Result
func (*GetInvitationStatusResponse) GetStatus ¶
func (x *GetInvitationStatusResponse) GetStatus() InvitationStatus
func (*GetInvitationStatusResponse) ProtoMessage ¶
func (*GetInvitationStatusResponse) ProtoMessage()
func (*GetInvitationStatusResponse) ProtoReflect ¶
func (x *GetInvitationStatusResponse) ProtoReflect() protoreflect.Message
func (*GetInvitationStatusResponse) Reset ¶
func (x *GetInvitationStatusResponse) Reset()
func (*GetInvitationStatusResponse) String ¶
func (x *GetInvitationStatusResponse) String() string
func (*GetInvitationStatusResponse) Validate ¶
func (m *GetInvitationStatusResponse) Validate() error
Validate checks the field values on GetInvitationStatusResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetInvitationStatusResponseValidationError ¶
type GetInvitationStatusResponseValidationError struct {
// contains filtered or unexported fields
}
GetInvitationStatusResponseValidationError is the validation error returned by GetInvitationStatusResponse.Validate if the designated constraints aren't met.
func (GetInvitationStatusResponseValidationError) Cause ¶
func (e GetInvitationStatusResponseValidationError) Cause() error
Cause function returns cause value.
func (GetInvitationStatusResponseValidationError) Error ¶
func (e GetInvitationStatusResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetInvitationStatusResponseValidationError) ErrorName ¶
func (e GetInvitationStatusResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetInvitationStatusResponseValidationError) Field ¶
func (e GetInvitationStatusResponseValidationError) Field() string
Field function returns field value.
func (GetInvitationStatusResponseValidationError) Key ¶
func (e GetInvitationStatusResponseValidationError) Key() bool
Key function returns key value.
func (GetInvitationStatusResponseValidationError) Reason ¶
func (e GetInvitationStatusResponseValidationError) Reason() string
Reason function returns reason value.
type GetInvitationStatusResponse_Result ¶
type GetInvitationStatusResponse_Result int32
const (
GetInvitationStatusResponse_OK GetInvitationStatusResponse_Result = 0
)
func (GetInvitationStatusResponse_Result) Descriptor ¶
func (GetInvitationStatusResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (GetInvitationStatusResponse_Result) Enum ¶
func (x GetInvitationStatusResponse_Result) Enum() *GetInvitationStatusResponse_Result
func (GetInvitationStatusResponse_Result) EnumDescriptor
deprecated
func (GetInvitationStatusResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetInvitationStatusResponse_Result.Descriptor instead.
func (GetInvitationStatusResponse_Result) Number ¶
func (x GetInvitationStatusResponse_Result) Number() protoreflect.EnumNumber
func (GetInvitationStatusResponse_Result) String ¶
func (x GetInvitationStatusResponse_Result) String() string
func (GetInvitationStatusResponse_Result) Type ¶
func (GetInvitationStatusResponse_Result) Type() protoreflect.EnumType
type GetInviteCountRequest ¶
type GetInviteCountRequest struct { // The user to query for their invite count UserId *v1.UserId `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*GetInviteCountRequest) Descriptor
deprecated
func (*GetInviteCountRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetInviteCountRequest.ProtoReflect.Descriptor instead.
func (*GetInviteCountRequest) GetUserId ¶
func (x *GetInviteCountRequest) GetUserId() *v1.UserId
func (*GetInviteCountRequest) ProtoMessage ¶
func (*GetInviteCountRequest) ProtoMessage()
func (*GetInviteCountRequest) ProtoReflect ¶
func (x *GetInviteCountRequest) ProtoReflect() protoreflect.Message
func (*GetInviteCountRequest) Reset ¶
func (x *GetInviteCountRequest) Reset()
func (*GetInviteCountRequest) String ¶
func (x *GetInviteCountRequest) String() string
func (*GetInviteCountRequest) Validate ¶
func (m *GetInviteCountRequest) Validate() error
Validate checks the field values on GetInviteCountRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetInviteCountRequestValidationError ¶
type GetInviteCountRequestValidationError struct {
// contains filtered or unexported fields
}
GetInviteCountRequestValidationError is the validation error returned by GetInviteCountRequest.Validate if the designated constraints aren't met.
func (GetInviteCountRequestValidationError) Cause ¶
func (e GetInviteCountRequestValidationError) Cause() error
Cause function returns cause value.
func (GetInviteCountRequestValidationError) Error ¶
func (e GetInviteCountRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetInviteCountRequestValidationError) ErrorName ¶
func (e GetInviteCountRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetInviteCountRequestValidationError) Field ¶
func (e GetInviteCountRequestValidationError) Field() string
Field function returns field value.
func (GetInviteCountRequestValidationError) Key ¶
func (e GetInviteCountRequestValidationError) Key() bool
Key function returns key value.
func (GetInviteCountRequestValidationError) Reason ¶
func (e GetInviteCountRequestValidationError) Reason() string
Reason function returns reason value.
type GetInviteCountResponse ¶
type GetInviteCountResponse struct { Result GetInviteCountResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.invite.v2.GetInviteCountResponse_Result" json:"result,omitempty"` // The number of invites the user is allowed to issue. InviteCount uint32 `protobuf:"varint,2,opt,name=invite_count,json=inviteCount,proto3" json:"invite_count,omitempty"` // contains filtered or unexported fields }
func (*GetInviteCountResponse) Descriptor
deprecated
func (*GetInviteCountResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetInviteCountResponse.ProtoReflect.Descriptor instead.
func (*GetInviteCountResponse) GetInviteCount ¶
func (x *GetInviteCountResponse) GetInviteCount() uint32
func (*GetInviteCountResponse) GetResult ¶
func (x *GetInviteCountResponse) GetResult() GetInviteCountResponse_Result
func (*GetInviteCountResponse) ProtoMessage ¶
func (*GetInviteCountResponse) ProtoMessage()
func (*GetInviteCountResponse) ProtoReflect ¶
func (x *GetInviteCountResponse) ProtoReflect() protoreflect.Message
func (*GetInviteCountResponse) Reset ¶
func (x *GetInviteCountResponse) Reset()
func (*GetInviteCountResponse) String ¶
func (x *GetInviteCountResponse) String() string
func (*GetInviteCountResponse) Validate ¶
func (m *GetInviteCountResponse) Validate() error
Validate checks the field values on GetInviteCountResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetInviteCountResponseValidationError ¶
type GetInviteCountResponseValidationError struct {
// contains filtered or unexported fields
}
GetInviteCountResponseValidationError is the validation error returned by GetInviteCountResponse.Validate if the designated constraints aren't met.
func (GetInviteCountResponseValidationError) Cause ¶
func (e GetInviteCountResponseValidationError) Cause() error
Cause function returns cause value.
func (GetInviteCountResponseValidationError) Error ¶
func (e GetInviteCountResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetInviteCountResponseValidationError) ErrorName ¶
func (e GetInviteCountResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetInviteCountResponseValidationError) Field ¶
func (e GetInviteCountResponseValidationError) Field() string
Field function returns field value.
func (GetInviteCountResponseValidationError) Key ¶
func (e GetInviteCountResponseValidationError) Key() bool
Key function returns key value.
func (GetInviteCountResponseValidationError) Reason ¶
func (e GetInviteCountResponseValidationError) Reason() string
Reason function returns reason value.
type GetInviteCountResponse_Result ¶
type GetInviteCountResponse_Result int32
const (
GetInviteCountResponse_OK GetInviteCountResponse_Result = 0
)
func (GetInviteCountResponse_Result) Descriptor ¶
func (GetInviteCountResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (GetInviteCountResponse_Result) Enum ¶
func (x GetInviteCountResponse_Result) Enum() *GetInviteCountResponse_Result
func (GetInviteCountResponse_Result) EnumDescriptor
deprecated
func (GetInviteCountResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetInviteCountResponse_Result.Descriptor instead.
func (GetInviteCountResponse_Result) Number ¶
func (x GetInviteCountResponse_Result) Number() protoreflect.EnumNumber
func (GetInviteCountResponse_Result) String ¶
func (x GetInviteCountResponse_Result) String() string
func (GetInviteCountResponse_Result) Type ¶
func (GetInviteCountResponse_Result) Type() protoreflect.EnumType
type InvitationStatus ¶
type InvitationStatus int32
const ( // The phone number has never been invited. InvitationStatus_NOT_INVITED InvitationStatus = 0 // The phone number has been invited at least once. InvitationStatus_INVITED InvitationStatus = 1 // The phone number has been invited and used the app at least once via a // phone verified account creation or login. InvitationStatus_REGISTERED InvitationStatus = 2 // The phone number was invited, but revoked at a later time. InvitationStatus_REVOKED InvitationStatus = 3 )
func (InvitationStatus) Descriptor ¶
func (InvitationStatus) Descriptor() protoreflect.EnumDescriptor
func (InvitationStatus) Enum ¶
func (x InvitationStatus) Enum() *InvitationStatus
func (InvitationStatus) EnumDescriptor
deprecated
func (InvitationStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use InvitationStatus.Descriptor instead.
func (InvitationStatus) Number ¶
func (x InvitationStatus) Number() protoreflect.EnumNumber
func (InvitationStatus) String ¶
func (x InvitationStatus) String() string
func (InvitationStatus) Type ¶
func (InvitationStatus) Type() protoreflect.EnumType
type InviteClient ¶
type InviteClient interface { // GetInviteCount gets the number of invites that a user can send out. GetInviteCount(ctx context.Context, in *GetInviteCountRequest, opts ...grpc.CallOption) (*GetInviteCountResponse, error) // InvitePhoneNumber invites someone to join via their phone number. A phone number // can only be invited once by a unique user or invite code. This is to avoid having // a phone number consuming more than one invite count globally. InvitePhoneNumber(ctx context.Context, in *InvitePhoneNumberRequest, opts ...grpc.CallOption) (*InvitePhoneNumberResponse, error) // GetInvitationStatus gets a phone number's invitation status. GetInvitationStatus(ctx context.Context, in *GetInvitationStatusRequest, opts ...grpc.CallOption) (*GetInvitationStatusResponse, error) }
InviteClient is the client API for Invite 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 NewInviteClient ¶
func NewInviteClient(cc grpc.ClientConnInterface) InviteClient
type InviteCode ¶
type InviteCode struct { // Regex for invite codes Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*InviteCode) Descriptor
deprecated
func (*InviteCode) Descriptor() ([]byte, []int)
Deprecated: Use InviteCode.ProtoReflect.Descriptor instead.
func (*InviteCode) GetValue ¶
func (x *InviteCode) GetValue() string
func (*InviteCode) ProtoMessage ¶
func (*InviteCode) ProtoMessage()
func (*InviteCode) ProtoReflect ¶
func (x *InviteCode) ProtoReflect() protoreflect.Message
func (*InviteCode) Reset ¶
func (x *InviteCode) Reset()
func (*InviteCode) String ¶
func (x *InviteCode) String() string
func (*InviteCode) Validate ¶
func (m *InviteCode) Validate() error
Validate checks the field values on InviteCode with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type InviteCodeValidationError ¶
type InviteCodeValidationError struct {
// contains filtered or unexported fields
}
InviteCodeValidationError is the validation error returned by InviteCode.Validate if the designated constraints aren't met.
func (InviteCodeValidationError) Cause ¶
func (e InviteCodeValidationError) Cause() error
Cause function returns cause value.
func (InviteCodeValidationError) Error ¶
func (e InviteCodeValidationError) Error() string
Error satisfies the builtin error interface
func (InviteCodeValidationError) ErrorName ¶
func (e InviteCodeValidationError) ErrorName() string
ErrorName returns error name.
func (InviteCodeValidationError) Field ¶
func (e InviteCodeValidationError) Field() string
Field function returns field value.
func (InviteCodeValidationError) Key ¶
func (e InviteCodeValidationError) Key() bool
Key function returns key value.
func (InviteCodeValidationError) Reason ¶
func (e InviteCodeValidationError) Reason() string
Reason function returns reason value.
type InvitePhoneNumberRequest ¶
type InvitePhoneNumberRequest struct { // The source for the invite. One of these values must be present // // Types that are assignable to Source: // // *InvitePhoneNumberRequest_User // *InvitePhoneNumberRequest_InviteCode Source isInvitePhoneNumberRequest_Source `protobuf_oneof:"source"` // The phone number receiving the invite. Receiver *v1.PhoneNumber `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` // contains filtered or unexported fields }
func (*InvitePhoneNumberRequest) Descriptor
deprecated
func (*InvitePhoneNumberRequest) Descriptor() ([]byte, []int)
Deprecated: Use InvitePhoneNumberRequest.ProtoReflect.Descriptor instead.
func (*InvitePhoneNumberRequest) GetInviteCode ¶
func (x *InvitePhoneNumberRequest) GetInviteCode() *InviteCode
func (*InvitePhoneNumberRequest) GetReceiver ¶
func (x *InvitePhoneNumberRequest) GetReceiver() *v1.PhoneNumber
func (*InvitePhoneNumberRequest) GetSource ¶
func (m *InvitePhoneNumberRequest) GetSource() isInvitePhoneNumberRequest_Source
func (*InvitePhoneNumberRequest) GetUser ¶
func (x *InvitePhoneNumberRequest) GetUser() *v1.UserId
func (*InvitePhoneNumberRequest) ProtoMessage ¶
func (*InvitePhoneNumberRequest) ProtoMessage()
func (*InvitePhoneNumberRequest) ProtoReflect ¶
func (x *InvitePhoneNumberRequest) ProtoReflect() protoreflect.Message
func (*InvitePhoneNumberRequest) Reset ¶
func (x *InvitePhoneNumberRequest) Reset()
func (*InvitePhoneNumberRequest) String ¶
func (x *InvitePhoneNumberRequest) String() string
func (*InvitePhoneNumberRequest) Validate ¶
func (m *InvitePhoneNumberRequest) Validate() error
Validate checks the field values on InvitePhoneNumberRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type InvitePhoneNumberRequestValidationError ¶
type InvitePhoneNumberRequestValidationError struct {
// contains filtered or unexported fields
}
InvitePhoneNumberRequestValidationError is the validation error returned by InvitePhoneNumberRequest.Validate if the designated constraints aren't met.
func (InvitePhoneNumberRequestValidationError) Cause ¶
func (e InvitePhoneNumberRequestValidationError) Cause() error
Cause function returns cause value.
func (InvitePhoneNumberRequestValidationError) Error ¶
func (e InvitePhoneNumberRequestValidationError) Error() string
Error satisfies the builtin error interface
func (InvitePhoneNumberRequestValidationError) ErrorName ¶
func (e InvitePhoneNumberRequestValidationError) ErrorName() string
ErrorName returns error name.
func (InvitePhoneNumberRequestValidationError) Field ¶
func (e InvitePhoneNumberRequestValidationError) Field() string
Field function returns field value.
func (InvitePhoneNumberRequestValidationError) Key ¶
func (e InvitePhoneNumberRequestValidationError) Key() bool
Key function returns key value.
func (InvitePhoneNumberRequestValidationError) Reason ¶
func (e InvitePhoneNumberRequestValidationError) Reason() string
Reason function returns reason value.
type InvitePhoneNumberRequest_InviteCode ¶
type InvitePhoneNumberRequest_InviteCode struct {
InviteCode *InviteCode `protobuf:"bytes,3,opt,name=invite_code,json=inviteCode,proto3,oneof"`
}
type InvitePhoneNumberResponse ¶
type InvitePhoneNumberResponse struct { Result InvitePhoneNumberResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.invite.v2.InvitePhoneNumberResponse_Result" json:"result,omitempty"` // contains filtered or unexported fields }
func (*InvitePhoneNumberResponse) Descriptor
deprecated
func (*InvitePhoneNumberResponse) Descriptor() ([]byte, []int)
Deprecated: Use InvitePhoneNumberResponse.ProtoReflect.Descriptor instead.
func (*InvitePhoneNumberResponse) GetResult ¶
func (x *InvitePhoneNumberResponse) GetResult() InvitePhoneNumberResponse_Result
func (*InvitePhoneNumberResponse) ProtoMessage ¶
func (*InvitePhoneNumberResponse) ProtoMessage()
func (*InvitePhoneNumberResponse) ProtoReflect ¶
func (x *InvitePhoneNumberResponse) ProtoReflect() protoreflect.Message
func (*InvitePhoneNumberResponse) Reset ¶
func (x *InvitePhoneNumberResponse) Reset()
func (*InvitePhoneNumberResponse) String ¶
func (x *InvitePhoneNumberResponse) String() string
func (*InvitePhoneNumberResponse) Validate ¶
func (m *InvitePhoneNumberResponse) Validate() error
Validate checks the field values on InvitePhoneNumberResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type InvitePhoneNumberResponseValidationError ¶
type InvitePhoneNumberResponseValidationError struct {
// contains filtered or unexported fields
}
InvitePhoneNumberResponseValidationError is the validation error returned by InvitePhoneNumberResponse.Validate if the designated constraints aren't met.
func (InvitePhoneNumberResponseValidationError) Cause ¶
func (e InvitePhoneNumberResponseValidationError) Cause() error
Cause function returns cause value.
func (InvitePhoneNumberResponseValidationError) Error ¶
func (e InvitePhoneNumberResponseValidationError) Error() string
Error satisfies the builtin error interface
func (InvitePhoneNumberResponseValidationError) ErrorName ¶
func (e InvitePhoneNumberResponseValidationError) ErrorName() string
ErrorName returns error name.
func (InvitePhoneNumberResponseValidationError) Field ¶
func (e InvitePhoneNumberResponseValidationError) Field() string
Field function returns field value.
func (InvitePhoneNumberResponseValidationError) Key ¶
func (e InvitePhoneNumberResponseValidationError) Key() bool
Key function returns key value.
func (InvitePhoneNumberResponseValidationError) Reason ¶
func (e InvitePhoneNumberResponseValidationError) Reason() string
Reason function returns reason value.
type InvitePhoneNumberResponse_Result ¶
type InvitePhoneNumberResponse_Result int32
const ( InvitePhoneNumberResponse_OK InvitePhoneNumberResponse_Result = 0 // The source exceeded their invite count and is restricted from issuing // further invites. InvitePhoneNumberResponse_INVITE_COUNT_EXCEEDED InvitePhoneNumberResponse_Result = 1 // The receiver phone number has already been invited. Regardless of who // invited it, the source's invite count is not decremented when this is // returned. InvitePhoneNumberResponse_ALREADY_INVITED InvitePhoneNumberResponse_Result = 2 // The source user has not been invited. InvitePhoneNumberResponse_USER_NOT_INVITED InvitePhoneNumberResponse_Result = 3 // The receiver phone number failed validation. InvitePhoneNumberResponse_INVALID_RECEIVER_PHONE_NUMBER InvitePhoneNumberResponse_Result = 4 // The invite code doesn't exist. InvitePhoneNumberResponse_INVITE_CODE_NOT_FOUND InvitePhoneNumberResponse_Result = 5 // The invite code has been revoked. InvitePhoneNumberResponse_INVITE_CODE_REVOKED InvitePhoneNumberResponse_Result = 6 // The invite code has expired. InvitePhoneNumberResponse_INVITE_CODE_EXPIRED InvitePhoneNumberResponse_Result = 7 )
func (InvitePhoneNumberResponse_Result) Descriptor ¶
func (InvitePhoneNumberResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (InvitePhoneNumberResponse_Result) Enum ¶
func (x InvitePhoneNumberResponse_Result) Enum() *InvitePhoneNumberResponse_Result
func (InvitePhoneNumberResponse_Result) EnumDescriptor
deprecated
func (InvitePhoneNumberResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use InvitePhoneNumberResponse_Result.Descriptor instead.
func (InvitePhoneNumberResponse_Result) Number ¶
func (x InvitePhoneNumberResponse_Result) Number() protoreflect.EnumNumber
func (InvitePhoneNumberResponse_Result) String ¶
func (x InvitePhoneNumberResponse_Result) String() string
func (InvitePhoneNumberResponse_Result) Type ¶
func (InvitePhoneNumberResponse_Result) Type() protoreflect.EnumType
type InviteServer ¶
type InviteServer interface { // GetInviteCount gets the number of invites that a user can send out. GetInviteCount(context.Context, *GetInviteCountRequest) (*GetInviteCountResponse, error) // InvitePhoneNumber invites someone to join via their phone number. A phone number // can only be invited once by a unique user or invite code. This is to avoid having // a phone number consuming more than one invite count globally. InvitePhoneNumber(context.Context, *InvitePhoneNumberRequest) (*InvitePhoneNumberResponse, error) // GetInvitationStatus gets a phone number's invitation status. GetInvitationStatus(context.Context, *GetInvitationStatusRequest) (*GetInvitationStatusResponse, error) // contains filtered or unexported methods }
InviteServer is the server API for Invite service. All implementations must embed UnimplementedInviteServer for forward compatibility
type PageToken ¶
type PageToken struct { Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*PageToken) Descriptor
deprecated
func (*PageToken) ProtoMessage ¶
func (*PageToken) ProtoMessage()
func (*PageToken) ProtoReflect ¶
func (x *PageToken) ProtoReflect() protoreflect.Message
type PageTokenValidationError ¶
type PageTokenValidationError struct {
// contains filtered or unexported fields
}
PageTokenValidationError is the validation error returned by PageToken.Validate if the designated constraints aren't met.
func (PageTokenValidationError) Cause ¶
func (e PageTokenValidationError) Cause() error
Cause function returns cause value.
func (PageTokenValidationError) Error ¶
func (e PageTokenValidationError) Error() string
Error satisfies the builtin error interface
func (PageTokenValidationError) ErrorName ¶
func (e PageTokenValidationError) ErrorName() string
ErrorName returns error name.
func (PageTokenValidationError) Field ¶
func (e PageTokenValidationError) Field() string
Field function returns field value.
func (PageTokenValidationError) Key ¶
func (e PageTokenValidationError) Key() bool
Key function returns key value.
func (PageTokenValidationError) Reason ¶
func (e PageTokenValidationError) Reason() string
Reason function returns reason value.
type UnimplementedInviteServer ¶
type UnimplementedInviteServer struct { }
UnimplementedInviteServer must be embedded to have forward compatible implementations.
func (UnimplementedInviteServer) GetInvitationStatus ¶
func (UnimplementedInviteServer) GetInvitationStatus(context.Context, *GetInvitationStatusRequest) (*GetInvitationStatusResponse, error)
func (UnimplementedInviteServer) GetInviteCount ¶
func (UnimplementedInviteServer) GetInviteCount(context.Context, *GetInviteCountRequest) (*GetInviteCountResponse, error)
func (UnimplementedInviteServer) InvitePhoneNumber ¶
func (UnimplementedInviteServer) InvitePhoneNumber(context.Context, *InvitePhoneNumberRequest) (*InvitePhoneNumberResponse, error)
type UnsafeInviteServer ¶
type UnsafeInviteServer interface {
// contains filtered or unexported methods
}
UnsafeInviteServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InviteServer will result in compilation errors.