Documentation ¶
Index ¶
- Variables
- type Admin
- func (*Admin) Descriptor() ([]byte, []int)deprecated
- func (x *Admin) GetAvatar() []byte
- func (x *Admin) GetEmail() string
- func (x *Admin) GetFirstName() string
- func (x *Admin) GetKey() string
- func (x *Admin) GetLastName() string
- func (x *Admin) GetNotes() string
- func (x *Admin) GetPasswordHash() []byte
- func (x *Admin) GetRole() Role
- func (x *Admin) GetScopes() map[string]Scope
- func (*Admin) ProtoMessage()
- func (x *Admin) ProtoReflect() protoreflect.Message
- func (x *Admin) Reset()
- func (x *Admin) String() string
- func (o *Admin) UnmarshalJSON(b []byte) error
- func (o *Admin) UnmarshalMap(values map[string]interface{})
- func (m *Admin) Validate() error
- func (m *Admin) ValidateAll() error
- type AdminCreatedPayload
- func (*AdminCreatedPayload) Descriptor() ([]byte, []int)deprecated
- func (x *AdminCreatedPayload) GetAdmin() *Admin
- func (x *AdminCreatedPayload) GetElement() *anypb.Any
- func (x *AdminCreatedPayload) GetKey() string
- func (*AdminCreatedPayload) ProtoMessage()
- func (x *AdminCreatedPayload) ProtoReflect() protoreflect.Message
- func (x *AdminCreatedPayload) Reset()
- func (x *AdminCreatedPayload) String() string
- func (m *AdminCreatedPayload) Validate() error
- func (m *AdminCreatedPayload) ValidateAll() error
- type AdminCreatedPayloadMultiError
- type AdminCreatedPayloadValidationError
- func (e AdminCreatedPayloadValidationError) Cause() error
- func (e AdminCreatedPayloadValidationError) Error() string
- func (e AdminCreatedPayloadValidationError) ErrorName() string
- func (e AdminCreatedPayloadValidationError) Field() string
- func (e AdminCreatedPayloadValidationError) Key() bool
- func (e AdminCreatedPayloadValidationError) Reason() string
- type AdminDeletedPayload
- func (*AdminDeletedPayload) Descriptor() ([]byte, []int)deprecated
- func (x *AdminDeletedPayload) GetAdmin() *Admin
- func (x *AdminDeletedPayload) GetKey() string
- func (*AdminDeletedPayload) ProtoMessage()
- func (x *AdminDeletedPayload) ProtoReflect() protoreflect.Message
- func (x *AdminDeletedPayload) Reset()
- func (x *AdminDeletedPayload) String() string
- func (m *AdminDeletedPayload) Validate() error
- func (m *AdminDeletedPayload) ValidateAll() error
- type AdminDeletedPayloadMultiError
- type AdminDeletedPayloadValidationError
- func (e AdminDeletedPayloadValidationError) Cause() error
- func (e AdminDeletedPayloadValidationError) Error() string
- func (e AdminDeletedPayloadValidationError) ErrorName() string
- func (e AdminDeletedPayloadValidationError) Field() string
- func (e AdminDeletedPayloadValidationError) Key() bool
- func (e AdminDeletedPayloadValidationError) Reason() string
- type AdminMultiError
- type AdminReplacedPayload
- func (*AdminReplacedPayload) Descriptor() ([]byte, []int)deprecated
- func (x *AdminReplacedPayload) GetAdmin() *Admin
- func (x *AdminReplacedPayload) GetElement() *anypb.Any
- func (*AdminReplacedPayload) ProtoMessage()
- func (x *AdminReplacedPayload) ProtoReflect() protoreflect.Message
- func (x *AdminReplacedPayload) Reset()
- func (x *AdminReplacedPayload) String() string
- func (m *AdminReplacedPayload) Validate() error
- func (m *AdminReplacedPayload) ValidateAll() error
- type AdminReplacedPayloadMultiError
- type AdminReplacedPayloadValidationError
- func (e AdminReplacedPayloadValidationError) Cause() error
- func (e AdminReplacedPayloadValidationError) Error() string
- func (e AdminReplacedPayloadValidationError) ErrorName() string
- func (e AdminReplacedPayloadValidationError) Field() string
- func (e AdminReplacedPayloadValidationError) Key() bool
- func (e AdminReplacedPayloadValidationError) Reason() string
- type AdminUpdatedPayload
- func (*AdminUpdatedPayload) Descriptor() ([]byte, []int)deprecated
- func (x *AdminUpdatedPayload) GetAdmin() *Admin
- func (x *AdminUpdatedPayload) GetElement() *anypb.Any
- func (*AdminUpdatedPayload) ProtoMessage()
- func (x *AdminUpdatedPayload) ProtoReflect() protoreflect.Message
- func (x *AdminUpdatedPayload) Reset()
- func (x *AdminUpdatedPayload) String() string
- func (m *AdminUpdatedPayload) Validate() error
- func (m *AdminUpdatedPayload) ValidateAll() error
- type AdminUpdatedPayloadMultiError
- type AdminUpdatedPayloadValidationError
- func (e AdminUpdatedPayloadValidationError) Cause() error
- func (e AdminUpdatedPayloadValidationError) Error() string
- func (e AdminUpdatedPayloadValidationError) ErrorName() string
- func (e AdminUpdatedPayloadValidationError) Field() string
- func (e AdminUpdatedPayloadValidationError) Key() bool
- func (e AdminUpdatedPayloadValidationError) Reason() string
- type AdminValidationError
- type Role
- type Scope
Constants ¶
This section is empty.
Variables ¶
var ( Role_name = map[int32]string{ 0: "ROLE_UNSPECIFIED", 1: "ROLE_OWNER", 2: "ROLE_MANAGER", } Role_value = map[string]int32{ "ROLE_UNSPECIFIED": 0, "ROLE_OWNER": 1, "ROLE_MANAGER": 2, } )
Enum value maps for Role.
var ( Scope_name = map[int32]string{ 0: "SCOPE_UNSPECIFIED", 1: "SCOPE_READ", 2: "SCOPE_WRITE", } Scope_value = map[string]int32{ "SCOPE_UNSPECIFIED": 0, "SCOPE_READ": 1, "SCOPE_WRITE": 2, } )
Enum value maps for Scope.
var File_account_v1_account_proto protoreflect.FileDescriptor
var File_account_v1_event_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Admin ¶
type Admin struct { // key represents the unique identifier of the admin Key string `protobuf:"bytes,1,opt,name=_key,proto3" json:"_key,omitempty"` // first name of the admin FirstName string `protobuf:"bytes,2,opt,name=firstName,proto3" json:"firstName,omitempty"` // last name of the admin LastName string `protobuf:"bytes,3,opt,name=lastName,proto3" json:"lastName,omitempty"` // unique email of the admin Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` // password_hash is the hashed password of the admin PasswordHash []byte `protobuf:"bytes,5,opt,name=passwordHash,proto3" json:"passwordHash,omitempty"` // avatar image associated to the avatar Avatar []byte `protobuf:"bytes,6,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"` // notes associated to the admin Notes *string `protobuf:"bytes,7,opt,name=notes,proto3,oneof" json:"notes,omitempty"` // role of the admin Role Role `protobuf:"varint,8,opt,name=role,proto3,enum=account.v1.Role" json:"role,omitempty"` // scopes that the admin contains for each model Scopes map[string]Scope `` /* 176-byte string literal not displayed */ // contains filtered or unexported fields }
Account ...
func (*Admin) Descriptor
deprecated
func (*Admin) GetFirstName ¶
func (*Admin) GetLastName ¶
func (*Admin) GetPasswordHash ¶
func (*Admin) ProtoMessage ¶
func (*Admin) ProtoMessage()
func (*Admin) ProtoReflect ¶
func (x *Admin) ProtoReflect() protoreflect.Message
func (*Admin) UnmarshalMap ¶
UnmarshalMap populates struct fields from a map, handling decoding for special fields.
func (*Admin) Validate ¶
Validate checks the field values on Admin 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 (*Admin) ValidateAll ¶
ValidateAll checks the field values on Admin 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 AdminMultiError, or nil if none found.
type AdminCreatedPayload ¶
type AdminCreatedPayload struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Element *anypb.Any `protobuf:"bytes,2,opt,name=element,proto3" json:"element,omitempty"` Admin *Admin `protobuf:"bytes,3,opt,name=admin,proto3" json:"admin,omitempty"` // contains filtered or unexported fields }
func (*AdminCreatedPayload) Descriptor
deprecated
func (*AdminCreatedPayload) Descriptor() ([]byte, []int)
Deprecated: Use AdminCreatedPayload.ProtoReflect.Descriptor instead.
func (*AdminCreatedPayload) GetAdmin ¶
func (x *AdminCreatedPayload) GetAdmin() *Admin
func (*AdminCreatedPayload) GetElement ¶
func (x *AdminCreatedPayload) GetElement() *anypb.Any
func (*AdminCreatedPayload) GetKey ¶
func (x *AdminCreatedPayload) GetKey() string
func (*AdminCreatedPayload) ProtoMessage ¶
func (*AdminCreatedPayload) ProtoMessage()
func (*AdminCreatedPayload) ProtoReflect ¶
func (x *AdminCreatedPayload) ProtoReflect() protoreflect.Message
func (*AdminCreatedPayload) Reset ¶
func (x *AdminCreatedPayload) Reset()
func (*AdminCreatedPayload) String ¶
func (x *AdminCreatedPayload) String() string
func (*AdminCreatedPayload) Validate ¶
func (m *AdminCreatedPayload) Validate() error
Validate checks the field values on AdminCreatedPayload 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 (*AdminCreatedPayload) ValidateAll ¶
func (m *AdminCreatedPayload) ValidateAll() error
ValidateAll checks the field values on AdminCreatedPayload 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 AdminCreatedPayloadMultiError, or nil if none found.
type AdminCreatedPayloadMultiError ¶
type AdminCreatedPayloadMultiError []error
AdminCreatedPayloadMultiError is an error wrapping multiple validation errors returned by AdminCreatedPayload.ValidateAll() if the designated constraints aren't met.
func (AdminCreatedPayloadMultiError) AllErrors ¶
func (m AdminCreatedPayloadMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AdminCreatedPayloadMultiError) Error ¶
func (m AdminCreatedPayloadMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AdminCreatedPayloadValidationError ¶
type AdminCreatedPayloadValidationError struct {
// contains filtered or unexported fields
}
AdminCreatedPayloadValidationError is the validation error returned by AdminCreatedPayload.Validate if the designated constraints aren't met.
func (AdminCreatedPayloadValidationError) Cause ¶
func (e AdminCreatedPayloadValidationError) Cause() error
Cause function returns cause value.
func (AdminCreatedPayloadValidationError) Error ¶
func (e AdminCreatedPayloadValidationError) Error() string
Error satisfies the builtin error interface
func (AdminCreatedPayloadValidationError) ErrorName ¶
func (e AdminCreatedPayloadValidationError) ErrorName() string
ErrorName returns error name.
func (AdminCreatedPayloadValidationError) Field ¶
func (e AdminCreatedPayloadValidationError) Field() string
Field function returns field value.
func (AdminCreatedPayloadValidationError) Key ¶
func (e AdminCreatedPayloadValidationError) Key() bool
Key function returns key value.
func (AdminCreatedPayloadValidationError) Reason ¶
func (e AdminCreatedPayloadValidationError) Reason() string
Reason function returns reason value.
type AdminDeletedPayload ¶
type AdminDeletedPayload struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Admin *Admin `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty"` // contains filtered or unexported fields }
func (*AdminDeletedPayload) Descriptor
deprecated
func (*AdminDeletedPayload) Descriptor() ([]byte, []int)
Deprecated: Use AdminDeletedPayload.ProtoReflect.Descriptor instead.
func (*AdminDeletedPayload) GetAdmin ¶
func (x *AdminDeletedPayload) GetAdmin() *Admin
func (*AdminDeletedPayload) GetKey ¶
func (x *AdminDeletedPayload) GetKey() string
func (*AdminDeletedPayload) ProtoMessage ¶
func (*AdminDeletedPayload) ProtoMessage()
func (*AdminDeletedPayload) ProtoReflect ¶
func (x *AdminDeletedPayload) ProtoReflect() protoreflect.Message
func (*AdminDeletedPayload) Reset ¶
func (x *AdminDeletedPayload) Reset()
func (*AdminDeletedPayload) String ¶
func (x *AdminDeletedPayload) String() string
func (*AdminDeletedPayload) Validate ¶
func (m *AdminDeletedPayload) Validate() error
Validate checks the field values on AdminDeletedPayload 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 (*AdminDeletedPayload) ValidateAll ¶
func (m *AdminDeletedPayload) ValidateAll() error
ValidateAll checks the field values on AdminDeletedPayload 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 AdminDeletedPayloadMultiError, or nil if none found.
type AdminDeletedPayloadMultiError ¶
type AdminDeletedPayloadMultiError []error
AdminDeletedPayloadMultiError is an error wrapping multiple validation errors returned by AdminDeletedPayload.ValidateAll() if the designated constraints aren't met.
func (AdminDeletedPayloadMultiError) AllErrors ¶
func (m AdminDeletedPayloadMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AdminDeletedPayloadMultiError) Error ¶
func (m AdminDeletedPayloadMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AdminDeletedPayloadValidationError ¶
type AdminDeletedPayloadValidationError struct {
// contains filtered or unexported fields
}
AdminDeletedPayloadValidationError is the validation error returned by AdminDeletedPayload.Validate if the designated constraints aren't met.
func (AdminDeletedPayloadValidationError) Cause ¶
func (e AdminDeletedPayloadValidationError) Cause() error
Cause function returns cause value.
func (AdminDeletedPayloadValidationError) Error ¶
func (e AdminDeletedPayloadValidationError) Error() string
Error satisfies the builtin error interface
func (AdminDeletedPayloadValidationError) ErrorName ¶
func (e AdminDeletedPayloadValidationError) ErrorName() string
ErrorName returns error name.
func (AdminDeletedPayloadValidationError) Field ¶
func (e AdminDeletedPayloadValidationError) Field() string
Field function returns field value.
func (AdminDeletedPayloadValidationError) Key ¶
func (e AdminDeletedPayloadValidationError) Key() bool
Key function returns key value.
func (AdminDeletedPayloadValidationError) Reason ¶
func (e AdminDeletedPayloadValidationError) Reason() string
Reason function returns reason value.
type AdminMultiError ¶
type AdminMultiError []error
AdminMultiError is an error wrapping multiple validation errors returned by Admin.ValidateAll() if the designated constraints aren't met.
func (AdminMultiError) AllErrors ¶
func (m AdminMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AdminMultiError) Error ¶
func (m AdminMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AdminReplacedPayload ¶
type AdminReplacedPayload struct { Element *anypb.Any `protobuf:"bytes,1,opt,name=element,proto3" json:"element,omitempty"` Admin *Admin `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty"` // contains filtered or unexported fields }
func (*AdminReplacedPayload) Descriptor
deprecated
func (*AdminReplacedPayload) Descriptor() ([]byte, []int)
Deprecated: Use AdminReplacedPayload.ProtoReflect.Descriptor instead.
func (*AdminReplacedPayload) GetAdmin ¶
func (x *AdminReplacedPayload) GetAdmin() *Admin
func (*AdminReplacedPayload) GetElement ¶
func (x *AdminReplacedPayload) GetElement() *anypb.Any
func (*AdminReplacedPayload) ProtoMessage ¶
func (*AdminReplacedPayload) ProtoMessage()
func (*AdminReplacedPayload) ProtoReflect ¶
func (x *AdminReplacedPayload) ProtoReflect() protoreflect.Message
func (*AdminReplacedPayload) Reset ¶
func (x *AdminReplacedPayload) Reset()
func (*AdminReplacedPayload) String ¶
func (x *AdminReplacedPayload) String() string
func (*AdminReplacedPayload) Validate ¶
func (m *AdminReplacedPayload) Validate() error
Validate checks the field values on AdminReplacedPayload 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 (*AdminReplacedPayload) ValidateAll ¶
func (m *AdminReplacedPayload) ValidateAll() error
ValidateAll checks the field values on AdminReplacedPayload 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 AdminReplacedPayloadMultiError, or nil if none found.
type AdminReplacedPayloadMultiError ¶
type AdminReplacedPayloadMultiError []error
AdminReplacedPayloadMultiError is an error wrapping multiple validation errors returned by AdminReplacedPayload.ValidateAll() if the designated constraints aren't met.
func (AdminReplacedPayloadMultiError) AllErrors ¶
func (m AdminReplacedPayloadMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AdminReplacedPayloadMultiError) Error ¶
func (m AdminReplacedPayloadMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AdminReplacedPayloadValidationError ¶
type AdminReplacedPayloadValidationError struct {
// contains filtered or unexported fields
}
AdminReplacedPayloadValidationError is the validation error returned by AdminReplacedPayload.Validate if the designated constraints aren't met.
func (AdminReplacedPayloadValidationError) Cause ¶
func (e AdminReplacedPayloadValidationError) Cause() error
Cause function returns cause value.
func (AdminReplacedPayloadValidationError) Error ¶
func (e AdminReplacedPayloadValidationError) Error() string
Error satisfies the builtin error interface
func (AdminReplacedPayloadValidationError) ErrorName ¶
func (e AdminReplacedPayloadValidationError) ErrorName() string
ErrorName returns error name.
func (AdminReplacedPayloadValidationError) Field ¶
func (e AdminReplacedPayloadValidationError) Field() string
Field function returns field value.
func (AdminReplacedPayloadValidationError) Key ¶
func (e AdminReplacedPayloadValidationError) Key() bool
Key function returns key value.
func (AdminReplacedPayloadValidationError) Reason ¶
func (e AdminReplacedPayloadValidationError) Reason() string
Reason function returns reason value.
type AdminUpdatedPayload ¶
type AdminUpdatedPayload struct { Element *anypb.Any `protobuf:"bytes,1,opt,name=element,proto3" json:"element,omitempty"` Admin *Admin `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty"` // contains filtered or unexported fields }
func (*AdminUpdatedPayload) Descriptor
deprecated
func (*AdminUpdatedPayload) Descriptor() ([]byte, []int)
Deprecated: Use AdminUpdatedPayload.ProtoReflect.Descriptor instead.
func (*AdminUpdatedPayload) GetAdmin ¶
func (x *AdminUpdatedPayload) GetAdmin() *Admin
func (*AdminUpdatedPayload) GetElement ¶
func (x *AdminUpdatedPayload) GetElement() *anypb.Any
func (*AdminUpdatedPayload) ProtoMessage ¶
func (*AdminUpdatedPayload) ProtoMessage()
func (*AdminUpdatedPayload) ProtoReflect ¶
func (x *AdminUpdatedPayload) ProtoReflect() protoreflect.Message
func (*AdminUpdatedPayload) Reset ¶
func (x *AdminUpdatedPayload) Reset()
func (*AdminUpdatedPayload) String ¶
func (x *AdminUpdatedPayload) String() string
func (*AdminUpdatedPayload) Validate ¶
func (m *AdminUpdatedPayload) Validate() error
Validate checks the field values on AdminUpdatedPayload 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 (*AdminUpdatedPayload) ValidateAll ¶
func (m *AdminUpdatedPayload) ValidateAll() error
ValidateAll checks the field values on AdminUpdatedPayload 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 AdminUpdatedPayloadMultiError, or nil if none found.
type AdminUpdatedPayloadMultiError ¶
type AdminUpdatedPayloadMultiError []error
AdminUpdatedPayloadMultiError is an error wrapping multiple validation errors returned by AdminUpdatedPayload.ValidateAll() if the designated constraints aren't met.
func (AdminUpdatedPayloadMultiError) AllErrors ¶
func (m AdminUpdatedPayloadMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AdminUpdatedPayloadMultiError) Error ¶
func (m AdminUpdatedPayloadMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AdminUpdatedPayloadValidationError ¶
type AdminUpdatedPayloadValidationError struct {
// contains filtered or unexported fields
}
AdminUpdatedPayloadValidationError is the validation error returned by AdminUpdatedPayload.Validate if the designated constraints aren't met.
func (AdminUpdatedPayloadValidationError) Cause ¶
func (e AdminUpdatedPayloadValidationError) Cause() error
Cause function returns cause value.
func (AdminUpdatedPayloadValidationError) Error ¶
func (e AdminUpdatedPayloadValidationError) Error() string
Error satisfies the builtin error interface
func (AdminUpdatedPayloadValidationError) ErrorName ¶
func (e AdminUpdatedPayloadValidationError) ErrorName() string
ErrorName returns error name.
func (AdminUpdatedPayloadValidationError) Field ¶
func (e AdminUpdatedPayloadValidationError) Field() string
Field function returns field value.
func (AdminUpdatedPayloadValidationError) Key ¶
func (e AdminUpdatedPayloadValidationError) Key() bool
Key function returns key value.
func (AdminUpdatedPayloadValidationError) Reason ¶
func (e AdminUpdatedPayloadValidationError) Reason() string
Reason function returns reason value.
type AdminValidationError ¶
type AdminValidationError struct {
// contains filtered or unexported fields
}
AdminValidationError is the validation error returned by Admin.Validate if the designated constraints aren't met.
func (AdminValidationError) Cause ¶
func (e AdminValidationError) Cause() error
Cause function returns cause value.
func (AdminValidationError) Error ¶
func (e AdminValidationError) Error() string
Error satisfies the builtin error interface
func (AdminValidationError) ErrorName ¶
func (e AdminValidationError) ErrorName() string
ErrorName returns error name.
func (AdminValidationError) Field ¶
func (e AdminValidationError) Field() string
Field function returns field value.
func (AdminValidationError) Key ¶
func (e AdminValidationError) Key() bool
Key function returns key value.
func (AdminValidationError) Reason ¶
func (e AdminValidationError) Reason() string
Reason function returns reason value.
type Role ¶
type Role int32
func (Role) Descriptor ¶
func (Role) Descriptor() protoreflect.EnumDescriptor
func (Role) EnumDescriptor
deprecated
func (Role) Number ¶
func (x Role) Number() protoreflect.EnumNumber
func (Role) Type ¶
func (Role) Type() protoreflect.EnumType
type Scope ¶
type Scope int32
func (Scope) Descriptor ¶
func (Scope) Descriptor() protoreflect.EnumDescriptor
func (Scope) EnumDescriptor
deprecated
func (Scope) Number ¶
func (x Scope) Number() protoreflect.EnumNumber
func (Scope) Type ¶
func (Scope) Type() protoreflect.EnumType