Documentation ¶
Index ¶
- Variables
- type Admin
- func (*Admin) Descriptor() ([]byte, []int)deprecated
- func (x *Admin) GetActive() bool
- func (x *Admin) GetAvatar() []byte
- func (x *Admin) GetEmail() string
- func (x *Admin) GetFirstName() string
- func (x *Admin) GetId() string
- func (x *Admin) GetKey() string
- func (x *Admin) GetLastName() string
- func (x *Admin) GetNotes() string
- func (x *Admin) GetPasswordHash() []byte
- func (x *Admin) GetRev() string
- func (x *Admin) GetRole() Role
- func (x *Admin) GetScopes() map[string]Scope
- func (msg *Admin) MarshalJSON() ([]byte, error)
- func (*Admin) ProtoMessage()
- func (x *Admin) ProtoReflect() protoreflect.Message
- func (x *Admin) Reset()
- func (x *Admin) String() string
- func (msg *Admin) UnmarshalJSON(b []byte) error
- type AdminCreatedPayload
- func (*AdminCreatedPayload) Descriptor() ([]byte, []int)deprecated
- func (x *AdminCreatedPayload) GetAdminKey() string
- func (x *AdminCreatedPayload) GetElement() *anypb.Any
- func (x *AdminCreatedPayload) GetKey() string
- func (msg *AdminCreatedPayload) MarshalJSON() ([]byte, error)
- func (*AdminCreatedPayload) ProtoMessage()
- func (x *AdminCreatedPayload) ProtoReflect() protoreflect.Message
- func (x *AdminCreatedPayload) Reset()
- func (x *AdminCreatedPayload) String() string
- func (msg *AdminCreatedPayload) UnmarshalJSON(b []byte) error
- type AdminDeletedPayload
- func (*AdminDeletedPayload) Descriptor() ([]byte, []int)deprecated
- func (x *AdminDeletedPayload) GetAdminKey() string
- func (x *AdminDeletedPayload) GetKey() string
- func (msg *AdminDeletedPayload) MarshalJSON() ([]byte, error)
- func (*AdminDeletedPayload) ProtoMessage()
- func (x *AdminDeletedPayload) ProtoReflect() protoreflect.Message
- func (x *AdminDeletedPayload) Reset()
- func (x *AdminDeletedPayload) String() string
- func (msg *AdminDeletedPayload) UnmarshalJSON(b []byte) error
- type AdminReplacedPayload
- func (*AdminReplacedPayload) Descriptor() ([]byte, []int)deprecated
- func (x *AdminReplacedPayload) GetAdminKey() string
- func (x *AdminReplacedPayload) GetElement() *anypb.Any
- func (msg *AdminReplacedPayload) MarshalJSON() ([]byte, error)
- func (*AdminReplacedPayload) ProtoMessage()
- func (x *AdminReplacedPayload) ProtoReflect() protoreflect.Message
- func (x *AdminReplacedPayload) Reset()
- func (x *AdminReplacedPayload) String() string
- func (msg *AdminReplacedPayload) UnmarshalJSON(b []byte) error
- type AdminUpdatedPayload
- func (*AdminUpdatedPayload) Descriptor() ([]byte, []int)deprecated
- func (x *AdminUpdatedPayload) GetAdminKey() string
- func (x *AdminUpdatedPayload) GetElement() *anypb.Any
- func (msg *AdminUpdatedPayload) MarshalJSON() ([]byte, error)
- func (*AdminUpdatedPayload) ProtoMessage()
- func (x *AdminUpdatedPayload) ProtoReflect() protoreflect.Message
- func (x *AdminUpdatedPayload) Reset()
- func (x *AdminUpdatedPayload) String() string
- func (msg *AdminUpdatedPayload) UnmarshalJSON(b []byte) error
- 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,json=_key,proto3" json:"key,omitempty"` // id represents the unique object identifier of the admin Id string `protobuf:"bytes,2,opt,name=id,json=_id,proto3" json:"id,omitempty"` // rev represents the revision of the admin Rev string `protobuf:"bytes,3,opt,name=rev,json=_rev,proto3" json:"rev,omitempty"` // first name of the admin FirstName string `protobuf:"bytes,4,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` // last name of the admin LastName string `protobuf:"bytes,5,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` // unique email of the admin Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"` // password_hash is the hashed password of the admin PasswordHash []byte `protobuf:"bytes,7,opt,name=password_hash,json=passwordHash,proto3" json:"password_hash,omitempty"` // avatar image associated to the avatar Avatar []byte `protobuf:"bytes,8,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"` // notes associated to the admin Notes *string `protobuf:"bytes,9,opt,name=notes,proto3,oneof" json:"notes,omitempty"` // active is the active status of the admin Active bool `protobuf:"varint,10,opt,name=active,proto3" json:"active,omitempty"` // role of the admin Role Role `protobuf:"varint,11,opt,name=role,proto3,enum=account.v1.Role" json:"role,omitempty"` // scopes that the admin contains for each model Scopes map[string]Scope `` /* 163-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) MarshalJSON ¶ added in v0.7.0
MarshalJSON implements json.Marshaler
func (*Admin) ProtoMessage ¶
func (*Admin) ProtoMessage()
func (*Admin) ProtoReflect ¶
func (x *Admin) ProtoReflect() protoreflect.Message
func (*Admin) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
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"` AdminKey string `protobuf:"bytes,3,opt,name=admin_key,json=adminKey,proto3" json:"admin_key,omitempty"` // contains filtered or unexported fields }
func (*AdminCreatedPayload) Descriptor
deprecated
func (*AdminCreatedPayload) Descriptor() ([]byte, []int)
Deprecated: Use AdminCreatedPayload.ProtoReflect.Descriptor instead.
func (*AdminCreatedPayload) GetAdminKey ¶ added in v0.6.7
func (x *AdminCreatedPayload) GetAdminKey() string
func (*AdminCreatedPayload) GetElement ¶
func (x *AdminCreatedPayload) GetElement() *anypb.Any
func (*AdminCreatedPayload) GetKey ¶
func (x *AdminCreatedPayload) GetKey() string
func (*AdminCreatedPayload) MarshalJSON ¶ added in v0.7.0
func (msg *AdminCreatedPayload) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
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) UnmarshalJSON ¶ added in v0.7.0
func (msg *AdminCreatedPayload) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
type AdminDeletedPayload ¶
type AdminDeletedPayload struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` AdminKey string `protobuf:"bytes,2,opt,name=admin_key,json=adminKey,proto3" json:"admin_key,omitempty"` // contains filtered or unexported fields }
func (*AdminDeletedPayload) Descriptor
deprecated
func (*AdminDeletedPayload) Descriptor() ([]byte, []int)
Deprecated: Use AdminDeletedPayload.ProtoReflect.Descriptor instead.
func (*AdminDeletedPayload) GetAdminKey ¶ added in v0.6.7
func (x *AdminDeletedPayload) GetAdminKey() string
func (*AdminDeletedPayload) GetKey ¶
func (x *AdminDeletedPayload) GetKey() string
func (*AdminDeletedPayload) MarshalJSON ¶ added in v0.7.0
func (msg *AdminDeletedPayload) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
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) UnmarshalJSON ¶ added in v0.7.0
func (msg *AdminDeletedPayload) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
type AdminReplacedPayload ¶
type AdminReplacedPayload struct { Element *anypb.Any `protobuf:"bytes,1,opt,name=element,proto3" json:"element,omitempty"` AdminKey string `protobuf:"bytes,2,opt,name=admin_key,json=adminKey,proto3" json:"admin_key,omitempty"` // contains filtered or unexported fields }
func (*AdminReplacedPayload) Descriptor
deprecated
func (*AdminReplacedPayload) Descriptor() ([]byte, []int)
Deprecated: Use AdminReplacedPayload.ProtoReflect.Descriptor instead.
func (*AdminReplacedPayload) GetAdminKey ¶ added in v0.6.7
func (x *AdminReplacedPayload) GetAdminKey() string
func (*AdminReplacedPayload) GetElement ¶
func (x *AdminReplacedPayload) GetElement() *anypb.Any
func (*AdminReplacedPayload) MarshalJSON ¶ added in v0.7.0
func (msg *AdminReplacedPayload) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
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) UnmarshalJSON ¶ added in v0.7.0
func (msg *AdminReplacedPayload) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
type AdminUpdatedPayload ¶
type AdminUpdatedPayload struct { Element *anypb.Any `protobuf:"bytes,1,opt,name=element,proto3" json:"element,omitempty"` AdminKey string `protobuf:"bytes,2,opt,name=admin_key,json=adminKey,proto3" json:"admin_key,omitempty"` // contains filtered or unexported fields }
func (*AdminUpdatedPayload) Descriptor
deprecated
func (*AdminUpdatedPayload) Descriptor() ([]byte, []int)
Deprecated: Use AdminUpdatedPayload.ProtoReflect.Descriptor instead.
func (*AdminUpdatedPayload) GetAdminKey ¶ added in v0.6.7
func (x *AdminUpdatedPayload) GetAdminKey() string
func (*AdminUpdatedPayload) GetElement ¶
func (x *AdminUpdatedPayload) GetElement() *anypb.Any
func (*AdminUpdatedPayload) MarshalJSON ¶ added in v0.7.0
func (msg *AdminUpdatedPayload) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
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) UnmarshalJSON ¶ added in v0.7.0
func (msg *AdminUpdatedPayload) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
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