accountv1

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

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

Deprecated: Use Admin.ProtoReflect.Descriptor instead.

func (*Admin) GetAvatar

func (x *Admin) GetAvatar() []byte

func (*Admin) GetEmail

func (x *Admin) GetEmail() string

func (*Admin) GetFirstName

func (x *Admin) GetFirstName() string

func (*Admin) GetKey

func (x *Admin) GetKey() string

func (*Admin) GetLastName

func (x *Admin) GetLastName() string

func (*Admin) GetNotes

func (x *Admin) GetNotes() string

func (*Admin) GetPasswordHash

func (x *Admin) GetPasswordHash() []byte

func (*Admin) GetRole

func (x *Admin) GetRole() Role

func (*Admin) GetScopes

func (x *Admin) GetScopes() map[string]Scope

func (*Admin) ProtoMessage

func (*Admin) ProtoMessage()

func (*Admin) ProtoReflect

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

func (*Admin) Reset

func (x *Admin) Reset()

func (*Admin) String

func (x *Admin) String() string

func (*Admin) UnmarshalJSON

func (o *Admin) UnmarshalJSON(b []byte) error

UnmarshalJSON ...

func (*Admin) UnmarshalMap

func (o *Admin) UnmarshalMap(values map[string]interface{})

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
const (
	Role_ROLE_UNSPECIFIED Role = 0
	Role_ROLE_OWNER       Role = 1
	Role_ROLE_MANAGER     Role = 2
)

func (Role) Descriptor

func (Role) Descriptor() protoreflect.EnumDescriptor

func (Role) Enum

func (x Role) Enum() *Role

func (Role) EnumDescriptor deprecated

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

Deprecated: Use Role.Descriptor instead.

func (Role) Number

func (x Role) Number() protoreflect.EnumNumber

func (Role) String

func (x Role) String() string

func (Role) Type

func (Role) Type() protoreflect.EnumType

type Scope

type Scope int32
const (
	Scope_SCOPE_UNSPECIFIED Scope = 0
	Scope_SCOPE_READ        Scope = 1
	Scope_SCOPE_WRITE       Scope = 2
)

func (Scope) Descriptor

func (Scope) Descriptor() protoreflect.EnumDescriptor

func (Scope) Enum

func (x Scope) Enum() *Scope

func (Scope) EnumDescriptor deprecated

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

Deprecated: Use Scope.Descriptor instead.

func (Scope) Number

func (x Scope) Number() protoreflect.EnumNumber

func (Scope) String

func (x Scope) String() string

func (Scope) Type

func (Scope) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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