Documentation ¶
Index ¶
- Constants
- Variables
- type DiscordSyncSettings
- func (*DiscordSyncSettings) Descriptor() ([]byte, []int)deprecated
- func (x *DiscordSyncSettings) GetUserInfoSync() bool
- func (*DiscordSyncSettings) ProtoMessage()
- func (x *DiscordSyncSettings) ProtoReflect() protoreflect.Message
- func (x *DiscordSyncSettings) Reset()
- func (x *DiscordSyncSettings) Scan(value any) error
- func (x *DiscordSyncSettings) String() string
- func (m *DiscordSyncSettings) Validate() error
- func (m *DiscordSyncSettings) ValidateAll() error
- func (x *DiscordSyncSettings) Value() (driver.Value, error)
- type DiscordSyncSettingsMultiError
- type DiscordSyncSettingsValidationError
- func (e DiscordSyncSettingsValidationError) Cause() error
- func (e DiscordSyncSettingsValidationError) Error() string
- func (e DiscordSyncSettingsValidationError) ErrorName() string
- func (e DiscordSyncSettingsValidationError) Field() string
- func (e DiscordSyncSettingsValidationError) Key() bool
- func (e DiscordSyncSettingsValidationError) Reason() string
- type Job
- func (*Job) Descriptor() ([]byte, []int)deprecated
- func (x *Job) GetGrades() []*JobGrade
- func (x *Job) GetJob() string
- func (x *Job) GetLabel() string
- func (x *Job) GetName() string
- func (*Job) ProtoMessage()
- func (x *Job) ProtoReflect() protoreflect.Message
- func (x *Job) Reset()
- func (x *Job) SetJobLabel(label string)
- func (x *Job) String() string
- func (m *Job) Validate() error
- func (m *Job) ValidateAll() error
- type JobGrade
- func (*JobGrade) Descriptor() ([]byte, []int)deprecated
- func (x *JobGrade) GetGrade() int32
- func (x *JobGrade) GetJobName() string
- func (x *JobGrade) GetLabel() string
- func (*JobGrade) ProtoMessage()
- func (x *JobGrade) ProtoReflect() protoreflect.Message
- func (x *JobGrade) Reset()
- func (x *JobGrade) String() string
- func (m *JobGrade) Validate() error
- func (m *JobGrade) ValidateAll() error
- type JobGradeMultiError
- type JobGradeValidationError
- type JobMultiError
- type JobProps
- func (x *JobProps) Default(job string)
- func (*JobProps) Descriptor() ([]byte, []int)deprecated
- func (x *JobProps) GetDiscordGuildId() uint64
- func (x *JobProps) GetDiscordLastSync() *timestamp.Timestamp
- func (x *JobProps) GetDiscordSyncSettings() *DiscordSyncSettings
- func (x *JobProps) GetJob() string
- func (x *JobProps) GetLivemapMarkerColor() string
- func (x *JobProps) GetQuickButtons() *QuickButtons
- func (x *JobProps) GetTheme() string
- func (*JobProps) ProtoMessage()
- func (x *JobProps) ProtoReflect() protoreflect.Message
- func (x *JobProps) Reset()
- func (x *JobProps) String() string
- func (m *JobProps) Validate() error
- func (m *JobProps) ValidateAll() error
- type JobPropsMultiError
- type JobPropsValidationError
- type JobValidationError
- type License
- func (*License) Descriptor() ([]byte, []int)deprecated
- func (x *License) GetLabel() string
- func (x *License) GetType() string
- func (*License) ProtoMessage()
- func (x *License) ProtoReflect() protoreflect.Message
- func (x *License) Reset()
- func (x *License) String() string
- func (m *License) Validate() error
- func (m *License) ValidateAll() error
- type LicenseMultiError
- type LicenseValidationError
- type QuickButtons
- func (*QuickButtons) Descriptor() ([]byte, []int)deprecated
- func (x *QuickButtons) GetBodyCheckup() bool
- func (x *QuickButtons) GetPenaltyCalculator() bool
- func (*QuickButtons) ProtoMessage()
- func (x *QuickButtons) ProtoReflect() protoreflect.Message
- func (x *QuickButtons) Reset()
- func (x *QuickButtons) Scan(value any) error
- func (x *QuickButtons) String() string
- func (m *QuickButtons) Validate() error
- func (m *QuickButtons) ValidateAll() error
- func (x *QuickButtons) Value() (driver.Value, error)
- type QuickButtonsMultiError
- type QuickButtonsValidationError
- func (e QuickButtonsValidationError) Cause() error
- func (e QuickButtonsValidationError) Error() string
- func (e QuickButtonsValidationError) ErrorName() string
- func (e QuickButtonsValidationError) Field() string
- func (e QuickButtonsValidationError) Key() bool
- func (e QuickButtonsValidationError) Reason() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetDateofbirth() string
- func (x *User) GetFirstname() string
- func (x *User) GetHeight() string
- func (x *User) GetIdentifier() string
- func (x *User) GetJob() string
- func (x *User) GetJobGrade() int32
- func (x *User) GetJobGradeLabel() string
- func (x *User) GetJobLabel() string
- func (x *User) GetLastname() string
- func (x *User) GetLicenses() []*License
- func (x *User) GetPhoneNumber() string
- func (x *User) GetPlaytime() int32
- func (x *User) GetProps() *UserProps
- func (x *User) GetSex() string
- func (x *User) GetUserId() int32
- func (x *User) GetVisum() int32
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) SetJob(job string)
- func (x *User) SetJobGrade(grade int32)
- func (x *User) SetJobGradeLabel(label string)
- func (x *User) SetJobLabel(label string)
- func (x *User) String() string
- func (x *User) UserShort() *UserShort
- func (m *User) Validate() error
- func (m *User) ValidateAll() error
- type UserActivity
- func (*UserActivity) Descriptor() ([]byte, []int)deprecated
- func (x *UserActivity) GetCreatedAt() *timestamp.Timestamp
- func (x *UserActivity) GetId() uint64
- func (x *UserActivity) GetKey() string
- func (x *UserActivity) GetNewValue() string
- func (x *UserActivity) GetOldValue() string
- func (x *UserActivity) GetReason() string
- func (x *UserActivity) GetSourceUser() *UserShort
- func (x *UserActivity) GetTargetUser() *UserShort
- func (x *UserActivity) GetType() UserActivityType
- func (*UserActivity) ProtoMessage()
- func (x *UserActivity) ProtoReflect() protoreflect.Message
- func (x *UserActivity) Reset()
- func (m *UserActivity) Sanitize() error
- func (x *UserActivity) String() string
- func (m *UserActivity) Validate() error
- func (m *UserActivity) ValidateAll() error
- type UserActivityMultiError
- type UserActivityType
- func (UserActivityType) Descriptor() protoreflect.EnumDescriptor
- func (x UserActivityType) Enum() *UserActivityType
- func (UserActivityType) EnumDescriptor() ([]byte, []int)deprecated
- func (x UserActivityType) Number() protoreflect.EnumNumber
- func (x UserActivityType) String() string
- func (UserActivityType) Type() protoreflect.EnumType
- type UserActivityValidationError
- func (e UserActivityValidationError) Cause() error
- func (e UserActivityValidationError) Error() string
- func (e UserActivityValidationError) ErrorName() string
- func (e UserActivityValidationError) Field() string
- func (e UserActivityValidationError) Key() bool
- func (e UserActivityValidationError) Reason() string
- type UserMultiError
- type UserProps
- func (*UserProps) Descriptor() ([]byte, []int)deprecated
- func (x *UserProps) GetJob() *Job
- func (x *UserProps) GetJobGrade() *JobGrade
- func (x *UserProps) GetJobGradeNumber() int32
- func (x *UserProps) GetJobName() string
- func (x *UserProps) GetOpenFines() int64
- func (x *UserProps) GetTrafficInfractionPoints() uint32
- func (x *UserProps) GetUserId() int32
- func (x *UserProps) GetWanted() bool
- func (*UserProps) ProtoMessage()
- func (x *UserProps) ProtoReflect() protoreflect.Message
- func (x *UserProps) Reset()
- func (x *UserProps) String() string
- func (m *UserProps) Validate() error
- func (m *UserProps) ValidateAll() error
- type UserPropsMultiError
- type UserPropsValidationError
- type UserShort
- func (*UserShort) Descriptor() ([]byte, []int)deprecated
- func (x *UserShort) GetDateofbirth() string
- func (x *UserShort) GetFirstname() string
- func (x *UserShort) GetIdentifier() string
- func (x *UserShort) GetJob() string
- func (x *UserShort) GetJobGrade() int32
- func (x *UserShort) GetJobGradeLabel() string
- func (x *UserShort) GetJobLabel() string
- func (x *UserShort) GetLastname() string
- func (x *UserShort) GetPhoneNumber() string
- func (x *UserShort) GetUserId() int32
- func (*UserShort) ProtoMessage()
- func (x *UserShort) ProtoReflect() protoreflect.Message
- func (x *UserShort) Reset()
- func (x *UserShort) SetJob(job string)
- func (x *UserShort) SetJobGrade(grade int32)
- func (x *UserShort) SetJobGradeLabel(label string)
- func (x *UserShort) SetJobLabel(label string)
- func (x *UserShort) String() string
- func (m *UserShort) Validate() error
- func (m *UserShort) ValidateAll() error
- type UserShortMultiError
- type UserShortValidationError
- type UserValidationError
Constants ¶
const DefaultLivemapMarkerColor = "5C7AFF"
Variables ¶
var ( UserActivityType_name = map[int32]string{ 0: "USER_ACTIVITY_TYPE_UNSPECIFIED", 1: "USER_ACTIVITY_TYPE_CHANGED", 2: "USER_ACTIVITY_TYPE_MENTIONED", 3: "USER_ACTIVITY_TYPE_CREATED", } UserActivityType_value = map[string]int32{ "USER_ACTIVITY_TYPE_UNSPECIFIED": 0, "USER_ACTIVITY_TYPE_CHANGED": 1, "USER_ACTIVITY_TYPE_MENTIONED": 2, "USER_ACTIVITY_TYPE_CREATED": 3, } )
Enum value maps for UserActivityType.
var File_resources_users_jobs_proto protoreflect.FileDescriptor
var File_resources_users_users_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type DiscordSyncSettings ¶ added in v0.8.11
type DiscordSyncSettings struct { UserInfoSync bool `protobuf:"varint,1,opt,name=user_info_sync,json=userInfoSync,proto3" json:"user_info_sync,omitempty"` // contains filtered or unexported fields }
func (*DiscordSyncSettings) Descriptor
deprecated
added in
v0.8.11
func (*DiscordSyncSettings) Descriptor() ([]byte, []int)
Deprecated: Use DiscordSyncSettings.ProtoReflect.Descriptor instead.
func (*DiscordSyncSettings) GetUserInfoSync ¶ added in v0.8.11
func (x *DiscordSyncSettings) GetUserInfoSync() bool
func (*DiscordSyncSettings) ProtoMessage ¶ added in v0.8.11
func (*DiscordSyncSettings) ProtoMessage()
func (*DiscordSyncSettings) ProtoReflect ¶ added in v0.8.11
func (x *DiscordSyncSettings) ProtoReflect() protoreflect.Message
func (*DiscordSyncSettings) Reset ¶ added in v0.8.11
func (x *DiscordSyncSettings) Reset()
func (*DiscordSyncSettings) Scan ¶ added in v0.8.11
func (x *DiscordSyncSettings) Scan(value any) error
func (*DiscordSyncSettings) String ¶ added in v0.8.11
func (x *DiscordSyncSettings) String() string
func (*DiscordSyncSettings) Validate ¶ added in v0.8.11
func (m *DiscordSyncSettings) Validate() error
Validate checks the field values on DiscordSyncSettings 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 (*DiscordSyncSettings) ValidateAll ¶ added in v0.8.11
func (m *DiscordSyncSettings) ValidateAll() error
ValidateAll checks the field values on DiscordSyncSettings 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 DiscordSyncSettingsMultiError, or nil if none found.
type DiscordSyncSettingsMultiError ¶ added in v0.8.11
type DiscordSyncSettingsMultiError []error
DiscordSyncSettingsMultiError is an error wrapping multiple validation errors returned by DiscordSyncSettings.ValidateAll() if the designated constraints aren't met.
func (DiscordSyncSettingsMultiError) AllErrors ¶ added in v0.8.11
func (m DiscordSyncSettingsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DiscordSyncSettingsMultiError) Error ¶ added in v0.8.11
func (m DiscordSyncSettingsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DiscordSyncSettingsValidationError ¶ added in v0.8.11
type DiscordSyncSettingsValidationError struct {
// contains filtered or unexported fields
}
DiscordSyncSettingsValidationError is the validation error returned by DiscordSyncSettings.Validate if the designated constraints aren't met.
func (DiscordSyncSettingsValidationError) Cause ¶ added in v0.8.11
func (e DiscordSyncSettingsValidationError) Cause() error
Cause function returns cause value.
func (DiscordSyncSettingsValidationError) Error ¶ added in v0.8.11
func (e DiscordSyncSettingsValidationError) Error() string
Error satisfies the builtin error interface
func (DiscordSyncSettingsValidationError) ErrorName ¶ added in v0.8.11
func (e DiscordSyncSettingsValidationError) ErrorName() string
ErrorName returns error name.
func (DiscordSyncSettingsValidationError) Field ¶ added in v0.8.11
func (e DiscordSyncSettingsValidationError) Field() string
Field function returns field value.
func (DiscordSyncSettingsValidationError) Key ¶ added in v0.8.11
func (e DiscordSyncSettingsValidationError) Key() bool
Key function returns key value.
func (DiscordSyncSettingsValidationError) Reason ¶ added in v0.8.11
func (e DiscordSyncSettingsValidationError) Reason() string
Reason function returns reason value.
type Job ¶ added in v0.8.0
type Job struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" sql:"primary_key" alias:"name"` // @gotags: sql:"primary_key" alias:"name" Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` Grades []*JobGrade `protobuf:"bytes,3,rep,name=grades,proto3" json:"grades,omitempty"` // contains filtered or unexported fields }
func (*Job) Descriptor
deprecated
added in
v0.8.0
func (*Job) ProtoMessage ¶ added in v0.8.0
func (*Job) ProtoMessage()
func (*Job) ProtoReflect ¶ added in v0.8.0
func (x *Job) ProtoReflect() protoreflect.Message
func (*Job) SetJobLabel ¶ added in v0.8.0
func (*Job) Validate ¶ added in v0.8.0
Validate checks the field values on Job 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 (*Job) ValidateAll ¶ added in v0.8.0
ValidateAll checks the field values on Job 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 JobMultiError, or nil if none found.
type JobGrade ¶ added in v0.8.0
type JobGrade struct { JobName *string `protobuf:"bytes,1,opt,name=job_name,json=jobName,proto3,oneof" json:"job_name,omitempty"` Grade int32 `protobuf:"varint,2,opt,name=grade,proto3" json:"grade,omitempty"` Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"` // contains filtered or unexported fields }
func (*JobGrade) Descriptor
deprecated
added in
v0.8.0
func (*JobGrade) GetJobName ¶ added in v0.8.0
func (*JobGrade) ProtoMessage ¶ added in v0.8.0
func (*JobGrade) ProtoMessage()
func (*JobGrade) ProtoReflect ¶ added in v0.8.0
func (x *JobGrade) ProtoReflect() protoreflect.Message
func (*JobGrade) Validate ¶ added in v0.8.0
Validate checks the field values on JobGrade 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 (*JobGrade) ValidateAll ¶ added in v0.8.0
ValidateAll checks the field values on JobGrade 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 JobGradeMultiError, or nil if none found.
type JobGradeMultiError ¶ added in v0.8.0
type JobGradeMultiError []error
JobGradeMultiError is an error wrapping multiple validation errors returned by JobGrade.ValidateAll() if the designated constraints aren't met.
func (JobGradeMultiError) AllErrors ¶ added in v0.8.0
func (m JobGradeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (JobGradeMultiError) Error ¶ added in v0.8.0
func (m JobGradeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type JobGradeValidationError ¶ added in v0.8.0
type JobGradeValidationError struct {
// contains filtered or unexported fields
}
JobGradeValidationError is the validation error returned by JobGrade.Validate if the designated constraints aren't met.
func (JobGradeValidationError) Cause ¶ added in v0.8.0
func (e JobGradeValidationError) Cause() error
Cause function returns cause value.
func (JobGradeValidationError) Error ¶ added in v0.8.0
func (e JobGradeValidationError) Error() string
Error satisfies the builtin error interface
func (JobGradeValidationError) ErrorName ¶ added in v0.8.0
func (e JobGradeValidationError) ErrorName() string
ErrorName returns error name.
func (JobGradeValidationError) Field ¶ added in v0.8.0
func (e JobGradeValidationError) Field() string
Field function returns field value.
func (JobGradeValidationError) Key ¶ added in v0.8.0
func (e JobGradeValidationError) Key() bool
Key function returns key value.
func (JobGradeValidationError) Reason ¶ added in v0.8.0
func (e JobGradeValidationError) Reason() string
Reason function returns reason value.
type JobMultiError ¶ added in v0.8.0
type JobMultiError []error
JobMultiError is an error wrapping multiple validation errors returned by Job.ValidateAll() if the designated constraints aren't met.
func (JobMultiError) AllErrors ¶ added in v0.8.0
func (m JobMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (JobMultiError) Error ¶ added in v0.8.0
func (m JobMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type JobProps ¶ added in v0.8.0
type JobProps struct { Job string `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` Theme string `protobuf:"bytes,2,opt,name=theme,proto3" json:"theme,omitempty"` LivemapMarkerColor string `protobuf:"bytes,3,opt,name=livemap_marker_color,json=livemapMarkerColor,proto3" json:"livemap_marker_color,omitempty"` QuickButtons *QuickButtons `protobuf:"bytes,4,opt,name=quick_buttons,json=quickButtons,proto3" json:"quick_buttons,omitempty"` DiscordGuildId *uint64 `protobuf:"varint,5,opt,name=discord_guild_id,json=discordGuildId,proto3,oneof" json:"discord_guild_id,omitempty"` DiscordLastSync *timestamp.Timestamp `protobuf:"bytes,6,opt,name=discord_last_sync,json=discordLastSync,proto3,oneof" json:"discord_last_sync,omitempty"` DiscordSyncSettings *DiscordSyncSettings `protobuf:"bytes,7,opt,name=discord_sync_settings,json=discordSyncSettings,proto3" json:"discord_sync_settings,omitempty"` // contains filtered or unexported fields }
func (*JobProps) Descriptor
deprecated
added in
v0.8.0
func (*JobProps) GetDiscordGuildId ¶ added in v0.8.0
func (*JobProps) GetDiscordLastSync ¶ added in v0.8.10
func (*JobProps) GetDiscordSyncSettings ¶ added in v0.8.11
func (x *JobProps) GetDiscordSyncSettings() *DiscordSyncSettings
func (*JobProps) GetLivemapMarkerColor ¶ added in v0.8.0
func (*JobProps) GetQuickButtons ¶ added in v0.8.0
func (x *JobProps) GetQuickButtons() *QuickButtons
func (*JobProps) ProtoMessage ¶ added in v0.8.0
func (*JobProps) ProtoMessage()
func (*JobProps) ProtoReflect ¶ added in v0.8.0
func (x *JobProps) ProtoReflect() protoreflect.Message
func (*JobProps) Validate ¶ added in v0.8.0
Validate checks the field values on JobProps 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 (*JobProps) ValidateAll ¶ added in v0.8.0
ValidateAll checks the field values on JobProps 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 JobPropsMultiError, or nil if none found.
type JobPropsMultiError ¶ added in v0.8.0
type JobPropsMultiError []error
JobPropsMultiError is an error wrapping multiple validation errors returned by JobProps.ValidateAll() if the designated constraints aren't met.
func (JobPropsMultiError) AllErrors ¶ added in v0.8.0
func (m JobPropsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (JobPropsMultiError) Error ¶ added in v0.8.0
func (m JobPropsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type JobPropsValidationError ¶ added in v0.8.0
type JobPropsValidationError struct {
// contains filtered or unexported fields
}
JobPropsValidationError is the validation error returned by JobProps.Validate if the designated constraints aren't met.
func (JobPropsValidationError) Cause ¶ added in v0.8.0
func (e JobPropsValidationError) Cause() error
Cause function returns cause value.
func (JobPropsValidationError) Error ¶ added in v0.8.0
func (e JobPropsValidationError) Error() string
Error satisfies the builtin error interface
func (JobPropsValidationError) ErrorName ¶ added in v0.8.0
func (e JobPropsValidationError) ErrorName() string
ErrorName returns error name.
func (JobPropsValidationError) Field ¶ added in v0.8.0
func (e JobPropsValidationError) Field() string
Field function returns field value.
func (JobPropsValidationError) Key ¶ added in v0.8.0
func (e JobPropsValidationError) Key() bool
Key function returns key value.
func (JobPropsValidationError) Reason ¶ added in v0.8.0
func (e JobPropsValidationError) Reason() string
Reason function returns reason value.
type JobValidationError ¶ added in v0.8.0
type JobValidationError struct {
// contains filtered or unexported fields
}
JobValidationError is the validation error returned by Job.Validate if the designated constraints aren't met.
func (JobValidationError) Cause ¶ added in v0.8.0
func (e JobValidationError) Cause() error
Cause function returns cause value.
func (JobValidationError) Error ¶ added in v0.8.0
func (e JobValidationError) Error() string
Error satisfies the builtin error interface
func (JobValidationError) ErrorName ¶ added in v0.8.0
func (e JobValidationError) ErrorName() string
ErrorName returns error name.
func (JobValidationError) Field ¶ added in v0.8.0
func (e JobValidationError) Field() string
Field function returns field value.
func (JobValidationError) Key ¶ added in v0.8.0
func (e JobValidationError) Key() bool
Key function returns key value.
func (JobValidationError) Reason ¶ added in v0.8.0
func (e JobValidationError) Reason() string
Reason function returns reason value.
type License ¶
type License struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` // contains filtered or unexported fields }
func (*License) Descriptor
deprecated
func (*License) ProtoMessage ¶
func (*License) ProtoMessage()
func (*License) ProtoReflect ¶
func (x *License) ProtoReflect() protoreflect.Message
func (*License) Validate ¶
Validate checks the field values on License 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 (*License) ValidateAll ¶
ValidateAll checks the field values on License 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 LicenseMultiError, or nil if none found.
type LicenseMultiError ¶
type LicenseMultiError []error
LicenseMultiError is an error wrapping multiple validation errors returned by License.ValidateAll() if the designated constraints aren't met.
func (LicenseMultiError) AllErrors ¶
func (m LicenseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LicenseMultiError) Error ¶
func (m LicenseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LicenseValidationError ¶
type LicenseValidationError struct {
// contains filtered or unexported fields
}
LicenseValidationError is the validation error returned by License.Validate if the designated constraints aren't met.
func (LicenseValidationError) Cause ¶
func (e LicenseValidationError) Cause() error
Cause function returns cause value.
func (LicenseValidationError) Error ¶
func (e LicenseValidationError) Error() string
Error satisfies the builtin error interface
func (LicenseValidationError) ErrorName ¶
func (e LicenseValidationError) ErrorName() string
ErrorName returns error name.
func (LicenseValidationError) Field ¶
func (e LicenseValidationError) Field() string
Field function returns field value.
func (LicenseValidationError) Key ¶
func (e LicenseValidationError) Key() bool
Key function returns key value.
func (LicenseValidationError) Reason ¶
func (e LicenseValidationError) Reason() string
Reason function returns reason value.
type QuickButtons ¶ added in v0.8.11
type QuickButtons struct { PenaltyCalculator bool `protobuf:"varint,1,opt,name=penalty_calculator,json=penaltyCalculator,proto3" json:"penalty_calculator,omitempty"` BodyCheckup bool `protobuf:"varint,2,opt,name=body_checkup,json=bodyCheckup,proto3" json:"body_checkup,omitempty"` // contains filtered or unexported fields }
func (*QuickButtons) Descriptor
deprecated
added in
v0.8.11
func (*QuickButtons) Descriptor() ([]byte, []int)
Deprecated: Use QuickButtons.ProtoReflect.Descriptor instead.
func (*QuickButtons) GetBodyCheckup ¶ added in v0.8.11
func (x *QuickButtons) GetBodyCheckup() bool
func (*QuickButtons) GetPenaltyCalculator ¶ added in v0.8.11
func (x *QuickButtons) GetPenaltyCalculator() bool
func (*QuickButtons) ProtoMessage ¶ added in v0.8.11
func (*QuickButtons) ProtoMessage()
func (*QuickButtons) ProtoReflect ¶ added in v0.8.11
func (x *QuickButtons) ProtoReflect() protoreflect.Message
func (*QuickButtons) Reset ¶ added in v0.8.11
func (x *QuickButtons) Reset()
func (*QuickButtons) Scan ¶ added in v0.8.11
func (x *QuickButtons) Scan(value any) error
func (*QuickButtons) String ¶ added in v0.8.11
func (x *QuickButtons) String() string
func (*QuickButtons) Validate ¶ added in v0.8.11
func (m *QuickButtons) Validate() error
Validate checks the field values on QuickButtons 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 (*QuickButtons) ValidateAll ¶ added in v0.8.11
func (m *QuickButtons) ValidateAll() error
ValidateAll checks the field values on QuickButtons 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 QuickButtonsMultiError, or nil if none found.
type QuickButtonsMultiError ¶ added in v0.8.11
type QuickButtonsMultiError []error
QuickButtonsMultiError is an error wrapping multiple validation errors returned by QuickButtons.ValidateAll() if the designated constraints aren't met.
func (QuickButtonsMultiError) AllErrors ¶ added in v0.8.11
func (m QuickButtonsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (QuickButtonsMultiError) Error ¶ added in v0.8.11
func (m QuickButtonsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type QuickButtonsValidationError ¶ added in v0.8.11
type QuickButtonsValidationError struct {
// contains filtered or unexported fields
}
QuickButtonsValidationError is the validation error returned by QuickButtons.Validate if the designated constraints aren't met.
func (QuickButtonsValidationError) Cause ¶ added in v0.8.11
func (e QuickButtonsValidationError) Cause() error
Cause function returns cause value.
func (QuickButtonsValidationError) Error ¶ added in v0.8.11
func (e QuickButtonsValidationError) Error() string
Error satisfies the builtin error interface
func (QuickButtonsValidationError) ErrorName ¶ added in v0.8.11
func (e QuickButtonsValidationError) ErrorName() string
ErrorName returns error name.
func (QuickButtonsValidationError) Field ¶ added in v0.8.11
func (e QuickButtonsValidationError) Field() string
Field function returns field value.
func (QuickButtonsValidationError) Key ¶ added in v0.8.11
func (e QuickButtonsValidationError) Key() bool
Key function returns key value.
func (QuickButtonsValidationError) Reason ¶ added in v0.8.11
func (e QuickButtonsValidationError) Reason() string
Reason function returns reason value.
type User ¶
type User struct { UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" alias:"id"` // @gotags: alias:"id" Identifier string `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"` Job string `protobuf:"bytes,3,opt,name=job,proto3" json:"job,omitempty"` JobLabel *string `protobuf:"bytes,4,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` JobGrade int32 `protobuf:"varint,5,opt,name=job_grade,json=jobGrade,proto3" json:"job_grade,omitempty"` JobGradeLabel *string `protobuf:"bytes,6,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` Firstname string `protobuf:"bytes,7,opt,name=firstname,proto3" json:"firstname,omitempty"` Lastname string `protobuf:"bytes,8,opt,name=lastname,proto3" json:"lastname,omitempty"` Dateofbirth string `protobuf:"bytes,9,opt,name=dateofbirth,proto3" json:"dateofbirth,omitempty"` Sex *string `protobuf:"bytes,10,opt,name=sex,proto3,oneof" json:"sex,omitempty"` Height *string `protobuf:"bytes,11,opt,name=height,proto3,oneof" json:"height,omitempty"` PhoneNumber *string `protobuf:"bytes,12,opt,name=phone_number,json=phoneNumber,proto3,oneof" json:"phone_number,omitempty"` Visum *int32 `protobuf:"varint,13,opt,name=visum,proto3,oneof" json:"visum,omitempty"` Playtime *int32 `protobuf:"varint,14,opt,name=playtime,proto3,oneof" json:"playtime,omitempty"` Props *UserProps `protobuf:"bytes,15,opt,name=props,proto3" json:"props,omitempty" alias:"fivenet_user_props"` // @gotags: alias:"fivenet_user_props" Licenses []*License `protobuf:"bytes,16,rep,name=licenses,proto3" json:"licenses,omitempty" alias:"user_licenses"` // @gotags: alias:"user_licenses" // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetDateofbirth ¶
func (*User) GetFirstname ¶
func (*User) GetIdentifier ¶
func (*User) GetJobGrade ¶
func (*User) GetJobGradeLabel ¶
func (*User) GetJobLabel ¶
func (*User) GetLastname ¶
func (*User) GetLicenses ¶
func (*User) GetPhoneNumber ¶
func (*User) GetPlaytime ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
func (*User) SetJobGrade ¶ added in v0.8.6
func (*User) SetJobGradeLabel ¶
func (*User) SetJobLabel ¶
func (*User) Validate ¶
Validate checks the field values on User 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 (*User) ValidateAll ¶
ValidateAll checks the field values on User 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 UserMultiError, or nil if none found.
type UserActivity ¶
type UserActivity struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" alias:"fivenet_user_activity.id"` // @gotags: alias:"fivenet_user_activity.id" Type UserActivityType `` // @gotags: alias:"fivenet_user_activity.type" /* 135-byte string literal not displayed */ CreatedAt *timestamp.Timestamp `` // @gotags: alias:"fivenet_user_activity.created_at" /* 129-byte string literal not displayed */ SourceUser *UserShort `protobuf:"bytes,4,opt,name=source_user,json=sourceUser,proto3" json:"source_user,omitempty" alias:"source_user"` // @gotags: alias:"source_user" TargetUser *UserShort `protobuf:"bytes,5,opt,name=target_user,json=targetUser,proto3" json:"target_user,omitempty" alias:"target_user"` // @gotags: alias:"target_user" // @sanitize Key string `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty" alias:"fivenet_user_activity.key"` // @gotags: alias:"fivenet_user_activity.key" OldValue string `protobuf:"bytes,7,opt,name=old_value,json=oldValue,proto3" json:"old_value,omitempty" alias:"fivenet_user_activity.old_value"` // @gotags: alias:"fivenet_user_activity.old_value" NewValue string `protobuf:"bytes,8,opt,name=new_value,json=newValue,proto3" json:"new_value,omitempty" alias:"fivenet_user_activity.new_value"` // @gotags: alias:"fivenet_user_activity.new_value" // @sanitize Reason string `protobuf:"bytes,9,opt,name=reason,proto3" json:"reason,omitempty" alias:"fivenet_user_activity.reason"` // @gotags: alias:"fivenet_user_activity.reason" // contains filtered or unexported fields }
func (*UserActivity) Descriptor
deprecated
func (*UserActivity) Descriptor() ([]byte, []int)
Deprecated: Use UserActivity.ProtoReflect.Descriptor instead.
func (*UserActivity) GetCreatedAt ¶
func (x *UserActivity) GetCreatedAt() *timestamp.Timestamp
func (*UserActivity) GetId ¶
func (x *UserActivity) GetId() uint64
func (*UserActivity) GetKey ¶
func (x *UserActivity) GetKey() string
func (*UserActivity) GetNewValue ¶
func (x *UserActivity) GetNewValue() string
func (*UserActivity) GetOldValue ¶
func (x *UserActivity) GetOldValue() string
func (*UserActivity) GetReason ¶
func (x *UserActivity) GetReason() string
func (*UserActivity) GetSourceUser ¶
func (x *UserActivity) GetSourceUser() *UserShort
func (*UserActivity) GetTargetUser ¶
func (x *UserActivity) GetTargetUser() *UserShort
func (*UserActivity) GetType ¶
func (x *UserActivity) GetType() UserActivityType
func (*UserActivity) ProtoMessage ¶
func (*UserActivity) ProtoMessage()
func (*UserActivity) ProtoReflect ¶
func (x *UserActivity) ProtoReflect() protoreflect.Message
func (*UserActivity) Reset ¶
func (x *UserActivity) Reset()
func (*UserActivity) Sanitize ¶ added in v0.8.1
func (m *UserActivity) Sanitize() error
func (*UserActivity) String ¶
func (x *UserActivity) String() string
func (*UserActivity) Validate ¶
func (m *UserActivity) Validate() error
Validate checks the field values on UserActivity 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 (*UserActivity) ValidateAll ¶
func (m *UserActivity) ValidateAll() error
ValidateAll checks the field values on UserActivity 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 UserActivityMultiError, or nil if none found.
type UserActivityMultiError ¶
type UserActivityMultiError []error
UserActivityMultiError is an error wrapping multiple validation errors returned by UserActivity.ValidateAll() if the designated constraints aren't met.
func (UserActivityMultiError) AllErrors ¶
func (m UserActivityMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserActivityMultiError) Error ¶
func (m UserActivityMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserActivityType ¶ added in v0.8.3
type UserActivityType int32
const ( UserActivityType_USER_ACTIVITY_TYPE_UNSPECIFIED UserActivityType = 0 UserActivityType_USER_ACTIVITY_TYPE_CHANGED UserActivityType = 1 UserActivityType_USER_ACTIVITY_TYPE_MENTIONED UserActivityType = 2 UserActivityType_USER_ACTIVITY_TYPE_CREATED UserActivityType = 3 )
func (UserActivityType) Descriptor ¶ added in v0.8.3
func (UserActivityType) Descriptor() protoreflect.EnumDescriptor
func (UserActivityType) Enum ¶ added in v0.8.3
func (x UserActivityType) Enum() *UserActivityType
func (UserActivityType) EnumDescriptor
deprecated
added in
v0.8.3
func (UserActivityType) EnumDescriptor() ([]byte, []int)
Deprecated: Use UserActivityType.Descriptor instead.
func (UserActivityType) Number ¶ added in v0.8.3
func (x UserActivityType) Number() protoreflect.EnumNumber
func (UserActivityType) String ¶ added in v0.8.3
func (x UserActivityType) String() string
func (UserActivityType) Type ¶ added in v0.8.3
func (UserActivityType) Type() protoreflect.EnumType
type UserActivityValidationError ¶
type UserActivityValidationError struct {
// contains filtered or unexported fields
}
UserActivityValidationError is the validation error returned by UserActivity.Validate if the designated constraints aren't met.
func (UserActivityValidationError) Cause ¶
func (e UserActivityValidationError) Cause() error
Cause function returns cause value.
func (UserActivityValidationError) Error ¶
func (e UserActivityValidationError) Error() string
Error satisfies the builtin error interface
func (UserActivityValidationError) ErrorName ¶
func (e UserActivityValidationError) ErrorName() string
ErrorName returns error name.
func (UserActivityValidationError) Field ¶
func (e UserActivityValidationError) Field() string
Field function returns field value.
func (UserActivityValidationError) Key ¶
func (e UserActivityValidationError) Key() bool
Key function returns key value.
func (UserActivityValidationError) Reason ¶
func (e UserActivityValidationError) Reason() string
Reason function returns reason value.
type UserMultiError ¶
type UserMultiError []error
UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.
func (UserMultiError) AllErrors ¶
func (m UserMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserMultiError) Error ¶
func (m UserMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserProps ¶
type UserProps struct { UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Wanted *bool `protobuf:"varint,2,opt,name=wanted,proto3,oneof" json:"wanted,omitempty"` JobName *string `protobuf:"bytes,3,opt,name=job_name,json=jobName,proto3,oneof" json:"job_name,omitempty" alias:"job"` // @gotags: alias:"job" Job *Job `protobuf:"bytes,4,opt,name=job,proto3,oneof" json:"job,omitempty"` JobGradeNumber *int32 `` // @gotags: alias:"job_grade" /* 130-byte string literal not displayed */ JobGrade *JobGrade `protobuf:"bytes,6,opt,name=job_grade,json=jobGrade,proto3,oneof" json:"job_grade,omitempty"` TrafficInfractionPoints *uint32 `` /* 139-byte string literal not displayed */ OpenFines *int64 `protobuf:"varint,8,opt,name=open_fines,json=openFines,proto3,oneof" json:"open_fines,omitempty"` // contains filtered or unexported fields }
func (*UserProps) Descriptor
deprecated
func (*UserProps) GetJobGrade ¶ added in v0.5.1
func (*UserProps) GetJobGradeNumber ¶ added in v0.5.1
func (*UserProps) GetJobName ¶
func (*UserProps) GetOpenFines ¶ added in v0.7.3
func (*UserProps) GetTrafficInfractionPoints ¶ added in v0.6.5
func (*UserProps) ProtoMessage ¶
func (*UserProps) ProtoMessage()
func (*UserProps) ProtoReflect ¶
func (x *UserProps) ProtoReflect() protoreflect.Message
func (*UserProps) Validate ¶
Validate checks the field values on UserProps 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 (*UserProps) ValidateAll ¶
ValidateAll checks the field values on UserProps 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 UserPropsMultiError, or nil if none found.
type UserPropsMultiError ¶
type UserPropsMultiError []error
UserPropsMultiError is an error wrapping multiple validation errors returned by UserProps.ValidateAll() if the designated constraints aren't met.
func (UserPropsMultiError) AllErrors ¶
func (m UserPropsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserPropsMultiError) Error ¶
func (m UserPropsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserPropsValidationError ¶
type UserPropsValidationError struct {
// contains filtered or unexported fields
}
UserPropsValidationError is the validation error returned by UserProps.Validate if the designated constraints aren't met.
func (UserPropsValidationError) Cause ¶
func (e UserPropsValidationError) Cause() error
Cause function returns cause value.
func (UserPropsValidationError) Error ¶
func (e UserPropsValidationError) Error() string
Error satisfies the builtin error interface
func (UserPropsValidationError) ErrorName ¶
func (e UserPropsValidationError) ErrorName() string
ErrorName returns error name.
func (UserPropsValidationError) Field ¶
func (e UserPropsValidationError) Field() string
Field function returns field value.
func (UserPropsValidationError) Key ¶
func (e UserPropsValidationError) Key() bool
Key function returns key value.
func (UserPropsValidationError) Reason ¶
func (e UserPropsValidationError) Reason() string
Reason function returns reason value.
type UserShort ¶
type UserShort struct { UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" alias:"id"` // @gotags: alias:"id" Identifier string `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"` Job string `protobuf:"bytes,3,opt,name=job,proto3" json:"job,omitempty"` JobLabel *string `protobuf:"bytes,4,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"` JobGrade int32 `protobuf:"varint,5,opt,name=job_grade,json=jobGrade,proto3" json:"job_grade,omitempty"` JobGradeLabel *string `protobuf:"bytes,6,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"` Firstname string `protobuf:"bytes,7,opt,name=firstname,proto3" json:"firstname,omitempty"` Lastname string `protobuf:"bytes,8,opt,name=lastname,proto3" json:"lastname,omitempty"` Dateofbirth string `protobuf:"bytes,9,opt,name=dateofbirth,proto3" json:"dateofbirth,omitempty"` PhoneNumber *string `protobuf:"bytes,12,opt,name=phone_number,json=phoneNumber,proto3,oneof" json:"phone_number,omitempty"` // contains filtered or unexported fields }
func (*UserShort) Descriptor
deprecated
func (*UserShort) GetDateofbirth ¶ added in v0.7.3
func (*UserShort) GetFirstname ¶
func (*UserShort) GetIdentifier ¶
func (*UserShort) GetJobGrade ¶
func (*UserShort) GetJobGradeLabel ¶
func (*UserShort) GetJobLabel ¶
func (*UserShort) GetLastname ¶
func (*UserShort) GetPhoneNumber ¶ added in v0.8.1
func (*UserShort) ProtoMessage ¶
func (*UserShort) ProtoMessage()
func (*UserShort) ProtoReflect ¶
func (x *UserShort) ProtoReflect() protoreflect.Message
func (*UserShort) SetJobGrade ¶ added in v0.8.6
func (*UserShort) SetJobGradeLabel ¶
func (*UserShort) SetJobLabel ¶
func (*UserShort) Validate ¶
Validate checks the field values on UserShort 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 (*UserShort) ValidateAll ¶
ValidateAll checks the field values on UserShort 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 UserShortMultiError, or nil if none found.
type UserShortMultiError ¶
type UserShortMultiError []error
UserShortMultiError is an error wrapping multiple validation errors returned by UserShort.ValidateAll() if the designated constraints aren't met.
func (UserShortMultiError) AllErrors ¶
func (m UserShortMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserShortMultiError) Error ¶
func (m UserShortMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserShortValidationError ¶
type UserShortValidationError struct {
// contains filtered or unexported fields
}
UserShortValidationError is the validation error returned by UserShort.Validate if the designated constraints aren't met.
func (UserShortValidationError) Cause ¶
func (e UserShortValidationError) Cause() error
Cause function returns cause value.
func (UserShortValidationError) Error ¶
func (e UserShortValidationError) Error() string
Error satisfies the builtin error interface
func (UserShortValidationError) ErrorName ¶
func (e UserShortValidationError) ErrorName() string
ErrorName returns error name.
func (UserShortValidationError) Field ¶
func (e UserShortValidationError) Field() string
Field function returns field value.
func (UserShortValidationError) Key ¶
func (e UserShortValidationError) Key() bool
Key function returns key value.
func (UserShortValidationError) Reason ¶
func (e UserShortValidationError) Reason() string
Reason function returns reason value.
type UserValidationError ¶
type UserValidationError struct {
// contains filtered or unexported fields
}
UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.
func (UserValidationError) Cause ¶
func (e UserValidationError) Cause() error
Cause function returns cause value.
func (UserValidationError) Error ¶
func (e UserValidationError) Error() string
Error satisfies the builtin error interface
func (UserValidationError) ErrorName ¶
func (e UserValidationError) ErrorName() string
ErrorName returns error name.
func (UserValidationError) Field ¶
func (e UserValidationError) Field() string
Field function returns field value.
func (UserValidationError) Key ¶
func (e UserValidationError) Key() bool
Key function returns key value.
func (UserValidationError) Reason ¶
func (e UserValidationError) Reason() string
Reason function returns reason value.