Documentation ¶
Index ¶
- Constants
- Variables
- type AppConfig
- func (x *AppConfig) Default()
- func (*AppConfig) Descriptor() ([]byte, []int)deprecated
- func (x *AppConfig) GetAuth() *Auth
- func (x *AppConfig) GetDiscord() *Discord
- func (x *AppConfig) GetJobInfo() *JobInfo
- func (x *AppConfig) GetPerms() *Perms
- func (x *AppConfig) GetUserTracker() *UserTracker
- func (x *AppConfig) GetVersion() string
- func (x *AppConfig) GetWebsite() *Website
- func (*AppConfig) ProtoMessage()
- func (x *AppConfig) ProtoReflect() protoreflect.Message
- func (x *AppConfig) Reset()
- func (x *AppConfig) Scan(value any) error
- func (x *AppConfig) String() string
- func (m *AppConfig) Validate() error
- func (m *AppConfig) ValidateAll() error
- func (x *AppConfig) Value() (driver.Value, error)
- type AppConfigMultiError
- type AppConfigValidationError
- type AuditEntry
- func (*AuditEntry) Descriptor() ([]byte, []int)deprecated
- func (x *AuditEntry) GetCreatedAt() *timestamp.Timestamp
- func (x *AuditEntry) GetData() string
- func (x *AuditEntry) GetId() uint64
- func (x *AuditEntry) GetMethod() string
- func (x *AuditEntry) GetService() string
- func (x *AuditEntry) GetState() EventType
- func (x *AuditEntry) GetTargetUser() *users.UserShort
- func (x *AuditEntry) GetTargetUserId() int32
- func (x *AuditEntry) GetTargetUserJob() string
- func (x *AuditEntry) GetUser() *users.UserShort
- func (x *AuditEntry) GetUserId() uint64
- func (x *AuditEntry) GetUserJob() string
- func (*AuditEntry) ProtoMessage()
- func (x *AuditEntry) ProtoReflect() protoreflect.Message
- func (x *AuditEntry) Reset()
- func (x *AuditEntry) String() string
- func (m *AuditEntry) Validate() error
- func (m *AuditEntry) ValidateAll() error
- type AuditEntryMultiError
- type AuditEntryValidationError
- type Auth
- func (*Auth) Descriptor() ([]byte, []int)deprecated
- func (x *Auth) GetLastCharLock() bool
- func (x *Auth) GetSignupEnabled() bool
- func (*Auth) ProtoMessage()
- func (x *Auth) ProtoReflect() protoreflect.Message
- func (x *Auth) Reset()
- func (x *Auth) String() string
- func (m *Auth) Validate() error
- func (m *Auth) ValidateAll() error
- type AuthMultiError
- type AuthValidationError
- type Discord
- func (*Discord) Descriptor() ([]byte, []int)deprecated
- func (x *Discord) GetBotPresence() *DiscordBotPresence
- func (x *Discord) GetEnabled() bool
- func (x *Discord) GetIgnoredJobs() []string
- func (x *Discord) GetInviteUrl() string
- func (x *Discord) GetSyncInterval() *durationpb.Duration
- func (*Discord) ProtoMessage()
- func (x *Discord) ProtoReflect() protoreflect.Message
- func (x *Discord) Reset()
- func (x *Discord) String() string
- func (m *Discord) Validate() error
- func (m *Discord) ValidateAll() error
- type DiscordBotPresence
- func (*DiscordBotPresence) Descriptor() ([]byte, []int)deprecated
- func (x *DiscordBotPresence) GetStatus() string
- func (x *DiscordBotPresence) GetType() DiscordBotPresenceType
- func (x *DiscordBotPresence) GetUrl() string
- func (*DiscordBotPresence) ProtoMessage()
- func (x *DiscordBotPresence) ProtoReflect() protoreflect.Message
- func (x *DiscordBotPresence) Reset()
- func (x *DiscordBotPresence) String() string
- func (m *DiscordBotPresence) Validate() error
- func (m *DiscordBotPresence) ValidateAll() error
- type DiscordBotPresenceMultiError
- type DiscordBotPresenceType
- func (DiscordBotPresenceType) Descriptor() protoreflect.EnumDescriptor
- func (x DiscordBotPresenceType) Enum() *DiscordBotPresenceType
- func (DiscordBotPresenceType) EnumDescriptor() ([]byte, []int)deprecated
- func (x DiscordBotPresenceType) Number() protoreflect.EnumNumber
- func (x DiscordBotPresenceType) String() string
- func (DiscordBotPresenceType) Type() protoreflect.EnumType
- type DiscordBotPresenceValidationError
- func (e DiscordBotPresenceValidationError) Cause() error
- func (e DiscordBotPresenceValidationError) Error() string
- func (e DiscordBotPresenceValidationError) ErrorName() string
- func (e DiscordBotPresenceValidationError) Field() string
- func (e DiscordBotPresenceValidationError) Key() bool
- func (e DiscordBotPresenceValidationError) Reason() string
- type DiscordMultiError
- type DiscordValidationError
- type EventType
- type JobInfo
- func (*JobInfo) Descriptor() ([]byte, []int)deprecated
- func (x *JobInfo) GetHiddenJobs() []string
- func (x *JobInfo) GetPublicJobs() []string
- func (x *JobInfo) GetUnemployedJob() *UnemployedJob
- func (*JobInfo) ProtoMessage()
- func (x *JobInfo) ProtoReflect() protoreflect.Message
- func (x *JobInfo) Reset()
- func (x *JobInfo) String() string
- func (m *JobInfo) Validate() error
- func (m *JobInfo) ValidateAll() error
- type JobInfoMultiError
- type JobInfoValidationError
- type Links
- func (*Links) Descriptor() ([]byte, []int)deprecated
- func (x *Links) GetImprint() string
- func (x *Links) GetPrivacyPolicy() string
- func (*Links) ProtoMessage()
- func (x *Links) ProtoReflect() protoreflect.Message
- func (x *Links) Reset()
- func (x *Links) String() string
- func (m *Links) Validate() error
- func (m *Links) ValidateAll() error
- type LinksMultiError
- type LinksValidationError
- type Perm
- func (*Perm) Descriptor() ([]byte, []int)deprecated
- func (x *Perm) GetCategory() string
- func (x *Perm) GetName() string
- func (*Perm) ProtoMessage()
- func (x *Perm) ProtoReflect() protoreflect.Message
- func (x *Perm) Reset()
- func (x *Perm) String() string
- func (m *Perm) Validate() error
- func (m *Perm) ValidateAll() error
- type PermMultiError
- type PermValidationError
- type Perms
- type PermsMultiError
- type PermsValidationError
- type UnemployedJob
- func (*UnemployedJob) Descriptor() ([]byte, []int)deprecated
- func (x *UnemployedJob) GetGrade() int32
- func (x *UnemployedJob) GetName() string
- func (*UnemployedJob) ProtoMessage()
- func (x *UnemployedJob) ProtoReflect() protoreflect.Message
- func (x *UnemployedJob) Reset()
- func (x *UnemployedJob) String() string
- func (m *UnemployedJob) Validate() error
- func (m *UnemployedJob) ValidateAll() error
- type UnemployedJobMultiError
- type UnemployedJobValidationError
- func (e UnemployedJobValidationError) Cause() error
- func (e UnemployedJobValidationError) Error() string
- func (e UnemployedJobValidationError) ErrorName() string
- func (e UnemployedJobValidationError) Field() string
- func (e UnemployedJobValidationError) Key() bool
- func (e UnemployedJobValidationError) Reason() string
- type UserTracker
- func (*UserTracker) Descriptor() ([]byte, []int)deprecated
- func (x *UserTracker) GetDbRefreshTime() *durationpb.Duration
- func (x *UserTracker) GetLivemapJobs() []string
- func (x *UserTracker) GetRefreshTime() *durationpb.Duration
- func (*UserTracker) ProtoMessage()
- func (x *UserTracker) ProtoReflect() protoreflect.Message
- func (x *UserTracker) Reset()
- func (x *UserTracker) String() string
- func (m *UserTracker) Validate() error
- func (m *UserTracker) ValidateAll() error
- type UserTrackerMultiError
- type UserTrackerValidationError
- func (e UserTrackerValidationError) Cause() error
- func (e UserTrackerValidationError) Error() string
- func (e UserTrackerValidationError) ErrorName() string
- func (e UserTrackerValidationError) Field() string
- func (e UserTrackerValidationError) Key() bool
- func (e UserTrackerValidationError) Reason() string
- type Website
- func (*Website) Descriptor() ([]byte, []int)deprecated
- func (x *Website) GetLinks() *Links
- func (x *Website) GetStatsPage() bool
- func (*Website) ProtoMessage()
- func (x *Website) ProtoReflect() protoreflect.Message
- func (x *Website) Reset()
- func (x *Website) String() string
- func (m *Website) Validate() error
- func (m *Website) ValidateAll() error
- type WebsiteMultiError
- type WebsiteValidationError
Constants ¶
const ( DefaultUserTrackerRefreshTime = 3*time.Second + 250*time.Millisecond DefaultUserTrackerDbRefreshTime = 1 * time.Second DefaultDiscordSyncInterval = 15 * time.Minute )
Variables ¶
var ( EventType_name = map[int32]string{ 0: "EVENT_TYPE_UNSPECIFIED", 1: "EVENT_TYPE_ERRORED", 2: "EVENT_TYPE_VIEWED", 3: "EVENT_TYPE_CREATED", 4: "EVENT_TYPE_UPDATED", 5: "EVENT_TYPE_DELETED", } EventType_value = map[string]int32{ "EVENT_TYPE_UNSPECIFIED": 0, "EVENT_TYPE_ERRORED": 1, "EVENT_TYPE_VIEWED": 2, "EVENT_TYPE_CREATED": 3, "EVENT_TYPE_UPDATED": 4, "EVENT_TYPE_DELETED": 5, } )
Enum value maps for EventType.
var ( DiscordBotPresenceType_name = map[int32]string{ 0: "DISCORD_BOT_PRESENCE_TYPE_UNSPECIFIED", 1: "DISCORD_BOT_PRESENCE_TYPE_GAME", 2: "DISCORD_BOT_PRESENCE_TYPE_LISTENING", 3: "DISCORD_BOT_PRESENCE_TYPE_STREAMING", 4: "DISCORD_BOT_PRESENCE_TYPE_WATCH", } DiscordBotPresenceType_value = map[string]int32{ "DISCORD_BOT_PRESENCE_TYPE_UNSPECIFIED": 0, "DISCORD_BOT_PRESENCE_TYPE_GAME": 1, "DISCORD_BOT_PRESENCE_TYPE_LISTENING": 2, "DISCORD_BOT_PRESENCE_TYPE_STREAMING": 3, "DISCORD_BOT_PRESENCE_TYPE_WATCH": 4, } )
Enum value maps for DiscordBotPresenceType.
var File_resources_rector_audit_proto protoreflect.FileDescriptor
var File_resources_rector_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { Version *string `protobuf:"bytes,1,opt,name=version,proto3,oneof" json:"version,omitempty"` Auth *Auth `protobuf:"bytes,2,opt,name=auth,proto3" json:"auth,omitempty"` Perms *Perms `protobuf:"bytes,3,opt,name=perms,proto3" json:"perms,omitempty"` Website *Website `protobuf:"bytes,4,opt,name=website,proto3" json:"website,omitempty"` JobInfo *JobInfo `protobuf:"bytes,5,opt,name=job_info,json=jobInfo,proto3" json:"job_info,omitempty"` UserTracker *UserTracker `protobuf:"bytes,6,opt,name=user_tracker,json=userTracker,proto3" json:"user_tracker,omitempty"` Discord *Discord `protobuf:"bytes,7,opt,name=discord,proto3" json:"discord,omitempty"` // contains filtered or unexported fields }
func (*AppConfig) Descriptor
deprecated
func (*AppConfig) GetDiscord ¶
func (*AppConfig) GetJobInfo ¶
func (*AppConfig) GetUserTracker ¶
func (x *AppConfig) GetUserTracker() *UserTracker
func (*AppConfig) GetVersion ¶ added in v0.9.2
func (*AppConfig) GetWebsite ¶
func (*AppConfig) ProtoMessage ¶
func (*AppConfig) ProtoMessage()
func (*AppConfig) ProtoReflect ¶
func (x *AppConfig) ProtoReflect() protoreflect.Message
func (*AppConfig) Validate ¶
Validate checks the field values on AppConfig 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 (*AppConfig) ValidateAll ¶
ValidateAll checks the field values on AppConfig 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 AppConfigMultiError, or nil if none found.
type AppConfigMultiError ¶
type AppConfigMultiError []error
AppConfigMultiError is an error wrapping multiple validation errors returned by AppConfig.ValidateAll() if the designated constraints aren't met.
func (AppConfigMultiError) AllErrors ¶
func (m AppConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AppConfigMultiError) Error ¶
func (m AppConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AppConfigValidationError ¶
type AppConfigValidationError struct {
// contains filtered or unexported fields
}
AppConfigValidationError is the validation error returned by AppConfig.Validate if the designated constraints aren't met.
func (AppConfigValidationError) Cause ¶
func (e AppConfigValidationError) Cause() error
Cause function returns cause value.
func (AppConfigValidationError) Error ¶
func (e AppConfigValidationError) Error() string
Error satisfies the builtin error interface
func (AppConfigValidationError) ErrorName ¶
func (e AppConfigValidationError) ErrorName() string
ErrorName returns error name.
func (AppConfigValidationError) Field ¶
func (e AppConfigValidationError) Field() string
Field function returns field value.
func (AppConfigValidationError) Key ¶
func (e AppConfigValidationError) Key() bool
Key function returns key value.
func (AppConfigValidationError) Reason ¶
func (e AppConfigValidationError) Reason() string
Reason function returns reason value.
type AuditEntry ¶
type AuditEntry struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" alias:"id"` // @gotags: alias:"id" CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UserId uint64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" alias:"user_id"` // @gotags: alias:"user_id" User *users.UserShort `protobuf:"bytes,4,opt,name=user,proto3,oneof" json:"user,omitempty"` UserJob string `protobuf:"bytes,5,opt,name=user_job,json=userJob,proto3" json:"user_job,omitempty" alias:"user_job"` // @gotags: alias:"user_job" TargetUserId *int32 `` // @gotags: alias:"target_user_id" /* 129-byte string literal not displayed */ TargetUser *users.UserShort `protobuf:"bytes,7,opt,name=target_user,json=targetUser,proto3,oneof" json:"target_user,omitempty"` TargetUserJob string `` // @gotags: alias:"target_user_job" /* 126-byte string literal not displayed */ Service string `protobuf:"bytes,9,opt,name=service,proto3" json:"service,omitempty" alias:"service"` // @gotags: alias:"service" Method string `protobuf:"bytes,10,opt,name=method,proto3" json:"method,omitempty" alias:"method"` // @gotags: alias:"method" State EventType `protobuf:"varint,11,opt,name=state,proto3,enum=resources.rector.EventType" json:"state,omitempty" alias:"state"` // @gotags: alias:"state" Data *string `protobuf:"bytes,12,opt,name=data,proto3,oneof" json:"data,omitempty" alias:"data"` // @gotags: alias:"data" // contains filtered or unexported fields }
func (*AuditEntry) Descriptor
deprecated
func (*AuditEntry) Descriptor() ([]byte, []int)
Deprecated: Use AuditEntry.ProtoReflect.Descriptor instead.
func (*AuditEntry) GetCreatedAt ¶
func (x *AuditEntry) GetCreatedAt() *timestamp.Timestamp
func (*AuditEntry) GetData ¶
func (x *AuditEntry) GetData() string
func (*AuditEntry) GetId ¶
func (x *AuditEntry) GetId() uint64
func (*AuditEntry) GetMethod ¶
func (x *AuditEntry) GetMethod() string
func (*AuditEntry) GetService ¶
func (x *AuditEntry) GetService() string
func (*AuditEntry) GetState ¶
func (x *AuditEntry) GetState() EventType
func (*AuditEntry) GetTargetUser ¶
func (x *AuditEntry) GetTargetUser() *users.UserShort
func (*AuditEntry) GetTargetUserId ¶
func (x *AuditEntry) GetTargetUserId() int32
func (*AuditEntry) GetTargetUserJob ¶
func (x *AuditEntry) GetTargetUserJob() string
func (*AuditEntry) GetUser ¶
func (x *AuditEntry) GetUser() *users.UserShort
func (*AuditEntry) GetUserId ¶
func (x *AuditEntry) GetUserId() uint64
func (*AuditEntry) GetUserJob ¶
func (x *AuditEntry) GetUserJob() string
func (*AuditEntry) ProtoMessage ¶
func (*AuditEntry) ProtoMessage()
func (*AuditEntry) ProtoReflect ¶
func (x *AuditEntry) ProtoReflect() protoreflect.Message
func (*AuditEntry) Reset ¶
func (x *AuditEntry) Reset()
func (*AuditEntry) String ¶
func (x *AuditEntry) String() string
func (*AuditEntry) Validate ¶
func (m *AuditEntry) Validate() error
Validate checks the field values on AuditEntry 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 (*AuditEntry) ValidateAll ¶
func (m *AuditEntry) ValidateAll() error
ValidateAll checks the field values on AuditEntry 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 AuditEntryMultiError, or nil if none found.
type AuditEntryMultiError ¶
type AuditEntryMultiError []error
AuditEntryMultiError is an error wrapping multiple validation errors returned by AuditEntry.ValidateAll() if the designated constraints aren't met.
func (AuditEntryMultiError) AllErrors ¶
func (m AuditEntryMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuditEntryMultiError) Error ¶
func (m AuditEntryMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuditEntryValidationError ¶
type AuditEntryValidationError struct {
// contains filtered or unexported fields
}
AuditEntryValidationError is the validation error returned by AuditEntry.Validate if the designated constraints aren't met.
func (AuditEntryValidationError) Cause ¶
func (e AuditEntryValidationError) Cause() error
Cause function returns cause value.
func (AuditEntryValidationError) Error ¶
func (e AuditEntryValidationError) Error() string
Error satisfies the builtin error interface
func (AuditEntryValidationError) ErrorName ¶
func (e AuditEntryValidationError) ErrorName() string
ErrorName returns error name.
func (AuditEntryValidationError) Field ¶
func (e AuditEntryValidationError) Field() string
Field function returns field value.
func (AuditEntryValidationError) Key ¶
func (e AuditEntryValidationError) Key() bool
Key function returns key value.
func (AuditEntryValidationError) Reason ¶
func (e AuditEntryValidationError) Reason() string
Reason function returns reason value.
type Auth ¶
type Auth struct { SignupEnabled bool `protobuf:"varint,1,opt,name=signup_enabled,json=signupEnabled,proto3" json:"signup_enabled,omitempty"` LastCharLock bool `protobuf:"varint,2,opt,name=last_char_lock,json=lastCharLock,proto3" json:"last_char_lock,omitempty"` // contains filtered or unexported fields }
func (*Auth) Descriptor
deprecated
func (*Auth) GetLastCharLock ¶
func (*Auth) GetSignupEnabled ¶
func (*Auth) ProtoMessage ¶
func (*Auth) ProtoMessage()
func (*Auth) ProtoReflect ¶
func (x *Auth) ProtoReflect() protoreflect.Message
func (*Auth) Validate ¶
Validate checks the field values on Auth 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 (*Auth) ValidateAll ¶
ValidateAll checks the field values on Auth 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 AuthMultiError, or nil if none found.
type AuthMultiError ¶
type AuthMultiError []error
AuthMultiError is an error wrapping multiple validation errors returned by Auth.ValidateAll() if the designated constraints aren't met.
func (AuthMultiError) AllErrors ¶
func (m AuthMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthMultiError) Error ¶
func (m AuthMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthValidationError ¶
type AuthValidationError struct {
// contains filtered or unexported fields
}
AuthValidationError is the validation error returned by Auth.Validate if the designated constraints aren't met.
func (AuthValidationError) Cause ¶
func (e AuthValidationError) Cause() error
Cause function returns cause value.
func (AuthValidationError) Error ¶
func (e AuthValidationError) Error() string
Error satisfies the builtin error interface
func (AuthValidationError) ErrorName ¶
func (e AuthValidationError) ErrorName() string
ErrorName returns error name.
func (AuthValidationError) Field ¶
func (e AuthValidationError) Field() string
Field function returns field value.
func (AuthValidationError) Key ¶
func (e AuthValidationError) Key() bool
Key function returns key value.
func (AuthValidationError) Reason ¶
func (e AuthValidationError) Reason() string
Reason function returns reason value.
type Discord ¶
type Discord struct { Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` SyncInterval *durationpb.Duration `protobuf:"bytes,2,opt,name=sync_interval,json=syncInterval,proto3" json:"sync_interval,omitempty"` InviteUrl *string `protobuf:"bytes,3,opt,name=invite_url,json=inviteUrl,proto3,oneof" json:"invite_url,omitempty"` IgnoredJobs []string `protobuf:"bytes,4,rep,name=ignored_jobs,json=ignoredJobs,proto3" json:"ignored_jobs,omitempty"` BotPresence *DiscordBotPresence `protobuf:"bytes,5,opt,name=bot_presence,json=botPresence,proto3,oneof" json:"bot_presence,omitempty"` // contains filtered or unexported fields }
func (*Discord) Descriptor
deprecated
func (*Discord) GetBotPresence ¶ added in v0.9.2
func (x *Discord) GetBotPresence() *DiscordBotPresence
func (*Discord) GetEnabled ¶
func (*Discord) GetIgnoredJobs ¶
func (*Discord) GetInviteUrl ¶
func (*Discord) GetSyncInterval ¶
func (x *Discord) GetSyncInterval() *durationpb.Duration
func (*Discord) ProtoMessage ¶
func (*Discord) ProtoMessage()
func (*Discord) ProtoReflect ¶
func (x *Discord) ProtoReflect() protoreflect.Message
func (*Discord) Validate ¶
Validate checks the field values on Discord 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 (*Discord) ValidateAll ¶
ValidateAll checks the field values on Discord 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 DiscordMultiError, or nil if none found.
type DiscordBotPresence ¶ added in v0.9.2
type DiscordBotPresence struct { Type DiscordBotPresenceType `protobuf:"varint,1,opt,name=type,proto3,enum=resources.rector.DiscordBotPresenceType" json:"type,omitempty"` Status *string `protobuf:"bytes,2,opt,name=status,proto3,oneof" json:"status,omitempty"` Url *string `protobuf:"bytes,3,opt,name=url,proto3,oneof" json:"url,omitempty"` // contains filtered or unexported fields }
func (*DiscordBotPresence) Descriptor
deprecated
added in
v0.9.2
func (*DiscordBotPresence) Descriptor() ([]byte, []int)
Deprecated: Use DiscordBotPresence.ProtoReflect.Descriptor instead.
func (*DiscordBotPresence) GetStatus ¶ added in v0.9.2
func (x *DiscordBotPresence) GetStatus() string
func (*DiscordBotPresence) GetType ¶ added in v0.9.2
func (x *DiscordBotPresence) GetType() DiscordBotPresenceType
func (*DiscordBotPresence) GetUrl ¶ added in v0.9.2
func (x *DiscordBotPresence) GetUrl() string
func (*DiscordBotPresence) ProtoMessage ¶ added in v0.9.2
func (*DiscordBotPresence) ProtoMessage()
func (*DiscordBotPresence) ProtoReflect ¶ added in v0.9.2
func (x *DiscordBotPresence) ProtoReflect() protoreflect.Message
func (*DiscordBotPresence) Reset ¶ added in v0.9.2
func (x *DiscordBotPresence) Reset()
func (*DiscordBotPresence) String ¶ added in v0.9.2
func (x *DiscordBotPresence) String() string
func (*DiscordBotPresence) Validate ¶ added in v0.9.2
func (m *DiscordBotPresence) Validate() error
Validate checks the field values on DiscordBotPresence 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 (*DiscordBotPresence) ValidateAll ¶ added in v0.9.2
func (m *DiscordBotPresence) ValidateAll() error
ValidateAll checks the field values on DiscordBotPresence 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 DiscordBotPresenceMultiError, or nil if none found.
type DiscordBotPresenceMultiError ¶ added in v0.9.2
type DiscordBotPresenceMultiError []error
DiscordBotPresenceMultiError is an error wrapping multiple validation errors returned by DiscordBotPresence.ValidateAll() if the designated constraints aren't met.
func (DiscordBotPresenceMultiError) AllErrors ¶ added in v0.9.2
func (m DiscordBotPresenceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DiscordBotPresenceMultiError) Error ¶ added in v0.9.2
func (m DiscordBotPresenceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DiscordBotPresenceType ¶ added in v0.9.2
type DiscordBotPresenceType int32
const ( DiscordBotPresenceType_DISCORD_BOT_PRESENCE_TYPE_UNSPECIFIED DiscordBotPresenceType = 0 DiscordBotPresenceType_DISCORD_BOT_PRESENCE_TYPE_GAME DiscordBotPresenceType = 1 DiscordBotPresenceType_DISCORD_BOT_PRESENCE_TYPE_LISTENING DiscordBotPresenceType = 2 DiscordBotPresenceType_DISCORD_BOT_PRESENCE_TYPE_STREAMING DiscordBotPresenceType = 3 DiscordBotPresenceType_DISCORD_BOT_PRESENCE_TYPE_WATCH DiscordBotPresenceType = 4 )
func (DiscordBotPresenceType) Descriptor ¶ added in v0.9.2
func (DiscordBotPresenceType) Descriptor() protoreflect.EnumDescriptor
func (DiscordBotPresenceType) Enum ¶ added in v0.9.2
func (x DiscordBotPresenceType) Enum() *DiscordBotPresenceType
func (DiscordBotPresenceType) EnumDescriptor
deprecated
added in
v0.9.2
func (DiscordBotPresenceType) EnumDescriptor() ([]byte, []int)
Deprecated: Use DiscordBotPresenceType.Descriptor instead.
func (DiscordBotPresenceType) Number ¶ added in v0.9.2
func (x DiscordBotPresenceType) Number() protoreflect.EnumNumber
func (DiscordBotPresenceType) String ¶ added in v0.9.2
func (x DiscordBotPresenceType) String() string
func (DiscordBotPresenceType) Type ¶ added in v0.9.2
func (DiscordBotPresenceType) Type() protoreflect.EnumType
type DiscordBotPresenceValidationError ¶ added in v0.9.2
type DiscordBotPresenceValidationError struct {
// contains filtered or unexported fields
}
DiscordBotPresenceValidationError is the validation error returned by DiscordBotPresence.Validate if the designated constraints aren't met.
func (DiscordBotPresenceValidationError) Cause ¶ added in v0.9.2
func (e DiscordBotPresenceValidationError) Cause() error
Cause function returns cause value.
func (DiscordBotPresenceValidationError) Error ¶ added in v0.9.2
func (e DiscordBotPresenceValidationError) Error() string
Error satisfies the builtin error interface
func (DiscordBotPresenceValidationError) ErrorName ¶ added in v0.9.2
func (e DiscordBotPresenceValidationError) ErrorName() string
ErrorName returns error name.
func (DiscordBotPresenceValidationError) Field ¶ added in v0.9.2
func (e DiscordBotPresenceValidationError) Field() string
Field function returns field value.
func (DiscordBotPresenceValidationError) Key ¶ added in v0.9.2
func (e DiscordBotPresenceValidationError) Key() bool
Key function returns key value.
func (DiscordBotPresenceValidationError) Reason ¶ added in v0.9.2
func (e DiscordBotPresenceValidationError) Reason() string
Reason function returns reason value.
type DiscordMultiError ¶
type DiscordMultiError []error
DiscordMultiError is an error wrapping multiple validation errors returned by Discord.ValidateAll() if the designated constraints aren't met.
func (DiscordMultiError) AllErrors ¶
func (m DiscordMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DiscordMultiError) Error ¶
func (m DiscordMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DiscordValidationError ¶
type DiscordValidationError struct {
// contains filtered or unexported fields
}
DiscordValidationError is the validation error returned by Discord.Validate if the designated constraints aren't met.
func (DiscordValidationError) Cause ¶
func (e DiscordValidationError) Cause() error
Cause function returns cause value.
func (DiscordValidationError) Error ¶
func (e DiscordValidationError) Error() string
Error satisfies the builtin error interface
func (DiscordValidationError) ErrorName ¶
func (e DiscordValidationError) ErrorName() string
ErrorName returns error name.
func (DiscordValidationError) Field ¶
func (e DiscordValidationError) Field() string
Field function returns field value.
func (DiscordValidationError) Key ¶
func (e DiscordValidationError) Key() bool
Key function returns key value.
func (DiscordValidationError) Reason ¶
func (e DiscordValidationError) Reason() string
Reason function returns reason value.
type EventType ¶
type EventType int32
func (EventType) Descriptor ¶
func (EventType) Descriptor() protoreflect.EnumDescriptor
func (EventType) EnumDescriptor
deprecated
func (EventType) Number ¶
func (x EventType) Number() protoreflect.EnumNumber
func (EventType) Type ¶
func (EventType) Type() protoreflect.EnumType
type JobInfo ¶
type JobInfo struct { UnemployedJob *UnemployedJob `protobuf:"bytes,1,opt,name=unemployed_job,json=unemployedJob,proto3" json:"unemployed_job,omitempty"` PublicJobs []string `protobuf:"bytes,2,rep,name=public_jobs,json=publicJobs,proto3" json:"public_jobs,omitempty"` HiddenJobs []string `protobuf:"bytes,3,rep,name=hidden_jobs,json=hiddenJobs,proto3" json:"hidden_jobs,omitempty"` // contains filtered or unexported fields }
func (*JobInfo) Descriptor
deprecated
func (*JobInfo) GetHiddenJobs ¶
func (*JobInfo) GetPublicJobs ¶
func (*JobInfo) GetUnemployedJob ¶
func (x *JobInfo) GetUnemployedJob() *UnemployedJob
func (*JobInfo) ProtoMessage ¶
func (*JobInfo) ProtoMessage()
func (*JobInfo) ProtoReflect ¶
func (x *JobInfo) ProtoReflect() protoreflect.Message
func (*JobInfo) Validate ¶
Validate checks the field values on JobInfo 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 (*JobInfo) ValidateAll ¶
ValidateAll checks the field values on JobInfo 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 JobInfoMultiError, or nil if none found.
type JobInfoMultiError ¶
type JobInfoMultiError []error
JobInfoMultiError is an error wrapping multiple validation errors returned by JobInfo.ValidateAll() if the designated constraints aren't met.
func (JobInfoMultiError) AllErrors ¶
func (m JobInfoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (JobInfoMultiError) Error ¶
func (m JobInfoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type JobInfoValidationError ¶
type JobInfoValidationError struct {
// contains filtered or unexported fields
}
JobInfoValidationError is the validation error returned by JobInfo.Validate if the designated constraints aren't met.
func (JobInfoValidationError) Cause ¶
func (e JobInfoValidationError) Cause() error
Cause function returns cause value.
func (JobInfoValidationError) Error ¶
func (e JobInfoValidationError) Error() string
Error satisfies the builtin error interface
func (JobInfoValidationError) ErrorName ¶
func (e JobInfoValidationError) ErrorName() string
ErrorName returns error name.
func (JobInfoValidationError) Field ¶
func (e JobInfoValidationError) Field() string
Field function returns field value.
func (JobInfoValidationError) Key ¶
func (e JobInfoValidationError) Key() bool
Key function returns key value.
func (JobInfoValidationError) Reason ¶
func (e JobInfoValidationError) Reason() string
Reason function returns reason value.
type Links ¶
type Links struct { PrivacyPolicy *string `protobuf:"bytes,1,opt,name=privacy_policy,json=privacyPolicy,proto3,oneof" json:"privacy_policy,omitempty"` Imprint *string `protobuf:"bytes,2,opt,name=imprint,proto3,oneof" json:"imprint,omitempty"` // contains filtered or unexported fields }
func (*Links) Descriptor
deprecated
func (*Links) GetImprint ¶
func (*Links) GetPrivacyPolicy ¶
func (*Links) ProtoMessage ¶
func (*Links) ProtoMessage()
func (*Links) ProtoReflect ¶
func (x *Links) ProtoReflect() protoreflect.Message
func (*Links) Validate ¶
Validate checks the field values on Links 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 (*Links) ValidateAll ¶
ValidateAll checks the field values on Links 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 LinksMultiError, or nil if none found.
type LinksMultiError ¶
type LinksMultiError []error
LinksMultiError is an error wrapping multiple validation errors returned by Links.ValidateAll() if the designated constraints aren't met.
func (LinksMultiError) AllErrors ¶
func (m LinksMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LinksMultiError) Error ¶
func (m LinksMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LinksValidationError ¶
type LinksValidationError struct {
// contains filtered or unexported fields
}
LinksValidationError is the validation error returned by Links.Validate if the designated constraints aren't met.
func (LinksValidationError) Cause ¶
func (e LinksValidationError) Cause() error
Cause function returns cause value.
func (LinksValidationError) Error ¶
func (e LinksValidationError) Error() string
Error satisfies the builtin error interface
func (LinksValidationError) ErrorName ¶
func (e LinksValidationError) ErrorName() string
ErrorName returns error name.
func (LinksValidationError) Field ¶
func (e LinksValidationError) Field() string
Field function returns field value.
func (LinksValidationError) Key ¶
func (e LinksValidationError) Key() bool
Key function returns key value.
func (LinksValidationError) Reason ¶
func (e LinksValidationError) Reason() string
Reason function returns reason value.
type Perm ¶
type Perm struct { Category string `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Perm) Descriptor
deprecated
func (*Perm) GetCategory ¶
func (*Perm) ProtoMessage ¶
func (*Perm) ProtoMessage()
func (*Perm) ProtoReflect ¶
func (x *Perm) ProtoReflect() protoreflect.Message
func (*Perm) Validate ¶
Validate checks the field values on Perm 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 (*Perm) ValidateAll ¶
ValidateAll checks the field values on Perm 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 PermMultiError, or nil if none found.
type PermMultiError ¶
type PermMultiError []error
PermMultiError is an error wrapping multiple validation errors returned by Perm.ValidateAll() if the designated constraints aren't met.
func (PermMultiError) AllErrors ¶
func (m PermMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PermMultiError) Error ¶
func (m PermMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PermValidationError ¶
type PermValidationError struct {
// contains filtered or unexported fields
}
PermValidationError is the validation error returned by Perm.Validate if the designated constraints aren't met.
func (PermValidationError) Cause ¶
func (e PermValidationError) Cause() error
Cause function returns cause value.
func (PermValidationError) Error ¶
func (e PermValidationError) Error() string
Error satisfies the builtin error interface
func (PermValidationError) ErrorName ¶
func (e PermValidationError) ErrorName() string
ErrorName returns error name.
func (PermValidationError) Field ¶
func (e PermValidationError) Field() string
Field function returns field value.
func (PermValidationError) Key ¶
func (e PermValidationError) Key() bool
Key function returns key value.
func (PermValidationError) Reason ¶
func (e PermValidationError) Reason() string
Reason function returns reason value.
type Perms ¶
type Perms struct { Default []*Perm `protobuf:"bytes,1,rep,name=default,proto3" json:"default,omitempty"` // contains filtered or unexported fields }
func (*Perms) Descriptor
deprecated
func (*Perms) GetDefault ¶
func (*Perms) ProtoMessage ¶
func (*Perms) ProtoMessage()
func (*Perms) ProtoReflect ¶
func (x *Perms) ProtoReflect() protoreflect.Message
func (*Perms) Validate ¶
Validate checks the field values on Perms 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 (*Perms) ValidateAll ¶
ValidateAll checks the field values on Perms 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 PermsMultiError, or nil if none found.
type PermsMultiError ¶
type PermsMultiError []error
PermsMultiError is an error wrapping multiple validation errors returned by Perms.ValidateAll() if the designated constraints aren't met.
func (PermsMultiError) AllErrors ¶
func (m PermsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PermsMultiError) Error ¶
func (m PermsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PermsValidationError ¶
type PermsValidationError struct {
// contains filtered or unexported fields
}
PermsValidationError is the validation error returned by Perms.Validate if the designated constraints aren't met.
func (PermsValidationError) Cause ¶
func (e PermsValidationError) Cause() error
Cause function returns cause value.
func (PermsValidationError) Error ¶
func (e PermsValidationError) Error() string
Error satisfies the builtin error interface
func (PermsValidationError) ErrorName ¶
func (e PermsValidationError) ErrorName() string
ErrorName returns error name.
func (PermsValidationError) Field ¶
func (e PermsValidationError) Field() string
Field function returns field value.
func (PermsValidationError) Key ¶
func (e PermsValidationError) Key() bool
Key function returns key value.
func (PermsValidationError) Reason ¶
func (e PermsValidationError) Reason() string
Reason function returns reason value.
type UnemployedJob ¶
type UnemployedJob struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Grade int32 `protobuf:"varint,2,opt,name=grade,proto3" json:"grade,omitempty"` // contains filtered or unexported fields }
func (*UnemployedJob) Descriptor
deprecated
func (*UnemployedJob) Descriptor() ([]byte, []int)
Deprecated: Use UnemployedJob.ProtoReflect.Descriptor instead.
func (*UnemployedJob) GetGrade ¶
func (x *UnemployedJob) GetGrade() int32
func (*UnemployedJob) GetName ¶
func (x *UnemployedJob) GetName() string
func (*UnemployedJob) ProtoMessage ¶
func (*UnemployedJob) ProtoMessage()
func (*UnemployedJob) ProtoReflect ¶
func (x *UnemployedJob) ProtoReflect() protoreflect.Message
func (*UnemployedJob) Reset ¶
func (x *UnemployedJob) Reset()
func (*UnemployedJob) String ¶
func (x *UnemployedJob) String() string
func (*UnemployedJob) Validate ¶
func (m *UnemployedJob) Validate() error
Validate checks the field values on UnemployedJob 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 (*UnemployedJob) ValidateAll ¶
func (m *UnemployedJob) ValidateAll() error
ValidateAll checks the field values on UnemployedJob 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 UnemployedJobMultiError, or nil if none found.
type UnemployedJobMultiError ¶
type UnemployedJobMultiError []error
UnemployedJobMultiError is an error wrapping multiple validation errors returned by UnemployedJob.ValidateAll() if the designated constraints aren't met.
func (UnemployedJobMultiError) AllErrors ¶
func (m UnemployedJobMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UnemployedJobMultiError) Error ¶
func (m UnemployedJobMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UnemployedJobValidationError ¶
type UnemployedJobValidationError struct {
// contains filtered or unexported fields
}
UnemployedJobValidationError is the validation error returned by UnemployedJob.Validate if the designated constraints aren't met.
func (UnemployedJobValidationError) Cause ¶
func (e UnemployedJobValidationError) Cause() error
Cause function returns cause value.
func (UnemployedJobValidationError) Error ¶
func (e UnemployedJobValidationError) Error() string
Error satisfies the builtin error interface
func (UnemployedJobValidationError) ErrorName ¶
func (e UnemployedJobValidationError) ErrorName() string
ErrorName returns error name.
func (UnemployedJobValidationError) Field ¶
func (e UnemployedJobValidationError) Field() string
Field function returns field value.
func (UnemployedJobValidationError) Key ¶
func (e UnemployedJobValidationError) Key() bool
Key function returns key value.
func (UnemployedJobValidationError) Reason ¶
func (e UnemployedJobValidationError) Reason() string
Reason function returns reason value.
type UserTracker ¶
type UserTracker struct { RefreshTime *durationpb.Duration `protobuf:"bytes,1,opt,name=refresh_time,json=refreshTime,proto3" json:"refresh_time,omitempty"` DbRefreshTime *durationpb.Duration `protobuf:"bytes,2,opt,name=db_refresh_time,json=dbRefreshTime,proto3" json:"db_refresh_time,omitempty"` LivemapJobs []string `protobuf:"bytes,3,rep,name=livemap_jobs,json=livemapJobs,proto3" json:"livemap_jobs,omitempty"` // contains filtered or unexported fields }
func (*UserTracker) Descriptor
deprecated
func (*UserTracker) Descriptor() ([]byte, []int)
Deprecated: Use UserTracker.ProtoReflect.Descriptor instead.
func (*UserTracker) GetDbRefreshTime ¶
func (x *UserTracker) GetDbRefreshTime() *durationpb.Duration
func (*UserTracker) GetLivemapJobs ¶
func (x *UserTracker) GetLivemapJobs() []string
func (*UserTracker) GetRefreshTime ¶
func (x *UserTracker) GetRefreshTime() *durationpb.Duration
func (*UserTracker) ProtoMessage ¶
func (*UserTracker) ProtoMessage()
func (*UserTracker) ProtoReflect ¶
func (x *UserTracker) ProtoReflect() protoreflect.Message
func (*UserTracker) Reset ¶
func (x *UserTracker) Reset()
func (*UserTracker) String ¶
func (x *UserTracker) String() string
func (*UserTracker) Validate ¶
func (m *UserTracker) Validate() error
Validate checks the field values on UserTracker 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 (*UserTracker) ValidateAll ¶
func (m *UserTracker) ValidateAll() error
ValidateAll checks the field values on UserTracker 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 UserTrackerMultiError, or nil if none found.
type UserTrackerMultiError ¶
type UserTrackerMultiError []error
UserTrackerMultiError is an error wrapping multiple validation errors returned by UserTracker.ValidateAll() if the designated constraints aren't met.
func (UserTrackerMultiError) AllErrors ¶
func (m UserTrackerMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserTrackerMultiError) Error ¶
func (m UserTrackerMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserTrackerValidationError ¶
type UserTrackerValidationError struct {
// contains filtered or unexported fields
}
UserTrackerValidationError is the validation error returned by UserTracker.Validate if the designated constraints aren't met.
func (UserTrackerValidationError) Cause ¶
func (e UserTrackerValidationError) Cause() error
Cause function returns cause value.
func (UserTrackerValidationError) Error ¶
func (e UserTrackerValidationError) Error() string
Error satisfies the builtin error interface
func (UserTrackerValidationError) ErrorName ¶
func (e UserTrackerValidationError) ErrorName() string
ErrorName returns error name.
func (UserTrackerValidationError) Field ¶
func (e UserTrackerValidationError) Field() string
Field function returns field value.
func (UserTrackerValidationError) Key ¶
func (e UserTrackerValidationError) Key() bool
Key function returns key value.
func (UserTrackerValidationError) Reason ¶
func (e UserTrackerValidationError) Reason() string
Reason function returns reason value.
type Website ¶
type Website struct { Links *Links `protobuf:"bytes,1,opt,name=links,proto3" json:"links,omitempty"` StatsPage bool `protobuf:"varint,2,opt,name=stats_page,json=statsPage,proto3" json:"stats_page,omitempty"` // contains filtered or unexported fields }
func (*Website) Descriptor
deprecated
func (*Website) GetStatsPage ¶ added in v0.9.2
func (*Website) ProtoMessage ¶
func (*Website) ProtoMessage()
func (*Website) ProtoReflect ¶
func (x *Website) ProtoReflect() protoreflect.Message
func (*Website) Validate ¶
Validate checks the field values on Website 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 (*Website) ValidateAll ¶
ValidateAll checks the field values on Website 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 WebsiteMultiError, or nil if none found.
type WebsiteMultiError ¶
type WebsiteMultiError []error
WebsiteMultiError is an error wrapping multiple validation errors returned by Website.ValidateAll() if the designated constraints aren't met.
func (WebsiteMultiError) AllErrors ¶
func (m WebsiteMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (WebsiteMultiError) Error ¶
func (m WebsiteMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type WebsiteValidationError ¶
type WebsiteValidationError struct {
// contains filtered or unexported fields
}
WebsiteValidationError is the validation error returned by Website.Validate if the designated constraints aren't met.
func (WebsiteValidationError) Cause ¶
func (e WebsiteValidationError) Cause() error
Cause function returns cause value.
func (WebsiteValidationError) Error ¶
func (e WebsiteValidationError) Error() string
Error satisfies the builtin error interface
func (WebsiteValidationError) ErrorName ¶
func (e WebsiteValidationError) ErrorName() string
ErrorName returns error name.
func (WebsiteValidationError) Field ¶
func (e WebsiteValidationError) Field() string
Field function returns field value.
func (WebsiteValidationError) Key ¶
func (e WebsiteValidationError) Key() bool
Key function returns key value.
func (WebsiteValidationError) Reason ¶
func (e WebsiteValidationError) Reason() string
Reason function returns reason value.