rector

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	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 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 added in v0.8.21

type AppConfig struct {
	Auth        *Auth        `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"`
	Perms       *Perms       `protobuf:"bytes,2,opt,name=perms,proto3" json:"perms,omitempty"`
	Website     *Website     `protobuf:"bytes,3,opt,name=website,proto3" json:"website,omitempty"`
	JobInfo     *JobInfo     `protobuf:"bytes,4,opt,name=job_info,json=jobInfo,proto3" json:"job_info,omitempty"`
	UserTracker *UserTracker `protobuf:"bytes,5,opt,name=user_tracker,json=userTracker,proto3" json:"user_tracker,omitempty"`
	Discord     *Discord     `protobuf:"bytes,6,opt,name=discord,proto3" json:"discord,omitempty"`
	// contains filtered or unexported fields
}

func (*AppConfig) Default added in v0.8.21

func (x *AppConfig) Default()

func (*AppConfig) Descriptor deprecated added in v0.8.21

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

Deprecated: Use AppConfig.ProtoReflect.Descriptor instead.

func (*AppConfig) GetAuth added in v0.8.21

func (x *AppConfig) GetAuth() *Auth

func (*AppConfig) GetDiscord added in v0.8.21

func (x *AppConfig) GetDiscord() *Discord

func (*AppConfig) GetJobInfo added in v0.8.21

func (x *AppConfig) GetJobInfo() *JobInfo

func (*AppConfig) GetPerms added in v0.8.21

func (x *AppConfig) GetPerms() *Perms

func (*AppConfig) GetUserTracker added in v0.8.21

func (x *AppConfig) GetUserTracker() *UserTracker

func (*AppConfig) GetWebsite added in v0.8.21

func (x *AppConfig) GetWebsite() *Website

func (*AppConfig) ProtoMessage added in v0.8.21

func (*AppConfig) ProtoMessage()

func (*AppConfig) ProtoReflect added in v0.8.21

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

func (*AppConfig) Reset added in v0.8.21

func (x *AppConfig) Reset()

func (*AppConfig) Scan added in v0.8.21

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

Scan implements driver.Valuer for protobuf AppConfig.

func (*AppConfig) String added in v0.8.21

func (x *AppConfig) String() string

func (*AppConfig) Validate added in v0.8.21

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 added in v0.8.21

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 added in v0.8.21

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

Value marshals the value into driver.Valuer.

type AppConfigMultiError added in v0.8.21

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 added in v0.8.21

func (m AppConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AppConfigMultiError) Error added in v0.8.21

func (m AppConfigMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AppConfigValidationError added in v0.8.21

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 added in v0.8.21

func (e AppConfigValidationError) Cause() error

Cause function returns cause value.

func (AppConfigValidationError) Error added in v0.8.21

func (e AppConfigValidationError) Error() string

Error satisfies the builtin error interface

func (AppConfigValidationError) ErrorName added in v0.8.21

func (e AppConfigValidationError) ErrorName() string

ErrorName returns error name.

func (AppConfigValidationError) Field added in v0.8.21

func (e AppConfigValidationError) Field() string

Field function returns field value.

func (AppConfigValidationError) Key added in v0.8.21

Key function returns key value.

func (AppConfigValidationError) Reason added in v0.8.21

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 added in v0.8.14

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 added in v0.8.21

type Auth struct {
	SignupEnabled bool `protobuf:"varint,1,opt,name=signup_enabled,json=signupEnabled,proto3" json:"signup_enabled,omitempty"`
	// contains filtered or unexported fields
}

func (*Auth) Descriptor deprecated added in v0.8.21

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

Deprecated: Use Auth.ProtoReflect.Descriptor instead.

func (*Auth) GetSignupEnabled added in v0.8.21

func (x *Auth) GetSignupEnabled() bool

func (*Auth) ProtoMessage added in v0.8.21

func (*Auth) ProtoMessage()

func (*Auth) ProtoReflect added in v0.8.21

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

func (*Auth) Reset added in v0.8.21

func (x *Auth) Reset()

func (*Auth) String added in v0.8.21

func (x *Auth) String() string

func (*Auth) Validate added in v0.8.21

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 added in v0.8.21

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 added in v0.8.21

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 added in v0.8.21

func (m AuthMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AuthMultiError) Error added in v0.8.21

func (m AuthMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AuthValidationError added in v0.8.21

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 added in v0.8.21

func (e AuthValidationError) Cause() error

Cause function returns cause value.

func (AuthValidationError) Error added in v0.8.21

func (e AuthValidationError) Error() string

Error satisfies the builtin error interface

func (AuthValidationError) ErrorName added in v0.8.21

func (e AuthValidationError) ErrorName() string

ErrorName returns error name.

func (AuthValidationError) Field added in v0.8.21

func (e AuthValidationError) Field() string

Field function returns field value.

func (AuthValidationError) Key added in v0.8.21

func (e AuthValidationError) Key() bool

Key function returns key value.

func (AuthValidationError) Reason added in v0.8.21

func (e AuthValidationError) Reason() string

Reason function returns reason value.

type Discord added in v0.8.21

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"`
	// contains filtered or unexported fields
}

func (*Discord) Descriptor deprecated added in v0.8.21

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

Deprecated: Use Discord.ProtoReflect.Descriptor instead.

func (*Discord) GetEnabled added in v0.8.21

func (x *Discord) GetEnabled() bool

func (*Discord) GetInviteUrl added in v0.8.21

func (x *Discord) GetInviteUrl() string

func (*Discord) GetSyncInterval added in v0.8.21

func (x *Discord) GetSyncInterval() *durationpb.Duration

func (*Discord) ProtoMessage added in v0.8.21

func (*Discord) ProtoMessage()

func (*Discord) ProtoReflect added in v0.8.21

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

func (*Discord) Reset added in v0.8.21

func (x *Discord) Reset()

func (*Discord) String added in v0.8.21

func (x *Discord) String() string

func (*Discord) Validate added in v0.8.21

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 added in v0.8.21

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 DiscordMultiError added in v0.8.21

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 added in v0.8.21

func (m DiscordMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DiscordMultiError) Error added in v0.8.21

func (m DiscordMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DiscordValidationError added in v0.8.21

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 added in v0.8.21

func (e DiscordValidationError) Cause() error

Cause function returns cause value.

func (DiscordValidationError) Error added in v0.8.21

func (e DiscordValidationError) Error() string

Error satisfies the builtin error interface

func (DiscordValidationError) ErrorName added in v0.8.21

func (e DiscordValidationError) ErrorName() string

ErrorName returns error name.

func (DiscordValidationError) Field added in v0.8.21

func (e DiscordValidationError) Field() string

Field function returns field value.

func (DiscordValidationError) Key added in v0.8.21

func (e DiscordValidationError) Key() bool

Key function returns key value.

func (DiscordValidationError) Reason added in v0.8.21

func (e DiscordValidationError) Reason() string

Reason function returns reason value.

type EventType added in v0.8.3

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 added in v0.8.3

func (EventType) Descriptor() protoreflect.EnumDescriptor

func (EventType) Enum added in v0.8.3

func (x EventType) Enum() *EventType

func (EventType) EnumDescriptor deprecated added in v0.8.3

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

Deprecated: Use EventType.Descriptor instead.

func (EventType) Number added in v0.8.3

func (x EventType) Number() protoreflect.EnumNumber

func (EventType) String added in v0.8.3

func (x EventType) String() string

func (EventType) Type added in v0.8.3

type JobInfo added in v0.8.21

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 added in v0.8.21

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

Deprecated: Use JobInfo.ProtoReflect.Descriptor instead.

func (*JobInfo) GetHiddenJobs added in v0.8.21

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

func (*JobInfo) GetPublicJobs added in v0.8.21

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

func (*JobInfo) GetUnemployedJob added in v0.8.21

func (x *JobInfo) GetUnemployedJob() *UnemployedJob

func (*JobInfo) ProtoMessage added in v0.8.21

func (*JobInfo) ProtoMessage()

func (*JobInfo) ProtoReflect added in v0.8.21

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

func (*JobInfo) Reset added in v0.8.21

func (x *JobInfo) Reset()

func (*JobInfo) String added in v0.8.21

func (x *JobInfo) String() string

func (*JobInfo) Validate added in v0.8.21

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 added in v0.8.21

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 added in v0.8.21

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 added in v0.8.21

func (m JobInfoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (JobInfoMultiError) Error added in v0.8.21

func (m JobInfoMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type JobInfoValidationError added in v0.8.21

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 added in v0.8.21

func (e JobInfoValidationError) Cause() error

Cause function returns cause value.

func (JobInfoValidationError) Error added in v0.8.21

func (e JobInfoValidationError) Error() string

Error satisfies the builtin error interface

func (JobInfoValidationError) ErrorName added in v0.8.21

func (e JobInfoValidationError) ErrorName() string

ErrorName returns error name.

func (JobInfoValidationError) Field added in v0.8.21

func (e JobInfoValidationError) Field() string

Field function returns field value.

func (JobInfoValidationError) Key added in v0.8.21

func (e JobInfoValidationError) Key() bool

Key function returns key value.

func (JobInfoValidationError) Reason added in v0.8.21

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 added in v0.8.21

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

Deprecated: Use Links.ProtoReflect.Descriptor instead.

func (*Links) GetImprint added in v0.8.21

func (x *Links) GetImprint() string

func (*Links) GetPrivacyPolicy added in v0.8.21

func (x *Links) GetPrivacyPolicy() string

func (*Links) ProtoMessage added in v0.8.21

func (*Links) ProtoMessage()

func (*Links) ProtoReflect added in v0.8.21

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

func (*Links) Reset added in v0.8.21

func (x *Links) Reset()

func (*Links) String added in v0.8.21

func (x *Links) String() string

func (*Links) Validate added in v0.8.21

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 added in v0.8.21

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 added in v0.8.21

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 added in v0.8.21

func (m LinksMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LinksMultiError) Error added in v0.8.21

func (m LinksMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LinksValidationError added in v0.8.21

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 added in v0.8.21

func (e LinksValidationError) Cause() error

Cause function returns cause value.

func (LinksValidationError) Error added in v0.8.21

func (e LinksValidationError) Error() string

Error satisfies the builtin error interface

func (LinksValidationError) ErrorName added in v0.8.21

func (e LinksValidationError) ErrorName() string

ErrorName returns error name.

func (LinksValidationError) Field added in v0.8.21

func (e LinksValidationError) Field() string

Field function returns field value.

func (LinksValidationError) Key added in v0.8.21

func (e LinksValidationError) Key() bool

Key function returns key value.

func (LinksValidationError) Reason added in v0.8.21

func (e LinksValidationError) Reason() string

Reason function returns reason value.

type Perm added in v0.8.21

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 added in v0.8.21

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

Deprecated: Use Perm.ProtoReflect.Descriptor instead.

func (*Perm) GetCategory added in v0.8.21

func (x *Perm) GetCategory() string

func (*Perm) GetName added in v0.8.21

func (x *Perm) GetName() string

func (*Perm) ProtoMessage added in v0.8.21

func (*Perm) ProtoMessage()

func (*Perm) ProtoReflect added in v0.8.21

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

func (*Perm) Reset added in v0.8.21

func (x *Perm) Reset()

func (*Perm) String added in v0.8.21

func (x *Perm) String() string

func (*Perm) Validate added in v0.8.21

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 added in v0.8.21

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 added in v0.8.21

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 added in v0.8.21

func (m PermMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PermMultiError) Error added in v0.8.21

func (m PermMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PermValidationError added in v0.8.21

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 added in v0.8.21

func (e PermValidationError) Cause() error

Cause function returns cause value.

func (PermValidationError) Error added in v0.8.21

func (e PermValidationError) Error() string

Error satisfies the builtin error interface

func (PermValidationError) ErrorName added in v0.8.21

func (e PermValidationError) ErrorName() string

ErrorName returns error name.

func (PermValidationError) Field added in v0.8.21

func (e PermValidationError) Field() string

Field function returns field value.

func (PermValidationError) Key added in v0.8.21

func (e PermValidationError) Key() bool

Key function returns key value.

func (PermValidationError) Reason added in v0.8.21

func (e PermValidationError) Reason() string

Reason function returns reason value.

type Perms added in v0.8.21

type Perms struct {
	Default []*Perm `protobuf:"bytes,1,rep,name=default,proto3" json:"default,omitempty"`
	// contains filtered or unexported fields
}

func (*Perms) Descriptor deprecated added in v0.8.21

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

Deprecated: Use Perms.ProtoReflect.Descriptor instead.

func (*Perms) GetDefault added in v0.8.21

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

func (*Perms) ProtoMessage added in v0.8.21

func (*Perms) ProtoMessage()

func (*Perms) ProtoReflect added in v0.8.21

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

func (*Perms) Reset added in v0.8.21

func (x *Perms) Reset()

func (*Perms) String added in v0.8.21

func (x *Perms) String() string

func (*Perms) Validate added in v0.8.21

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 added in v0.8.21

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 added in v0.8.21

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 added in v0.8.21

func (m PermsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PermsMultiError) Error added in v0.8.21

func (m PermsMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PermsValidationError added in v0.8.21

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 added in v0.8.21

func (e PermsValidationError) Cause() error

Cause function returns cause value.

func (PermsValidationError) Error added in v0.8.21

func (e PermsValidationError) Error() string

Error satisfies the builtin error interface

func (PermsValidationError) ErrorName added in v0.8.21

func (e PermsValidationError) ErrorName() string

ErrorName returns error name.

func (PermsValidationError) Field added in v0.8.21

func (e PermsValidationError) Field() string

Field function returns field value.

func (PermsValidationError) Key added in v0.8.21

func (e PermsValidationError) Key() bool

Key function returns key value.

func (PermsValidationError) Reason added in v0.8.21

func (e PermsValidationError) Reason() string

Reason function returns reason value.

type UnemployedJob added in v0.8.21

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 added in v0.8.21

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

Deprecated: Use UnemployedJob.ProtoReflect.Descriptor instead.

func (*UnemployedJob) GetGrade added in v0.8.21

func (x *UnemployedJob) GetGrade() int32

func (*UnemployedJob) GetName added in v0.8.21

func (x *UnemployedJob) GetName() string

func (*UnemployedJob) ProtoMessage added in v0.8.21

func (*UnemployedJob) ProtoMessage()

func (*UnemployedJob) ProtoReflect added in v0.8.21

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

func (*UnemployedJob) Reset added in v0.8.21

func (x *UnemployedJob) Reset()

func (*UnemployedJob) String added in v0.8.21

func (x *UnemployedJob) String() string

func (*UnemployedJob) Validate added in v0.8.21

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 added in v0.8.21

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 added in v0.8.21

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 added in v0.8.21

func (m UnemployedJobMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UnemployedJobMultiError) Error added in v0.8.21

func (m UnemployedJobMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UnemployedJobValidationError added in v0.8.21

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 added in v0.8.21

Cause function returns cause value.

func (UnemployedJobValidationError) Error added in v0.8.21

Error satisfies the builtin error interface

func (UnemployedJobValidationError) ErrorName added in v0.8.21

func (e UnemployedJobValidationError) ErrorName() string

ErrorName returns error name.

func (UnemployedJobValidationError) Field added in v0.8.21

Field function returns field value.

func (UnemployedJobValidationError) Key added in v0.8.21

Key function returns key value.

func (UnemployedJobValidationError) Reason added in v0.8.21

Reason function returns reason value.

type UserTracker added in v0.8.21

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 added in v0.8.21

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

Deprecated: Use UserTracker.ProtoReflect.Descriptor instead.

func (*UserTracker) GetDbRefreshTime added in v0.8.21

func (x *UserTracker) GetDbRefreshTime() *durationpb.Duration

func (*UserTracker) GetLivemapJobs added in v0.8.21

func (x *UserTracker) GetLivemapJobs() []string

func (*UserTracker) GetRefreshTime added in v0.8.21

func (x *UserTracker) GetRefreshTime() *durationpb.Duration

func (*UserTracker) ProtoMessage added in v0.8.21

func (*UserTracker) ProtoMessage()

func (*UserTracker) ProtoReflect added in v0.8.21

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

func (*UserTracker) Reset added in v0.8.21

func (x *UserTracker) Reset()

func (*UserTracker) String added in v0.8.21

func (x *UserTracker) String() string

func (*UserTracker) Validate added in v0.8.21

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 added in v0.8.21

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 added in v0.8.21

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 added in v0.8.21

func (m UserTrackerMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserTrackerMultiError) Error added in v0.8.21

func (m UserTrackerMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserTrackerValidationError added in v0.8.21

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 added in v0.8.21

Cause function returns cause value.

func (UserTrackerValidationError) Error added in v0.8.21

Error satisfies the builtin error interface

func (UserTrackerValidationError) ErrorName added in v0.8.21

func (e UserTrackerValidationError) ErrorName() string

ErrorName returns error name.

func (UserTrackerValidationError) Field added in v0.8.21

Field function returns field value.

func (UserTrackerValidationError) Key added in v0.8.21

Key function returns key value.

func (UserTrackerValidationError) Reason added in v0.8.21

Reason function returns reason value.

type Website added in v0.8.21

type Website struct {
	Links *Links `protobuf:"bytes,1,opt,name=links,proto3" json:"links,omitempty"`
	// contains filtered or unexported fields
}

func (*Website) Descriptor deprecated added in v0.8.21

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

Deprecated: Use Website.ProtoReflect.Descriptor instead.

func (x *Website) GetLinks() *Links

func (*Website) ProtoMessage added in v0.8.21

func (*Website) ProtoMessage()

func (*Website) ProtoReflect added in v0.8.21

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

func (*Website) Reset added in v0.8.21

func (x *Website) Reset()

func (*Website) String added in v0.8.21

func (x *Website) String() string

func (*Website) Validate added in v0.8.21

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 added in v0.8.21

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 added in v0.8.21

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 added in v0.8.21

func (m WebsiteMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (WebsiteMultiError) Error added in v0.8.21

func (m WebsiteMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type WebsiteValidationError added in v0.8.21

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 added in v0.8.21

func (e WebsiteValidationError) Cause() error

Cause function returns cause value.

func (WebsiteValidationError) Error added in v0.8.21

func (e WebsiteValidationError) Error() string

Error satisfies the builtin error interface

func (WebsiteValidationError) ErrorName added in v0.8.21

func (e WebsiteValidationError) ErrorName() string

ErrorName returns error name.

func (WebsiteValidationError) Field added in v0.8.21

func (e WebsiteValidationError) Field() string

Field function returns field value.

func (WebsiteValidationError) Key added in v0.8.21

func (e WebsiteValidationError) Key() bool

Key function returns key value.

func (WebsiteValidationError) Reason added in v0.8.21

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