Documentation ¶
Index ¶
- Constants
- Variables
- type IDocumentCategory
- type IJobInfo
- type IJobName
- type TranslateItem
- func (*TranslateItem) Descriptor() ([]byte, []int)deprecated
- func (x *TranslateItem) GetKey() string
- func (x *TranslateItem) GetParameters() []string
- func (*TranslateItem) ProtoMessage()
- func (x *TranslateItem) ProtoReflect() protoreflect.Message
- func (x *TranslateItem) Reset()
- func (x *TranslateItem) Scan(value any) error
- func (x *TranslateItem) String() string
- func (m *TranslateItem) Validate() error
- func (m *TranslateItem) ValidateAll() error
- func (x *TranslateItem) Value() (driver.Value, error)
- type TranslateItemMultiError
- type TranslateItemValidationError
- func (e TranslateItemValidationError) Cause() error
- func (e TranslateItemValidationError) Error() string
- func (e TranslateItemValidationError) ErrorName() string
- func (e TranslateItemValidationError) Field() string
- func (e TranslateItemValidationError) Key() bool
- func (e TranslateItemValidationError) Reason() string
Constants ¶
const (
SuperuserPermission = "superuser"
)
Variables ¶
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 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.
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
func (e TranslateItemValidationError) Cause() error
Cause function returns cause value.
func (TranslateItemValidationError) Error ¶ added in v0.6.0
func (e TranslateItemValidationError) Error() string
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
func (e TranslateItemValidationError) Field() string
Field function returns field value.
func (TranslateItemValidationError) Key ¶ added in v0.6.0
func (e TranslateItemValidationError) Key() bool
Key function returns key value.
func (TranslateItemValidationError) Reason ¶ added in v0.6.0
func (e TranslateItemValidationError) Reason() string
Reason function returns reason value.