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{})
- 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
- 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
- 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
- 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
- type Role
- type Scope
Constants ¶
This section is empty.
Variables ¶
View Source
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.
View Source
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.
View Source
var File_account_v1_account_proto protoreflect.FileDescriptor
View Source
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.
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
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
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
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
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
Click to show internal directories.
Click to hide internal directories.