accountv1

package
v0.4.32 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Unlicense Imports: 18 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.

func (*Admin) Validate

func (m *Admin) Validate() error

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

func (m *Admin) ValidateAll() error

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

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

Cause function returns cause value.

func (AdminCreatedPayloadValidationError) Error

Error satisfies the builtin error interface

func (AdminCreatedPayloadValidationError) ErrorName

ErrorName returns error name.

func (AdminCreatedPayloadValidationError) Field

Field function returns field value.

func (AdminCreatedPayloadValidationError) Key

Key function returns key value.

func (AdminCreatedPayloadValidationError) Reason

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

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

Cause function returns cause value.

func (AdminDeletedPayloadValidationError) Error

Error satisfies the builtin error interface

func (AdminDeletedPayloadValidationError) ErrorName

ErrorName returns error name.

func (AdminDeletedPayloadValidationError) Field

Field function returns field value.

func (AdminDeletedPayloadValidationError) Key

Key function returns key value.

func (AdminDeletedPayloadValidationError) Reason

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

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

Cause function returns cause value.

func (AdminReplacedPayloadValidationError) Error

Error satisfies the builtin error interface

func (AdminReplacedPayloadValidationError) ErrorName

ErrorName returns error name.

func (AdminReplacedPayloadValidationError) Field

Field function returns field value.

func (AdminReplacedPayloadValidationError) Key

Key function returns key value.

func (AdminReplacedPayloadValidationError) Reason

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

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

Cause function returns cause value.

func (AdminUpdatedPayloadValidationError) Error

Error satisfies the builtin error interface

func (AdminUpdatedPayloadValidationError) ErrorName

ErrorName returns error name.

func (AdminUpdatedPayloadValidationError) Field

Field function returns field value.

func (AdminUpdatedPayloadValidationError) Key

Key function returns key value.

func (AdminUpdatedPayloadValidationError) Reason

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