common

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SuperuserPermission = "superuser"
)

Variables

View Source
var File_resources_common_i18n_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type IDocumentCategory

type IDocumentCategory interface {
	GetCategoryId() uint64
	SetCategory(*documents.DocumentCategory)
}

type IJobInfo

type IJobInfo interface {
	GetJob() string
	GetJobGrade() int32
	SetJobLabel(label string)
	SetJobGradeLabel(label string)
}

type IJobName

type IJobName interface {
	GetJob() string
	SetJobLabel(label string)
}

type TranslateItem added in v0.6.0

type TranslateItem struct {
	Key        string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Parameters []string `protobuf:"bytes,2,rep,name=parameters,proto3" json:"parameters,omitempty"`
	// contains filtered or unexported fields
}

func (*TranslateItem) Descriptor deprecated added in v0.6.0

func (*TranslateItem) Descriptor() ([]byte, []int)

Deprecated: Use TranslateItem.ProtoReflect.Descriptor instead.

func (*TranslateItem) GetKey added in v0.6.0

func (x *TranslateItem) GetKey() string

func (*TranslateItem) GetParameters added in v0.6.0

func (x *TranslateItem) GetParameters() []string

func (*TranslateItem) ProtoMessage added in v0.6.0

func (*TranslateItem) ProtoMessage()

func (*TranslateItem) ProtoReflect added in v0.6.0

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

func (*TranslateItem) Reset added in v0.6.0

func (x *TranslateItem) Reset()

func (*TranslateItem) Scan added in v0.6.0

func (x *TranslateItem) Scan(value any) error

func (*TranslateItem) String added in v0.6.0

func (x *TranslateItem) String() string

func (*TranslateItem) Validate added in v0.6.0

func (m *TranslateItem) Validate() error

Validate checks the field values on TranslateItem 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 (*TranslateItem) ValidateAll added in v0.6.0

func (m *TranslateItem) ValidateAll() error

ValidateAll checks the field values on TranslateItem 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 TranslateItemMultiError, or nil if none found.

func (*TranslateItem) Value added in v0.6.0

func (x *TranslateItem) Value() (driver.Value, error)

Scan implements driver.Valuer for protobuf TranslateItem.

type TranslateItemMultiError added in v0.6.0

type TranslateItemMultiError []error

TranslateItemMultiError is an error wrapping multiple validation errors returned by TranslateItem.ValidateAll() if the designated constraints aren't met.

func (TranslateItemMultiError) AllErrors added in v0.6.0

func (m TranslateItemMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TranslateItemMultiError) Error added in v0.6.0

func (m TranslateItemMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TranslateItemValidationError added in v0.6.0

type TranslateItemValidationError struct {
	// contains filtered or unexported fields
}

TranslateItemValidationError is the validation error returned by TranslateItem.Validate if the designated constraints aren't met.

func (TranslateItemValidationError) Cause added in v0.6.0

Cause function returns cause value.

func (TranslateItemValidationError) Error added in v0.6.0

Error satisfies the builtin error interface

func (TranslateItemValidationError) ErrorName added in v0.6.0

func (e TranslateItemValidationError) ErrorName() string

ErrorName returns error name.

func (TranslateItemValidationError) Field added in v0.6.0

Field function returns field value.

func (TranslateItemValidationError) Key added in v0.6.0

Key function returns key value.

func (TranslateItemValidationError) Reason added in v0.6.0

Reason function returns reason value.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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