rector

package
v0.9.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultUserTrackerRefreshTime   = 3*time.Second + 250*time.Millisecond
	DefaultUserTrackerDbRefreshTime = 1 * time.Second

	DefaultDiscordSyncInterval = 15 * time.Minute
)

Variables

View Source
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.

View Source
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.

View Source
var File_resources_rector_audit_proto protoreflect.FileDescriptor
View Source
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) Default

func (x *AppConfig) Default()

func (*AppConfig) Descriptor deprecated

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

Deprecated: Use AppConfig.ProtoReflect.Descriptor instead.

func (*AppConfig) GetAuth

func (x *AppConfig) GetAuth() *Auth

func (*AppConfig) GetDiscord

func (x *AppConfig) GetDiscord() *Discord

func (*AppConfig) GetJobInfo

func (x *AppConfig) GetJobInfo() *JobInfo

func (*AppConfig) GetPerms

func (x *AppConfig) GetPerms() *Perms

func (*AppConfig) GetUserTracker

func (x *AppConfig) GetUserTracker() *UserTracker

func (*AppConfig) GetVersion added in v0.9.2

func (x *AppConfig) GetVersion() string

func (*AppConfig) GetWebsite

func (x *AppConfig) GetWebsite() *Website

func (*AppConfig) ProtoMessage

func (*AppConfig) ProtoMessage()

func (*AppConfig) ProtoReflect

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

func (*AppConfig) Reset

func (x *AppConfig) Reset()

func (*AppConfig) Scan

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

Scan implements driver.Valuer for protobuf AppConfig.

func (*AppConfig) String

func (x *AppConfig) String() string

func (*AppConfig) Validate

func (m *AppConfig) Validate() error

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

func (m *AppConfig) ValidateAll() error

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.

func (*AppConfig) Value

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

Value marshals the value into driver.Valuer.

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

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

Error satisfies the builtin error interface

func (AuditEntryValidationError) ErrorName

func (e AuditEntryValidationError) ErrorName() string

ErrorName returns error name.

func (AuditEntryValidationError) Field

Field function returns field value.

func (AuditEntryValidationError) Key

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) Descriptor() ([]byte, []int)

Deprecated: Use Auth.ProtoReflect.Descriptor instead.

func (*Auth) GetLastCharLock

func (x *Auth) GetLastCharLock() bool

func (*Auth) GetSignupEnabled

func (x *Auth) GetSignupEnabled() bool

func (*Auth) ProtoMessage

func (*Auth) ProtoMessage()

func (*Auth) ProtoReflect

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

func (*Auth) Reset

func (x *Auth) Reset()

func (*Auth) String

func (x *Auth) String() string

func (*Auth) Validate

func (m *Auth) Validate() error

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

func (m *Auth) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Discord.ProtoReflect.Descriptor instead.

func (*Discord) GetBotPresence added in v0.9.2

func (x *Discord) GetBotPresence() *DiscordBotPresence

func (*Discord) GetEnabled

func (x *Discord) GetEnabled() bool

func (*Discord) GetIgnoredJobs

func (x *Discord) GetIgnoredJobs() []string

func (*Discord) GetInviteUrl

func (x *Discord) GetInviteUrl() string

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) Reset

func (x *Discord) Reset()

func (*Discord) String

func (x *Discord) String() string

func (*Discord) Validate

func (m *Discord) Validate() error

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

func (m *Discord) ValidateAll() error

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 (*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

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) Enum added in v0.9.2

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 (DiscordBotPresenceType) String added in v0.9.2

func (x DiscordBotPresenceType) String() string

func (DiscordBotPresenceType) Type added in v0.9.2

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

Cause function returns cause value.

func (DiscordBotPresenceValidationError) Error added in v0.9.2

Error satisfies the builtin error interface

func (DiscordBotPresenceValidationError) ErrorName added in v0.9.2

ErrorName returns error name.

func (DiscordBotPresenceValidationError) Field added in v0.9.2

Field function returns field value.

func (DiscordBotPresenceValidationError) Key added in v0.9.2

Key function returns key value.

func (DiscordBotPresenceValidationError) Reason added in v0.9.2

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
const (
	EventType_EVENT_TYPE_UNSPECIFIED EventType = 0
	EventType_EVENT_TYPE_ERRORED     EventType = 1
	EventType_EVENT_TYPE_VIEWED      EventType = 2
	EventType_EVENT_TYPE_CREATED     EventType = 3
	EventType_EVENT_TYPE_UPDATED     EventType = 4
	EventType_EVENT_TYPE_DELETED     EventType = 5
)

func (EventType) Descriptor

func (EventType) Descriptor() protoreflect.EnumDescriptor

func (EventType) Enum

func (x EventType) Enum() *EventType

func (EventType) EnumDescriptor deprecated

func (EventType) EnumDescriptor() ([]byte, []int)

Deprecated: Use EventType.Descriptor instead.

func (EventType) Number

func (x EventType) Number() protoreflect.EnumNumber

func (EventType) String

func (x EventType) String() string

func (EventType) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use JobInfo.ProtoReflect.Descriptor instead.

func (*JobInfo) GetHiddenJobs

func (x *JobInfo) GetHiddenJobs() []string

func (*JobInfo) GetPublicJobs

func (x *JobInfo) GetPublicJobs() []string

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) Reset

func (x *JobInfo) Reset()

func (*JobInfo) String

func (x *JobInfo) String() string

func (*JobInfo) Validate

func (m *JobInfo) Validate() error

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

func (m *JobInfo) ValidateAll() error

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 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) Descriptor() ([]byte, []int)

Deprecated: Use Links.ProtoReflect.Descriptor instead.

func (*Links) GetImprint

func (x *Links) GetImprint() string

func (*Links) GetPrivacyPolicy

func (x *Links) GetPrivacyPolicy() string

func (*Links) ProtoMessage

func (*Links) ProtoMessage()

func (*Links) ProtoReflect

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

func (*Links) Reset

func (x *Links) Reset()

func (*Links) String

func (x *Links) String() string

func (*Links) Validate

func (m *Links) Validate() error

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

func (m *Links) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Perm.ProtoReflect.Descriptor instead.

func (*Perm) GetCategory

func (x *Perm) GetCategory() string

func (*Perm) GetName

func (x *Perm) GetName() string

func (*Perm) ProtoMessage

func (*Perm) ProtoMessage()

func (*Perm) ProtoReflect

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

func (*Perm) Reset

func (x *Perm) Reset()

func (*Perm) String

func (x *Perm) String() string

func (*Perm) Validate

func (m *Perm) Validate() error

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

func (m *Perm) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Perms.ProtoReflect.Descriptor instead.

func (*Perms) GetDefault

func (x *Perms) GetDefault() []*Perm

func (*Perms) ProtoMessage

func (*Perms) ProtoMessage()

func (*Perms) ProtoReflect

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

func (*Perms) Reset

func (x *Perms) Reset()

func (*Perms) String

func (x *Perms) String() string

func (*Perms) Validate

func (m *Perms) Validate() error

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

func (m *Perms) ValidateAll() error

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

Cause function returns cause value.

func (UnemployedJobValidationError) Error

Error satisfies the builtin error interface

func (UnemployedJobValidationError) ErrorName

func (e UnemployedJobValidationError) ErrorName() string

ErrorName returns error name.

func (UnemployedJobValidationError) Field

Field function returns field value.

func (UnemployedJobValidationError) Key

Key function returns key value.

func (UnemployedJobValidationError) Reason

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

Cause function returns cause value.

func (UserTrackerValidationError) Error

Error satisfies the builtin error interface

func (UserTrackerValidationError) ErrorName

func (e UserTrackerValidationError) ErrorName() string

ErrorName returns error name.

func (UserTrackerValidationError) Field

Field function returns field value.

func (UserTrackerValidationError) Key

Key function returns key value.

func (UserTrackerValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Website.ProtoReflect.Descriptor instead.

func (x *Website) GetLinks() *Links

func (*Website) GetStatsPage added in v0.9.2

func (x *Website) GetStatsPage() bool

func (*Website) ProtoMessage

func (*Website) ProtoMessage()

func (*Website) ProtoReflect

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

func (*Website) Reset

func (x *Website) Reset()

func (*Website) String

func (x *Website) String() string

func (*Website) Validate

func (m *Website) Validate() error

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

func (m *Website) ValidateAll() error

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.

Jump to

Keyboard shortcuts

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