acountpb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 License: MIT Imports: 23 Imported by: 2

Documentation

Index

Constants

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

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

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

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

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

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

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

Cause function returns cause value.

func (GetUserFlagsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUserFlagsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetUserFlagsRequestValidationError) Field

Field function returns field value.

func (GetUserFlagsRequestValidationError) Key

Key function returns key value.

func (GetUserFlagsRequestValidationError) Reason

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 (*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

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

Cause function returns cause value.

func (GetUserFlagsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetUserFlagsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetUserFlagsResponseValidationError) Field

Field function returns field value.

func (GetUserFlagsResponseValidationError) Key

Key function returns key value.

func (GetUserFlagsResponseValidationError) Reason

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

func (GetUserFlagsResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use GetUserFlagsResponse_Result.Descriptor instead.

func (GetUserFlagsResponse_Result) Number

func (GetUserFlagsResponse_Result) String

func (GetUserFlagsResponse_Result) Type

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

Cause function returns cause value.

func (LoginRequestValidationError) Error

Error satisfies the builtin error interface

func (LoginRequestValidationError) ErrorName

func (e LoginRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LoginRequestValidationError) Field

Field function returns field value.

func (LoginRequestValidationError) Key

Key function returns key value.

func (LoginRequestValidationError) Reason

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

Cause function returns cause value.

func (LoginResponseValidationError) Error

Error satisfies the builtin error interface

func (LoginResponseValidationError) ErrorName

func (e LoginResponseValidationError) ErrorName() string

ErrorName returns error name.

func (LoginResponseValidationError) Field

Field function returns field value.

func (LoginResponseValidationError) Key

Key function returns key value.

func (LoginResponseValidationError) Reason

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

func (LoginResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use LoginResponse_Result.Descriptor instead.

func (LoginResponse_Result) Number

func (LoginResponse_Result) String

func (x LoginResponse_Result) String() string

func (LoginResponse_Result) Type

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

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

Cause function returns cause value.

func (RegisterRequestValidationError) Error

Error satisfies the builtin error interface

func (RegisterRequestValidationError) ErrorName

func (e RegisterRequestValidationError) ErrorName() string

ErrorName returns error name.

func (RegisterRequestValidationError) Field

Field function returns field value.

func (RegisterRequestValidationError) Key

Key function returns key value.

func (RegisterRequestValidationError) Reason

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 (*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

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

Cause function returns cause value.

func (RegisterResponseValidationError) Error

Error satisfies the builtin error interface

func (RegisterResponseValidationError) ErrorName

ErrorName returns error name.

func (RegisterResponseValidationError) Field

Field function returns field value.

func (RegisterResponseValidationError) Key

Key function returns key value.

func (RegisterResponseValidationError) Reason

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

func (RegisterResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use RegisterResponse_Result.Descriptor instead.

func (RegisterResponse_Result) Number

func (RegisterResponse_Result) String

func (x RegisterResponse_Result) String() string

func (RegisterResponse_Result) Type

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

func (UnimplementedAccountServer) Register

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

Deprecated: Use UserFlags.ProtoReflect.Descriptor instead.

func (*UserFlags) GetIsRegisteredAccount

func (x *UserFlags) GetIsRegisteredAccount() bool

func (*UserFlags) GetIsStaff

func (x *UserFlags) GetIsStaff() bool

func (*UserFlags) ProtoMessage

func (*UserFlags) ProtoMessage()

func (*UserFlags) ProtoReflect

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

func (*UserFlags) Reset

func (x *UserFlags) Reset()

func (*UserFlags) String

func (x *UserFlags) String() string

func (*UserFlags) Validate

func (m *UserFlags) Validate() error

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

func (m *UserFlags) ValidateAll() error

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

Key function returns key value.

func (UserFlagsValidationError) Reason

func (e UserFlagsValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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