Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer)
- type AccountClient
- type AccountServer
- type GetUnauthenticatedUserFlagsRequest
- func (*GetUnauthenticatedUserFlagsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUnauthenticatedUserFlagsRequest) GetCountryCode() *v1.CountryCode
- func (x *GetUnauthenticatedUserFlagsRequest) GetPlatform() v1.Platform
- func (*GetUnauthenticatedUserFlagsRequest) ProtoMessage()
- func (x *GetUnauthenticatedUserFlagsRequest) ProtoReflect() protoreflect.Message
- func (x *GetUnauthenticatedUserFlagsRequest) Reset()
- func (x *GetUnauthenticatedUserFlagsRequest) String() string
- func (m *GetUnauthenticatedUserFlagsRequest) Validate() error
- func (m *GetUnauthenticatedUserFlagsRequest) ValidateAll() error
- type GetUnauthenticatedUserFlagsRequestMultiError
- type GetUnauthenticatedUserFlagsRequestValidationError
- func (e GetUnauthenticatedUserFlagsRequestValidationError) Cause() error
- func (e GetUnauthenticatedUserFlagsRequestValidationError) Error() string
- func (e GetUnauthenticatedUserFlagsRequestValidationError) ErrorName() string
- func (e GetUnauthenticatedUserFlagsRequestValidationError) Field() string
- func (e GetUnauthenticatedUserFlagsRequestValidationError) Key() bool
- func (e GetUnauthenticatedUserFlagsRequestValidationError) Reason() string
- type GetUnauthenticatedUserFlagsResponse
- func (*GetUnauthenticatedUserFlagsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUnauthenticatedUserFlagsResponse) GetResult() GetUnauthenticatedUserFlagsResponse_Result
- func (x *GetUnauthenticatedUserFlagsResponse) GetUserFlags() *UserFlags
- func (*GetUnauthenticatedUserFlagsResponse) ProtoMessage()
- func (x *GetUnauthenticatedUserFlagsResponse) ProtoReflect() protoreflect.Message
- func (x *GetUnauthenticatedUserFlagsResponse) Reset()
- func (x *GetUnauthenticatedUserFlagsResponse) String() string
- func (m *GetUnauthenticatedUserFlagsResponse) Validate() error
- func (m *GetUnauthenticatedUserFlagsResponse) ValidateAll() error
- type GetUnauthenticatedUserFlagsResponseMultiError
- type GetUnauthenticatedUserFlagsResponseValidationError
- func (e GetUnauthenticatedUserFlagsResponseValidationError) Cause() error
- func (e GetUnauthenticatedUserFlagsResponseValidationError) Error() string
- func (e GetUnauthenticatedUserFlagsResponseValidationError) ErrorName() string
- func (e GetUnauthenticatedUserFlagsResponseValidationError) Field() string
- func (e GetUnauthenticatedUserFlagsResponseValidationError) Key() bool
- func (e GetUnauthenticatedUserFlagsResponseValidationError) Reason() string
- type GetUnauthenticatedUserFlagsResponse_Result
- func (GetUnauthenticatedUserFlagsResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x GetUnauthenticatedUserFlagsResponse_Result) Enum() *GetUnauthenticatedUserFlagsResponse_Result
- func (GetUnauthenticatedUserFlagsResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetUnauthenticatedUserFlagsResponse_Result) Number() protoreflect.EnumNumber
- func (x GetUnauthenticatedUserFlagsResponse_Result) String() string
- func (GetUnauthenticatedUserFlagsResponse_Result) Type() protoreflect.EnumType
- type GetUserFlagsRequest
- func (*GetUserFlagsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserFlagsRequest) GetAuth() *v1.Auth
- func (x *GetUserFlagsRequest) GetCountryCode() *v1.CountryCode
- func (x *GetUserFlagsRequest) GetPlatform() v1.Platform
- func (x *GetUserFlagsRequest) GetUserId() *v1.UserId
- func (*GetUserFlagsRequest) ProtoMessage()
- func (x *GetUserFlagsRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserFlagsRequest) Reset()
- func (x *GetUserFlagsRequest) String() string
- func (m *GetUserFlagsRequest) Validate() error
- func (m *GetUserFlagsRequest) ValidateAll() error
- type GetUserFlagsRequestMultiError
- type GetUserFlagsRequestValidationError
- func (e GetUserFlagsRequestValidationError) Cause() error
- func (e GetUserFlagsRequestValidationError) Error() string
- func (e GetUserFlagsRequestValidationError) ErrorName() string
- func (e GetUserFlagsRequestValidationError) Field() string
- func (e GetUserFlagsRequestValidationError) Key() bool
- func (e GetUserFlagsRequestValidationError) Reason() string
- type GetUserFlagsResponse
- func (*GetUserFlagsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserFlagsResponse) GetResult() GetUserFlagsResponse_Result
- func (x *GetUserFlagsResponse) GetUserFlags() *UserFlags
- func (*GetUserFlagsResponse) ProtoMessage()
- func (x *GetUserFlagsResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserFlagsResponse) Reset()
- func (x *GetUserFlagsResponse) String() string
- func (m *GetUserFlagsResponse) Validate() error
- func (m *GetUserFlagsResponse) ValidateAll() error
- type GetUserFlagsResponseMultiError
- type GetUserFlagsResponseValidationError
- func (e GetUserFlagsResponseValidationError) Cause() error
- func (e GetUserFlagsResponseValidationError) Error() string
- func (e GetUserFlagsResponseValidationError) ErrorName() string
- func (e GetUserFlagsResponseValidationError) Field() string
- func (e GetUserFlagsResponseValidationError) Key() bool
- func (e GetUserFlagsResponseValidationError) Reason() string
- type GetUserFlagsResponse_Result
- func (GetUserFlagsResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x GetUserFlagsResponse_Result) Enum() *GetUserFlagsResponse_Result
- func (GetUserFlagsResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetUserFlagsResponse_Result) Number() protoreflect.EnumNumber
- func (x GetUserFlagsResponse_Result) String() string
- func (GetUserFlagsResponse_Result) Type() protoreflect.EnumType
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetAuth() *v1.Auth
- func (x *LoginRequest) GetTimestamp() *timestamppb.Timestamp
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- func (m *LoginRequest) Validate() error
- func (m *LoginRequest) ValidateAll() error
- type LoginRequestMultiError
- type LoginRequestValidationError
- func (e LoginRequestValidationError) Cause() error
- func (e LoginRequestValidationError) Error() string
- func (e LoginRequestValidationError) ErrorName() string
- func (e LoginRequestValidationError) Field() string
- func (e LoginRequestValidationError) Key() bool
- func (e LoginRequestValidationError) Reason() string
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetResult() LoginResponse_Result
- func (x *LoginResponse) GetUserId() *v1.UserId
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- func (m *LoginResponse) Validate() error
- func (m *LoginResponse) ValidateAll() error
- type LoginResponseMultiError
- type LoginResponseValidationError
- func (e LoginResponseValidationError) Cause() error
- func (e LoginResponseValidationError) Error() string
- func (e LoginResponseValidationError) ErrorName() string
- func (e LoginResponseValidationError) Field() string
- func (e LoginResponseValidationError) Key() bool
- func (e LoginResponseValidationError) Reason() string
- type LoginResponse_Result
- func (LoginResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x LoginResponse_Result) Enum() *LoginResponse_Result
- func (LoginResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x LoginResponse_Result) Number() protoreflect.EnumNumber
- func (x LoginResponse_Result) String() string
- func (LoginResponse_Result) Type() protoreflect.EnumType
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetPublicKey() *v1.PublicKey
- func (x *RegisterRequest) GetSignature() *v1.Signature
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- func (m *RegisterRequest) Validate() error
- func (m *RegisterRequest) ValidateAll() error
- type RegisterRequestMultiError
- type RegisterRequestValidationError
- func (e RegisterRequestValidationError) Cause() error
- func (e RegisterRequestValidationError) Error() string
- func (e RegisterRequestValidationError) ErrorName() string
- func (e RegisterRequestValidationError) Field() string
- func (e RegisterRequestValidationError) Key() bool
- func (e RegisterRequestValidationError) Reason() string
- type RegisterResponse
- func (*RegisterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterResponse) GetResult() RegisterResponse_Result
- func (x *RegisterResponse) GetUserId() *v1.UserId
- func (*RegisterResponse) ProtoMessage()
- func (x *RegisterResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterResponse) Reset()
- func (x *RegisterResponse) String() string
- func (m *RegisterResponse) Validate() error
- func (m *RegisterResponse) ValidateAll() error
- type RegisterResponseMultiError
- type RegisterResponseValidationError
- func (e RegisterResponseValidationError) Cause() error
- func (e RegisterResponseValidationError) Error() string
- func (e RegisterResponseValidationError) ErrorName() string
- func (e RegisterResponseValidationError) Field() string
- func (e RegisterResponseValidationError) Key() bool
- func (e RegisterResponseValidationError) Reason() string
- type RegisterResponse_Result
- func (RegisterResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x RegisterResponse_Result) Enum() *RegisterResponse_Result
- func (RegisterResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x RegisterResponse_Result) Number() protoreflect.EnumNumber
- func (x RegisterResponse_Result) String() string
- func (RegisterResponse_Result) Type() protoreflect.EnumType
- type UnimplementedAccountServer
- func (UnimplementedAccountServer) GetUnauthenticatedUserFlags(context.Context, *GetUnauthenticatedUserFlagsRequest) (*GetUnauthenticatedUserFlagsResponse, error)
- func (UnimplementedAccountServer) GetUserFlags(context.Context, *GetUserFlagsRequest) (*GetUserFlagsResponse, error)
- func (UnimplementedAccountServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- func (UnimplementedAccountServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
- type UnsafeAccountServer
- type UserFlags
- func (*UserFlags) Descriptor() ([]byte, []int)deprecated
- func (x *UserFlags) GetIsRegisteredAccount() bool
- func (x *UserFlags) GetIsStaff() bool
- func (x *UserFlags) GetMinBuildNumber() uint32
- func (x *UserFlags) GetPreferredOnRampProvider() UserFlags_OnRampProvider
- func (x *UserFlags) GetRequiresIapForRegistration() bool
- func (x *UserFlags) GetSupportedOnRampProviders() []UserFlags_OnRampProvider
- func (*UserFlags) ProtoMessage()
- func (x *UserFlags) ProtoReflect() protoreflect.Message
- func (x *UserFlags) Reset()
- func (x *UserFlags) String() string
- func (m *UserFlags) Validate() error
- func (m *UserFlags) ValidateAll() error
- type UserFlagsMultiError
- type UserFlagsValidationError
- type UserFlags_OnRampProvider
- func (UserFlags_OnRampProvider) Descriptor() protoreflect.EnumDescriptor
- func (x UserFlags_OnRampProvider) Enum() *UserFlags_OnRampProvider
- func (UserFlags_OnRampProvider) EnumDescriptor() ([]byte, []int)deprecated
- func (x UserFlags_OnRampProvider) Number() protoreflect.EnumNumber
- func (x UserFlags_OnRampProvider) String() string
- func (UserFlags_OnRampProvider) Type() protoreflect.EnumType
Constants ¶
const ( Account_Register_FullMethodName = "/flipcash.account.v1.Account/Register" Account_Login_FullMethodName = "/flipcash.account.v1.Account/Login" Account_GetUserFlags_FullMethodName = "/flipcash.account.v1.Account/GetUserFlags" Account_GetUnauthenticatedUserFlags_FullMethodName = "/flipcash.account.v1.Account/GetUnauthenticatedUserFlags" )
Variables ¶
var ( RegisterResponse_Result_name = map[int32]string{ 0: "OK", 1: "INVALID_SIGNATURE", 2: "DENIED", } RegisterResponse_Result_value = map[string]int32{ "OK": 0, "INVALID_SIGNATURE": 1, "DENIED": 2, } )
Enum value maps for RegisterResponse_Result.
var ( LoginResponse_Result_name = map[int32]string{ 0: "OK", 1: "INVALID_TIMESTAMP", 2: "DENIED", } LoginResponse_Result_value = map[string]int32{ "OK": 0, "INVALID_TIMESTAMP": 1, "DENIED": 2, } )
Enum value maps for LoginResponse_Result.
var ( GetUserFlagsResponse_Result_name = map[int32]string{ 0: "OK", 1: "DENIED", } GetUserFlagsResponse_Result_value = map[string]int32{ "OK": 0, "DENIED": 1, } )
Enum value maps for GetUserFlagsResponse_Result.
var ( GetUnauthenticatedUserFlagsResponse_Result_name = map[int32]string{ 0: "OK", } GetUnauthenticatedUserFlagsResponse_Result_value = map[string]int32{ "OK": 0, } )
Enum value maps for GetUnauthenticatedUserFlagsResponse_Result.
var ( UserFlags_OnRampProvider_name = map[int32]string{ 0: "UNKNOWN", 1: "COINBASE_VIRTUAL", 2: "COINBASE_PHYSICAL_DEBIT", 3: "COINBASE_PHYSICAL_CREDIT", 4: "MANUAL_DEPOSIT", 5: "PHANTOM", 6: "SOLFLARE", 7: "BACKPACK", 8: "BASE", } UserFlags_OnRampProvider_value = map[string]int32{ "UNKNOWN": 0, "COINBASE_VIRTUAL": 1, "COINBASE_PHYSICAL_DEBIT": 2, "COINBASE_PHYSICAL_CREDIT": 3, "MANUAL_DEPOSIT": 4, "PHANTOM": 5, "SOLFLARE": 6, "BACKPACK": 7, "BASE": 8, } )
Enum value maps for UserFlags_OnRampProvider.
var Account_ServiceDesc = grpc.ServiceDesc{ ServiceName: "flipcash.account.v1.Account", HandlerType: (*AccountServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _Account_Register_Handler, }, { MethodName: "Login", Handler: _Account_Login_Handler, }, { MethodName: "GetUserFlags", Handler: _Account_GetUserFlags_Handler, }, { MethodName: "GetUnauthenticatedUserFlags", Handler: _Account_GetUnauthenticatedUserFlags_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "account/v1/flipcash_account_service.proto", }
Account_ServiceDesc is the grpc.ServiceDesc for Account service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_account_v1_flipcash_account_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAccountServer ¶
func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer)
Types ¶
type AccountClient ¶
type AccountClient interface {
// Register registers a new user, bound to the provided PublicKey.
// If the PublicKey is already in use, the previous user account is returned.
Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
// Login retrieves the UserId (and in the future, potentially other information)
// required for 'recovering' an account.
Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
// GetUserFlags gets user-specific flags.
GetUserFlags(ctx context.Context, in *GetUserFlagsRequest, opts ...grpc.CallOption) (*GetUserFlagsResponse, error)
// GetUserFlags gets user flags for unauthenticated users
GetUnauthenticatedUserFlags(ctx context.Context, in *GetUnauthenticatedUserFlagsRequest, opts ...grpc.CallOption) (*GetUnauthenticatedUserFlagsResponse, error)
}
AccountClient is the client API for Account 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 NewAccountClient ¶
func NewAccountClient(cc grpc.ClientConnInterface) AccountClient
type AccountServer ¶
type AccountServer interface {
// Register registers a new user, bound to the provided PublicKey.
// If the PublicKey is already in use, the previous user account is returned.
Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
// Login retrieves the UserId (and in the future, potentially other information)
// required for 'recovering' an account.
Login(context.Context, *LoginRequest) (*LoginResponse, error)
// GetUserFlags gets user-specific flags.
GetUserFlags(context.Context, *GetUserFlagsRequest) (*GetUserFlagsResponse, error)
// GetUserFlags gets user flags for unauthenticated users
GetUnauthenticatedUserFlags(context.Context, *GetUnauthenticatedUserFlagsRequest) (*GetUnauthenticatedUserFlagsResponse, error)
// contains filtered or unexported methods
}
AccountServer is the server API for Account service. All implementations must embed UnimplementedAccountServer for forward compatibility.
type GetUnauthenticatedUserFlagsRequest ¶ added in v1.9.15
type GetUnauthenticatedUserFlagsRequest struct {
Platform v1.Platform `protobuf:"varint,1,opt,name=platform,proto3,enum=flipcash.common.v1.Platform" json:"platform,omitempty"`
CountryCode *v1.CountryCode `protobuf:"bytes,2,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
// contains filtered or unexported fields
}
func (*GetUnauthenticatedUserFlagsRequest) Descriptor
deprecated
added in
v1.9.15
func (*GetUnauthenticatedUserFlagsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUnauthenticatedUserFlagsRequest.ProtoReflect.Descriptor instead.
func (*GetUnauthenticatedUserFlagsRequest) GetCountryCode ¶ added in v1.9.15
func (x *GetUnauthenticatedUserFlagsRequest) GetCountryCode() *v1.CountryCode
func (*GetUnauthenticatedUserFlagsRequest) GetPlatform ¶ added in v1.9.15
func (x *GetUnauthenticatedUserFlagsRequest) GetPlatform() v1.Platform
func (*GetUnauthenticatedUserFlagsRequest) ProtoMessage ¶ added in v1.9.15
func (*GetUnauthenticatedUserFlagsRequest) ProtoMessage()
func (*GetUnauthenticatedUserFlagsRequest) ProtoReflect ¶ added in v1.9.15
func (x *GetUnauthenticatedUserFlagsRequest) ProtoReflect() protoreflect.Message
func (*GetUnauthenticatedUserFlagsRequest) Reset ¶ added in v1.9.15
func (x *GetUnauthenticatedUserFlagsRequest) Reset()
func (*GetUnauthenticatedUserFlagsRequest) String ¶ added in v1.9.15
func (x *GetUnauthenticatedUserFlagsRequest) String() string
func (*GetUnauthenticatedUserFlagsRequest) Validate ¶ added in v1.9.15
func (m *GetUnauthenticatedUserFlagsRequest) Validate() error
Validate checks the field values on GetUnauthenticatedUserFlagsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetUnauthenticatedUserFlagsRequest) ValidateAll ¶ added in v1.9.15
func (m *GetUnauthenticatedUserFlagsRequest) ValidateAll() error
ValidateAll checks the field values on GetUnauthenticatedUserFlagsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUnauthenticatedUserFlagsRequestMultiError, or nil if none found.
type GetUnauthenticatedUserFlagsRequestMultiError ¶ added in v1.9.15
type GetUnauthenticatedUserFlagsRequestMultiError []error
GetUnauthenticatedUserFlagsRequestMultiError is an error wrapping multiple validation errors returned by GetUnauthenticatedUserFlagsRequest.ValidateAll() if the designated constraints aren't met.
func (GetUnauthenticatedUserFlagsRequestMultiError) AllErrors ¶ added in v1.9.15
func (m GetUnauthenticatedUserFlagsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUnauthenticatedUserFlagsRequestMultiError) Error ¶ added in v1.9.15
func (m GetUnauthenticatedUserFlagsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUnauthenticatedUserFlagsRequestValidationError ¶ added in v1.9.15
type GetUnauthenticatedUserFlagsRequestValidationError struct {
// contains filtered or unexported fields
}
GetUnauthenticatedUserFlagsRequestValidationError is the validation error returned by GetUnauthenticatedUserFlagsRequest.Validate if the designated constraints aren't met.
func (GetUnauthenticatedUserFlagsRequestValidationError) Cause ¶ added in v1.9.15
func (e GetUnauthenticatedUserFlagsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetUnauthenticatedUserFlagsRequestValidationError) Error ¶ added in v1.9.15
func (e GetUnauthenticatedUserFlagsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetUnauthenticatedUserFlagsRequestValidationError) ErrorName ¶ added in v1.9.15
func (e GetUnauthenticatedUserFlagsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetUnauthenticatedUserFlagsRequestValidationError) Field ¶ added in v1.9.15
func (e GetUnauthenticatedUserFlagsRequestValidationError) Field() string
Field function returns field value.
func (GetUnauthenticatedUserFlagsRequestValidationError) Key ¶ added in v1.9.15
func (e GetUnauthenticatedUserFlagsRequestValidationError) Key() bool
Key function returns key value.
func (GetUnauthenticatedUserFlagsRequestValidationError) Reason ¶ added in v1.9.15
func (e GetUnauthenticatedUserFlagsRequestValidationError) Reason() string
Reason function returns reason value.
type GetUnauthenticatedUserFlagsResponse ¶ added in v1.9.15
type GetUnauthenticatedUserFlagsResponse struct {
Result GetUnauthenticatedUserFlagsResponse_Result `` /* 134-byte string literal not displayed */
UserFlags *UserFlags `protobuf:"bytes,2,opt,name=user_flags,json=userFlags,proto3" json:"user_flags,omitempty"`
// contains filtered or unexported fields
}
func (*GetUnauthenticatedUserFlagsResponse) Descriptor
deprecated
added in
v1.9.15
func (*GetUnauthenticatedUserFlagsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUnauthenticatedUserFlagsResponse.ProtoReflect.Descriptor instead.
func (*GetUnauthenticatedUserFlagsResponse) GetResult ¶ added in v1.9.15
func (x *GetUnauthenticatedUserFlagsResponse) GetResult() GetUnauthenticatedUserFlagsResponse_Result
func (*GetUnauthenticatedUserFlagsResponse) GetUserFlags ¶ added in v1.9.15
func (x *GetUnauthenticatedUserFlagsResponse) GetUserFlags() *UserFlags
func (*GetUnauthenticatedUserFlagsResponse) ProtoMessage ¶ added in v1.9.15
func (*GetUnauthenticatedUserFlagsResponse) ProtoMessage()
func (*GetUnauthenticatedUserFlagsResponse) ProtoReflect ¶ added in v1.9.15
func (x *GetUnauthenticatedUserFlagsResponse) ProtoReflect() protoreflect.Message
func (*GetUnauthenticatedUserFlagsResponse) Reset ¶ added in v1.9.15
func (x *GetUnauthenticatedUserFlagsResponse) Reset()
func (*GetUnauthenticatedUserFlagsResponse) String ¶ added in v1.9.15
func (x *GetUnauthenticatedUserFlagsResponse) String() string
func (*GetUnauthenticatedUserFlagsResponse) Validate ¶ added in v1.9.15
func (m *GetUnauthenticatedUserFlagsResponse) Validate() error
Validate checks the field values on GetUnauthenticatedUserFlagsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetUnauthenticatedUserFlagsResponse) ValidateAll ¶ added in v1.9.15
func (m *GetUnauthenticatedUserFlagsResponse) ValidateAll() error
ValidateAll checks the field values on GetUnauthenticatedUserFlagsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUnauthenticatedUserFlagsResponseMultiError, or nil if none found.
type GetUnauthenticatedUserFlagsResponseMultiError ¶ added in v1.9.15
type GetUnauthenticatedUserFlagsResponseMultiError []error
GetUnauthenticatedUserFlagsResponseMultiError is an error wrapping multiple validation errors returned by GetUnauthenticatedUserFlagsResponse.ValidateAll() if the designated constraints aren't met.
func (GetUnauthenticatedUserFlagsResponseMultiError) AllErrors ¶ added in v1.9.15
func (m GetUnauthenticatedUserFlagsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUnauthenticatedUserFlagsResponseMultiError) Error ¶ added in v1.9.15
func (m GetUnauthenticatedUserFlagsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUnauthenticatedUserFlagsResponseValidationError ¶ added in v1.9.15
type GetUnauthenticatedUserFlagsResponseValidationError struct {
// contains filtered or unexported fields
}
GetUnauthenticatedUserFlagsResponseValidationError is the validation error returned by GetUnauthenticatedUserFlagsResponse.Validate if the designated constraints aren't met.
func (GetUnauthenticatedUserFlagsResponseValidationError) Cause ¶ added in v1.9.15
func (e GetUnauthenticatedUserFlagsResponseValidationError) Cause() error
Cause function returns cause value.
func (GetUnauthenticatedUserFlagsResponseValidationError) Error ¶ added in v1.9.15
func (e GetUnauthenticatedUserFlagsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetUnauthenticatedUserFlagsResponseValidationError) ErrorName ¶ added in v1.9.15
func (e GetUnauthenticatedUserFlagsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetUnauthenticatedUserFlagsResponseValidationError) Field ¶ added in v1.9.15
func (e GetUnauthenticatedUserFlagsResponseValidationError) Field() string
Field function returns field value.
func (GetUnauthenticatedUserFlagsResponseValidationError) Key ¶ added in v1.9.15
func (e GetUnauthenticatedUserFlagsResponseValidationError) Key() bool
Key function returns key value.
func (GetUnauthenticatedUserFlagsResponseValidationError) Reason ¶ added in v1.9.15
func (e GetUnauthenticatedUserFlagsResponseValidationError) Reason() string
Reason function returns reason value.
type GetUnauthenticatedUserFlagsResponse_Result ¶ added in v1.9.15
type GetUnauthenticatedUserFlagsResponse_Result int32
const (
GetUnauthenticatedUserFlagsResponse_OK GetUnauthenticatedUserFlagsResponse_Result = 0
)
func (GetUnauthenticatedUserFlagsResponse_Result) Descriptor ¶ added in v1.9.15
func (GetUnauthenticatedUserFlagsResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (GetUnauthenticatedUserFlagsResponse_Result) EnumDescriptor
deprecated
added in
v1.9.15
func (GetUnauthenticatedUserFlagsResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetUnauthenticatedUserFlagsResponse_Result.Descriptor instead.
func (GetUnauthenticatedUserFlagsResponse_Result) Number ¶ added in v1.9.15
func (x GetUnauthenticatedUserFlagsResponse_Result) Number() protoreflect.EnumNumber
func (GetUnauthenticatedUserFlagsResponse_Result) String ¶ added in v1.9.15
func (x GetUnauthenticatedUserFlagsResponse_Result) String() string
func (GetUnauthenticatedUserFlagsResponse_Result) Type ¶ added in v1.9.15
func (GetUnauthenticatedUserFlagsResponse_Result) Type() protoreflect.EnumType
type GetUserFlagsRequest ¶
type GetUserFlagsRequest struct {
UserId *v1.UserId `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Auth *v1.Auth `protobuf:"bytes,2,opt,name=auth,proto3" json:"auth,omitempty"`
Platform v1.Platform `protobuf:"varint,3,opt,name=platform,proto3,enum=flipcash.common.v1.Platform" json:"platform,omitempty"`
CountryCode *v1.CountryCode `protobuf:"bytes,4,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
// contains filtered or unexported fields
}
func (*GetUserFlagsRequest) Descriptor
deprecated
func (*GetUserFlagsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserFlagsRequest.ProtoReflect.Descriptor instead.
func (*GetUserFlagsRequest) GetAuth ¶
func (x *GetUserFlagsRequest) GetAuth() *v1.Auth
func (*GetUserFlagsRequest) GetCountryCode ¶ added in v1.9.3
func (x *GetUserFlagsRequest) GetCountryCode() *v1.CountryCode
func (*GetUserFlagsRequest) GetPlatform ¶ added in v1.9.3
func (x *GetUserFlagsRequest) GetPlatform() v1.Platform
func (*GetUserFlagsRequest) GetUserId ¶
func (x *GetUserFlagsRequest) GetUserId() *v1.UserId
func (*GetUserFlagsRequest) ProtoMessage ¶
func (*GetUserFlagsRequest) ProtoMessage()
func (*GetUserFlagsRequest) ProtoReflect ¶
func (x *GetUserFlagsRequest) ProtoReflect() protoreflect.Message
func (*GetUserFlagsRequest) Reset ¶
func (x *GetUserFlagsRequest) Reset()
func (*GetUserFlagsRequest) String ¶
func (x *GetUserFlagsRequest) String() string
func (*GetUserFlagsRequest) Validate ¶
func (m *GetUserFlagsRequest) Validate() error
Validate checks the field values on GetUserFlagsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetUserFlagsRequest) ValidateAll ¶
func (m *GetUserFlagsRequest) ValidateAll() error
ValidateAll checks the field values on GetUserFlagsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserFlagsRequestMultiError, or nil if none found.
type GetUserFlagsRequestMultiError ¶
type GetUserFlagsRequestMultiError []error
GetUserFlagsRequestMultiError is an error wrapping multiple validation errors returned by GetUserFlagsRequest.ValidateAll() if the designated constraints aren't met.
func (GetUserFlagsRequestMultiError) AllErrors ¶
func (m GetUserFlagsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserFlagsRequestMultiError) Error ¶
func (m GetUserFlagsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserFlagsRequestValidationError ¶
type GetUserFlagsRequestValidationError struct {
// contains filtered or unexported fields
}
GetUserFlagsRequestValidationError is the validation error returned by GetUserFlagsRequest.Validate if the designated constraints aren't met.
func (GetUserFlagsRequestValidationError) Cause ¶
func (e GetUserFlagsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetUserFlagsRequestValidationError) Error ¶
func (e GetUserFlagsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserFlagsRequestValidationError) ErrorName ¶
func (e GetUserFlagsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserFlagsRequestValidationError) Field ¶
func (e GetUserFlagsRequestValidationError) Field() string
Field function returns field value.
func (GetUserFlagsRequestValidationError) Key ¶
func (e GetUserFlagsRequestValidationError) Key() bool
Key function returns key value.
func (GetUserFlagsRequestValidationError) Reason ¶
func (e GetUserFlagsRequestValidationError) Reason() string
Reason function returns reason value.
type GetUserFlagsResponse ¶
type GetUserFlagsResponse struct {
Result GetUserFlagsResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=flipcash.account.v1.GetUserFlagsResponse_Result" json:"result,omitempty"`
UserFlags *UserFlags `protobuf:"bytes,2,opt,name=user_flags,json=userFlags,proto3" json:"user_flags,omitempty"`
// contains filtered or unexported fields
}
func (*GetUserFlagsResponse) Descriptor
deprecated
func (*GetUserFlagsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserFlagsResponse.ProtoReflect.Descriptor instead.
func (*GetUserFlagsResponse) GetResult ¶
func (x *GetUserFlagsResponse) GetResult() GetUserFlagsResponse_Result
func (*GetUserFlagsResponse) GetUserFlags ¶
func (x *GetUserFlagsResponse) GetUserFlags() *UserFlags
func (*GetUserFlagsResponse) ProtoMessage ¶
func (*GetUserFlagsResponse) ProtoMessage()
func (*GetUserFlagsResponse) ProtoReflect ¶
func (x *GetUserFlagsResponse) ProtoReflect() protoreflect.Message
func (*GetUserFlagsResponse) Reset ¶
func (x *GetUserFlagsResponse) Reset()
func (*GetUserFlagsResponse) String ¶
func (x *GetUserFlagsResponse) String() string
func (*GetUserFlagsResponse) Validate ¶
func (m *GetUserFlagsResponse) Validate() error
Validate checks the field values on GetUserFlagsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetUserFlagsResponse) ValidateAll ¶
func (m *GetUserFlagsResponse) ValidateAll() error
ValidateAll checks the field values on GetUserFlagsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserFlagsResponseMultiError, or nil if none found.
type GetUserFlagsResponseMultiError ¶
type GetUserFlagsResponseMultiError []error
GetUserFlagsResponseMultiError is an error wrapping multiple validation errors returned by GetUserFlagsResponse.ValidateAll() if the designated constraints aren't met.
func (GetUserFlagsResponseMultiError) AllErrors ¶
func (m GetUserFlagsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserFlagsResponseMultiError) Error ¶
func (m GetUserFlagsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserFlagsResponseValidationError ¶
type GetUserFlagsResponseValidationError struct {
// contains filtered or unexported fields
}
GetUserFlagsResponseValidationError is the validation error returned by GetUserFlagsResponse.Validate if the designated constraints aren't met.
func (GetUserFlagsResponseValidationError) Cause ¶
func (e GetUserFlagsResponseValidationError) Cause() error
Cause function returns cause value.
func (GetUserFlagsResponseValidationError) Error ¶
func (e GetUserFlagsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserFlagsResponseValidationError) ErrorName ¶
func (e GetUserFlagsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserFlagsResponseValidationError) Field ¶
func (e GetUserFlagsResponseValidationError) Field() string
Field function returns field value.
func (GetUserFlagsResponseValidationError) Key ¶
func (e GetUserFlagsResponseValidationError) Key() bool
Key function returns key value.
func (GetUserFlagsResponseValidationError) Reason ¶
func (e GetUserFlagsResponseValidationError) Reason() string
Reason function returns reason value.
type GetUserFlagsResponse_Result ¶
type GetUserFlagsResponse_Result int32
const ( GetUserFlagsResponse_OK GetUserFlagsResponse_Result = 0 GetUserFlagsResponse_DENIED GetUserFlagsResponse_Result = 1 )
func (GetUserFlagsResponse_Result) Descriptor ¶
func (GetUserFlagsResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (GetUserFlagsResponse_Result) Enum ¶
func (x GetUserFlagsResponse_Result) Enum() *GetUserFlagsResponse_Result
func (GetUserFlagsResponse_Result) EnumDescriptor
deprecated
func (GetUserFlagsResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetUserFlagsResponse_Result.Descriptor instead.
func (GetUserFlagsResponse_Result) Number ¶
func (x GetUserFlagsResponse_Result) Number() protoreflect.EnumNumber
func (GetUserFlagsResponse_Result) String ¶
func (x GetUserFlagsResponse_Result) String() string
func (GetUserFlagsResponse_Result) Type ¶
func (GetUserFlagsResponse_Result) Type() protoreflect.EnumType
type LoginRequest ¶
type LoginRequest struct {
// Timestamp is the timestamp the request was generated
//
// The server may reject the request if the timestamp is too far off
// the current (server) time. This is to prevent replay attacks.
Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
Auth *v1.Auth `protobuf:"bytes,2,opt,name=auth,proto3" json:"auth,omitempty"`
// contains filtered or unexported fields
}
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetAuth ¶
func (x *LoginRequest) GetAuth() *v1.Auth
func (*LoginRequest) GetTimestamp ¶
func (x *LoginRequest) GetTimestamp() *timestamppb.Timestamp
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
func (*LoginRequest) Validate ¶
func (m *LoginRequest) Validate() error
Validate checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LoginRequest) ValidateAll ¶
func (m *LoginRequest) ValidateAll() error
ValidateAll checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginRequestMultiError, or nil if none found.
type LoginRequestMultiError ¶
type LoginRequestMultiError []error
LoginRequestMultiError is an error wrapping multiple validation errors returned by LoginRequest.ValidateAll() if the designated constraints aren't met.
func (LoginRequestMultiError) AllErrors ¶
func (m LoginRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginRequestMultiError) Error ¶
func (m LoginRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginRequestValidationError ¶
type LoginRequestValidationError struct {
// contains filtered or unexported fields
}
LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.
func (LoginRequestValidationError) Cause ¶
func (e LoginRequestValidationError) Cause() error
Cause function returns cause value.
func (LoginRequestValidationError) Error ¶
func (e LoginRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LoginRequestValidationError) ErrorName ¶
func (e LoginRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LoginRequestValidationError) Field ¶
func (e LoginRequestValidationError) Field() string
Field function returns field value.
func (LoginRequestValidationError) Key ¶
func (e LoginRequestValidationError) Key() bool
Key function returns key value.
func (LoginRequestValidationError) Reason ¶
func (e LoginRequestValidationError) Reason() string
Reason function returns reason value.
type LoginResponse ¶
type LoginResponse struct {
Result LoginResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=flipcash.account.v1.LoginResponse_Result" json:"result,omitempty"`
UserId *v1.UserId `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// contains filtered or unexported fields
}
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetResult ¶
func (x *LoginResponse) GetResult() LoginResponse_Result
func (*LoginResponse) GetUserId ¶
func (x *LoginResponse) GetUserId() *v1.UserId
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
func (*LoginResponse) Validate ¶
func (m *LoginResponse) Validate() error
Validate checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LoginResponse) ValidateAll ¶
func (m *LoginResponse) ValidateAll() error
ValidateAll checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginResponseMultiError, or nil if none found.
type LoginResponseMultiError ¶
type LoginResponseMultiError []error
LoginResponseMultiError is an error wrapping multiple validation errors returned by LoginResponse.ValidateAll() if the designated constraints aren't met.
func (LoginResponseMultiError) AllErrors ¶
func (m LoginResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginResponseMultiError) Error ¶
func (m LoginResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginResponseValidationError ¶
type LoginResponseValidationError struct {
// contains filtered or unexported fields
}
LoginResponseValidationError is the validation error returned by LoginResponse.Validate if the designated constraints aren't met.
func (LoginResponseValidationError) Cause ¶
func (e LoginResponseValidationError) Cause() error
Cause function returns cause value.
func (LoginResponseValidationError) Error ¶
func (e LoginResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LoginResponseValidationError) ErrorName ¶
func (e LoginResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LoginResponseValidationError) Field ¶
func (e LoginResponseValidationError) Field() string
Field function returns field value.
func (LoginResponseValidationError) Key ¶
func (e LoginResponseValidationError) Key() bool
Key function returns key value.
func (LoginResponseValidationError) Reason ¶
func (e LoginResponseValidationError) Reason() string
Reason function returns reason value.
type LoginResponse_Result ¶
type LoginResponse_Result int32
const ( LoginResponse_OK LoginResponse_Result = 0 LoginResponse_INVALID_TIMESTAMP LoginResponse_Result = 1 LoginResponse_DENIED LoginResponse_Result = 2 )
func (LoginResponse_Result) Descriptor ¶
func (LoginResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (LoginResponse_Result) Enum ¶
func (x LoginResponse_Result) Enum() *LoginResponse_Result
func (LoginResponse_Result) EnumDescriptor
deprecated
func (LoginResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use LoginResponse_Result.Descriptor instead.
func (LoginResponse_Result) Number ¶
func (x LoginResponse_Result) Number() protoreflect.EnumNumber
func (LoginResponse_Result) String ¶
func (x LoginResponse_Result) String() string
func (LoginResponse_Result) Type ¶
func (LoginResponse_Result) Type() protoreflect.EnumType
type RegisterRequest ¶
type RegisterRequest struct {
// PublicKey the public key that is authorized to perform actions on the
// registered users behalf.
PublicKey *v1.PublicKey `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
// Signature of this message (without the signature), using the provided keypair.
Signature *v1.Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetPublicKey ¶
func (x *RegisterRequest) GetPublicKey() *v1.PublicKey
func (*RegisterRequest) GetSignature ¶
func (x *RegisterRequest) GetSignature() *v1.Signature
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
func (*RegisterRequest) Validate ¶
func (m *RegisterRequest) Validate() error
Validate checks the field values on RegisterRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RegisterRequest) ValidateAll ¶
func (m *RegisterRequest) ValidateAll() error
ValidateAll checks the field values on RegisterRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RegisterRequestMultiError, or nil if none found.
type RegisterRequestMultiError ¶
type RegisterRequestMultiError []error
RegisterRequestMultiError is an error wrapping multiple validation errors returned by RegisterRequest.ValidateAll() if the designated constraints aren't met.
func (RegisterRequestMultiError) AllErrors ¶
func (m RegisterRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterRequestMultiError) Error ¶
func (m RegisterRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterRequestValidationError ¶
type RegisterRequestValidationError struct {
// contains filtered or unexported fields
}
RegisterRequestValidationError is the validation error returned by RegisterRequest.Validate if the designated constraints aren't met.
func (RegisterRequestValidationError) Cause ¶
func (e RegisterRequestValidationError) Cause() error
Cause function returns cause value.
func (RegisterRequestValidationError) Error ¶
func (e RegisterRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterRequestValidationError) ErrorName ¶
func (e RegisterRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterRequestValidationError) Field ¶
func (e RegisterRequestValidationError) Field() string
Field function returns field value.
func (RegisterRequestValidationError) Key ¶
func (e RegisterRequestValidationError) Key() bool
Key function returns key value.
func (RegisterRequestValidationError) Reason ¶
func (e RegisterRequestValidationError) Reason() string
Reason function returns reason value.
type RegisterResponse ¶
type RegisterResponse struct {
Result RegisterResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=flipcash.account.v1.RegisterResponse_Result" json:"result,omitempty"`
// The UserId associated with the account.
UserId *v1.UserId `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// contains filtered or unexported fields
}
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) GetResult ¶
func (x *RegisterResponse) GetResult() RegisterResponse_Result
func (*RegisterResponse) GetUserId ¶
func (x *RegisterResponse) GetUserId() *v1.UserId
func (*RegisterResponse) ProtoMessage ¶
func (*RegisterResponse) ProtoMessage()
func (*RegisterResponse) ProtoReflect ¶
func (x *RegisterResponse) ProtoReflect() protoreflect.Message
func (*RegisterResponse) Reset ¶
func (x *RegisterResponse) Reset()
func (*RegisterResponse) String ¶
func (x *RegisterResponse) String() string
func (*RegisterResponse) Validate ¶
func (m *RegisterResponse) Validate() error
Validate checks the field values on RegisterResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RegisterResponse) ValidateAll ¶
func (m *RegisterResponse) ValidateAll() error
ValidateAll checks the field values on RegisterResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RegisterResponseMultiError, or nil if none found.
type RegisterResponseMultiError ¶
type RegisterResponseMultiError []error
RegisterResponseMultiError is an error wrapping multiple validation errors returned by RegisterResponse.ValidateAll() if the designated constraints aren't met.
func (RegisterResponseMultiError) AllErrors ¶
func (m RegisterResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterResponseMultiError) Error ¶
func (m RegisterResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterResponseValidationError ¶
type RegisterResponseValidationError struct {
// contains filtered or unexported fields
}
RegisterResponseValidationError is the validation error returned by RegisterResponse.Validate if the designated constraints aren't met.
func (RegisterResponseValidationError) Cause ¶
func (e RegisterResponseValidationError) Cause() error
Cause function returns cause value.
func (RegisterResponseValidationError) Error ¶
func (e RegisterResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterResponseValidationError) ErrorName ¶
func (e RegisterResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterResponseValidationError) Field ¶
func (e RegisterResponseValidationError) Field() string
Field function returns field value.
func (RegisterResponseValidationError) Key ¶
func (e RegisterResponseValidationError) Key() bool
Key function returns key value.
func (RegisterResponseValidationError) Reason ¶
func (e RegisterResponseValidationError) Reason() string
Reason function returns reason value.
type RegisterResponse_Result ¶
type RegisterResponse_Result int32
const ( RegisterResponse_OK RegisterResponse_Result = 0 RegisterResponse_INVALID_SIGNATURE RegisterResponse_Result = 1 RegisterResponse_DENIED RegisterResponse_Result = 2 )
func (RegisterResponse_Result) Descriptor ¶
func (RegisterResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (RegisterResponse_Result) Enum ¶
func (x RegisterResponse_Result) Enum() *RegisterResponse_Result
func (RegisterResponse_Result) EnumDescriptor
deprecated
func (RegisterResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use RegisterResponse_Result.Descriptor instead.
func (RegisterResponse_Result) Number ¶
func (x RegisterResponse_Result) Number() protoreflect.EnumNumber
func (RegisterResponse_Result) String ¶
func (x RegisterResponse_Result) String() string
func (RegisterResponse_Result) Type ¶
func (RegisterResponse_Result) Type() protoreflect.EnumType
type UnimplementedAccountServer ¶
type UnimplementedAccountServer struct{}
UnimplementedAccountServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAccountServer) GetUnauthenticatedUserFlags ¶ added in v1.9.15
func (UnimplementedAccountServer) GetUnauthenticatedUserFlags(context.Context, *GetUnauthenticatedUserFlagsRequest) (*GetUnauthenticatedUserFlagsResponse, error)
func (UnimplementedAccountServer) GetUserFlags ¶
func (UnimplementedAccountServer) GetUserFlags(context.Context, *GetUserFlagsRequest) (*GetUserFlagsResponse, error)
func (UnimplementedAccountServer) Login ¶
func (UnimplementedAccountServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedAccountServer) Register ¶
func (UnimplementedAccountServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
type UnsafeAccountServer ¶
type UnsafeAccountServer interface {
// contains filtered or unexported methods
}
UnsafeAccountServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountServer will result in compilation errors.
type UserFlags ¶
type UserFlags struct {
// Is this a fully registered account using IAP for account creation?
IsRegisteredAccount bool `protobuf:"varint,1,opt,name=is_registered_account,json=isRegisteredAccount,proto3" json:"is_registered_account,omitempty"`
// Is this user associated with a Flipcash staff member?
IsStaff bool `protobuf:"varint,2,opt,name=is_staff,json=isStaff,proto3" json:"is_staff,omitempty"`
// Does this user require IAP for registration in the account creation flow?
RequiresIapForRegistration bool `` /* 144-byte string literal not displayed */
// The set of supported on ramp providers for the user, based on their platform
// and locale if provided
SupportedOnRampProviders []UserFlags_OnRampProvider `` /* 195-byte string literal not displayed */
// The preferred on ramp provider for this user. If the value is UNKNOWN, client
// should show the list of all supported providers.
PreferredOnRampProvider UserFlags_OnRampProvider `` /* 185-byte string literal not displayed */
// The minumum build number for this user. If their build number is less than the
// provided value, client should show a forced upgrade screen.
MinBuildNumber uint32 `protobuf:"varint,6,opt,name=min_build_number,json=minBuildNumber,proto3" json:"min_build_number,omitempty"`
// contains filtered or unexported fields
}
func (*UserFlags) Descriptor
deprecated
func (*UserFlags) GetIsRegisteredAccount ¶
func (*UserFlags) GetIsStaff ¶
func (*UserFlags) GetMinBuildNumber ¶ added in v1.9.14
func (*UserFlags) GetPreferredOnRampProvider ¶ added in v1.9.9
func (x *UserFlags) GetPreferredOnRampProvider() UserFlags_OnRampProvider
func (*UserFlags) GetRequiresIapForRegistration ¶ added in v1.4.22
func (*UserFlags) GetSupportedOnRampProviders ¶ added in v1.9.3
func (x *UserFlags) GetSupportedOnRampProviders() []UserFlags_OnRampProvider
func (*UserFlags) ProtoMessage ¶
func (*UserFlags) ProtoMessage()
func (*UserFlags) ProtoReflect ¶
func (x *UserFlags) ProtoReflect() protoreflect.Message
func (*UserFlags) Validate ¶
Validate checks the field values on UserFlags with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UserFlags) ValidateAll ¶
ValidateAll checks the field values on UserFlags with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserFlagsMultiError, or nil if none found.
type UserFlagsMultiError ¶
type UserFlagsMultiError []error
UserFlagsMultiError is an error wrapping multiple validation errors returned by UserFlags.ValidateAll() if the designated constraints aren't met.
func (UserFlagsMultiError) AllErrors ¶
func (m UserFlagsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserFlagsMultiError) Error ¶
func (m UserFlagsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserFlagsValidationError ¶
type UserFlagsValidationError struct {
// contains filtered or unexported fields
}
UserFlagsValidationError is the validation error returned by UserFlags.Validate if the designated constraints aren't met.
func (UserFlagsValidationError) Cause ¶
func (e UserFlagsValidationError) Cause() error
Cause function returns cause value.
func (UserFlagsValidationError) Error ¶
func (e UserFlagsValidationError) Error() string
Error satisfies the builtin error interface
func (UserFlagsValidationError) ErrorName ¶
func (e UserFlagsValidationError) ErrorName() string
ErrorName returns error name.
func (UserFlagsValidationError) Field ¶
func (e UserFlagsValidationError) Field() string
Field function returns field value.
func (UserFlagsValidationError) Key ¶
func (e UserFlagsValidationError) Key() bool
Key function returns key value.
func (UserFlagsValidationError) Reason ¶
func (e UserFlagsValidationError) Reason() string
Reason function returns reason value.
type UserFlags_OnRampProvider ¶ added in v1.9.3
type UserFlags_OnRampProvider int32
const ( UserFlags_UNKNOWN UserFlags_OnRampProvider = 0 UserFlags_COINBASE_VIRTUAL UserFlags_OnRampProvider = 1 UserFlags_COINBASE_PHYSICAL_DEBIT UserFlags_OnRampProvider = 2 UserFlags_COINBASE_PHYSICAL_CREDIT UserFlags_OnRampProvider = 3 UserFlags_MANUAL_DEPOSIT UserFlags_OnRampProvider = 4 UserFlags_PHANTOM UserFlags_OnRampProvider = 5 UserFlags_SOLFLARE UserFlags_OnRampProvider = 6 UserFlags_BACKPACK UserFlags_OnRampProvider = 7 UserFlags_BASE UserFlags_OnRampProvider = 8 )
func (UserFlags_OnRampProvider) Descriptor ¶ added in v1.9.3
func (UserFlags_OnRampProvider) Descriptor() protoreflect.EnumDescriptor
func (UserFlags_OnRampProvider) Enum ¶ added in v1.9.3
func (x UserFlags_OnRampProvider) Enum() *UserFlags_OnRampProvider
func (UserFlags_OnRampProvider) EnumDescriptor
deprecated
added in
v1.9.3
func (UserFlags_OnRampProvider) EnumDescriptor() ([]byte, []int)
Deprecated: Use UserFlags_OnRampProvider.Descriptor instead.
func (UserFlags_OnRampProvider) Number ¶ added in v1.9.3
func (x UserFlags_OnRampProvider) Number() protoreflect.EnumNumber
func (UserFlags_OnRampProvider) String ¶ added in v1.9.3
func (x UserFlags_OnRampProvider) String() string
func (UserFlags_OnRampProvider) Type ¶ added in v1.9.3
func (UserFlags_OnRampProvider) Type() protoreflect.EnumType