Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer)
- type AccountClient
- type AccountServer
- type GetUserFlagsRequest
- func (*GetUserFlagsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserFlagsRequest) GetAuth() *v1.Auth
- 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) 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 (*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
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" )
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 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, }, }, Streams: []grpc.StreamDesc{}, Metadata: "account/v1/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_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) }
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) // contains filtered or unexported methods }
AccountServer is the server API for Account service. All implementations must embed UnimplementedAccountServer for forward compatibility.
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"` // 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) 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) 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"` // contains filtered or unexported fields }
func (*UserFlags) Descriptor
deprecated
func (*UserFlags) GetIsRegisteredAccount ¶
func (*UserFlags) GetIsStaff ¶
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.