common

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const ErrorKeyFormat = "errors.%s.%s"

Variables

View Source
var File_resources_common_i18n_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Error added in v0.8.6

type Error struct {
	Title   string
	Content string
}

type Errors added in v0.8.6

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

func (*Errors) Error added in v0.8.6

func (e *Errors) Error(code codes.Code, name string) error

type ICategory added in v0.8.0

type ICategory interface {
	GetCategoryId() uint64
	SetCategory(*documents.Category)
}

type IJobInfo

type IJobInfo interface {
	GetJob() string
	SetJob(string)
	SetJobLabel(label string)
	GetJobGrade() int32
	SetJobGrade(int32)
	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 map[string]string `` /* 161-byte string literal not displayed */
	// 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() map[string]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

Scan implements driver.Valuer for protobuf TranslateItem.

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)

Value marshals the value into driver.Valuer.

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