jobs

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CONDUCT_TYPE_name = map[int32]string{
		0: "NEUTRAL",
		1: "POSITIVE",
		2: "NEGATIVE",
		3: "WARN",
		4: "SUSPENSION",
	}
	CONDUCT_TYPE_value = map[string]int32{
		"NEUTRAL":    0,
		"POSITIVE":   1,
		"NEGATIVE":   2,
		"WARN":       3,
		"SUSPENSION": 4,
	}
)

Enum value maps for CONDUCT_TYPE.

View Source
var (
	REQUEST_TYPE_name = map[int32]string{
		0: "ABSENCE",
	}
	REQUEST_TYPE_value = map[string]int32{
		"ABSENCE": 0,
	}
)

Enum value maps for REQUEST_TYPE.

View Source
var File_resources_jobs_conduct_proto protoreflect.FileDescriptor
View Source
var File_resources_jobs_requests_proto protoreflect.FileDescriptor
View Source
var File_resources_jobs_training_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CONDUCT_TYPE added in v0.8.0

type CONDUCT_TYPE int32
const (
	CONDUCT_TYPE_NEUTRAL    CONDUCT_TYPE = 0
	CONDUCT_TYPE_POSITIVE   CONDUCT_TYPE = 1
	CONDUCT_TYPE_NEGATIVE   CONDUCT_TYPE = 2
	CONDUCT_TYPE_WARN       CONDUCT_TYPE = 3
	CONDUCT_TYPE_SUSPENSION CONDUCT_TYPE = 4
)

func (CONDUCT_TYPE) Descriptor added in v0.8.0

func (CONDUCT_TYPE) Enum added in v0.8.0

func (x CONDUCT_TYPE) Enum() *CONDUCT_TYPE

func (CONDUCT_TYPE) EnumDescriptor deprecated added in v0.8.0

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

Deprecated: Use CONDUCT_TYPE.Descriptor instead.

func (CONDUCT_TYPE) Number added in v0.8.0

func (CONDUCT_TYPE) String added in v0.8.0

func (x CONDUCT_TYPE) String() string

func (CONDUCT_TYPE) Type added in v0.8.0

type ConductEntry added in v0.8.0

type ConductEntry struct {
	Id           uint64               `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id"
	CreatedAt    *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
	UpdatedAt    *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"`
	Job          string               `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"`
	Type         CONDUCT_TYPE         `protobuf:"varint,5,opt,name=type,proto3,enum=resources.jobs.CONDUCT_TYPE" json:"type,omitempty"`
	ExpiresAt    *timestamp.Timestamp `protobuf:"bytes,6,opt,name=expires_at,json=expiresAt,proto3,oneof" json:"expires_at,omitempty"`
	TargetUserId int32                `protobuf:"varint,7,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"`
	TargetUser   *users.UserShort     `protobuf:"bytes,8,opt,name=target_user,json=targetUser,proto3,oneof" json:"target_user,omitempty"`
	CreatorId    int32                `protobuf:"varint,9,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"`
	Creator      *users.UserShort     `protobuf:"bytes,10,opt,name=creator,proto3,oneof" json:"creator,omitempty"`
	// contains filtered or unexported fields
}

func (*ConductEntry) Descriptor deprecated added in v0.8.0

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

Deprecated: Use ConductEntry.ProtoReflect.Descriptor instead.

func (*ConductEntry) GetCreatedAt added in v0.8.0

func (x *ConductEntry) GetCreatedAt() *timestamp.Timestamp

func (*ConductEntry) GetCreator added in v0.8.0

func (x *ConductEntry) GetCreator() *users.UserShort

func (*ConductEntry) GetCreatorId added in v0.8.0

func (x *ConductEntry) GetCreatorId() int32

func (*ConductEntry) GetExpiresAt added in v0.8.0

func (x *ConductEntry) GetExpiresAt() *timestamp.Timestamp

func (*ConductEntry) GetId added in v0.8.0

func (x *ConductEntry) GetId() uint64

func (*ConductEntry) GetJob added in v0.8.0

func (x *ConductEntry) GetJob() string

func (*ConductEntry) GetTargetUser added in v0.8.0

func (x *ConductEntry) GetTargetUser() *users.UserShort

func (*ConductEntry) GetTargetUserId added in v0.8.0

func (x *ConductEntry) GetTargetUserId() int32

func (*ConductEntry) GetType added in v0.8.0

func (x *ConductEntry) GetType() CONDUCT_TYPE

func (*ConductEntry) GetUpdatedAt added in v0.8.0

func (x *ConductEntry) GetUpdatedAt() *timestamp.Timestamp

func (*ConductEntry) ProtoMessage added in v0.8.0

func (*ConductEntry) ProtoMessage()

func (*ConductEntry) ProtoReflect added in v0.8.0

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

func (*ConductEntry) Reset added in v0.8.0

func (x *ConductEntry) Reset()

func (*ConductEntry) String added in v0.8.0

func (x *ConductEntry) String() string

func (*ConductEntry) Validate added in v0.8.0

func (m *ConductEntry) Validate() error

Validate checks the field values on ConductEntry 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 (*ConductEntry) ValidateAll added in v0.8.0

func (m *ConductEntry) ValidateAll() error

ValidateAll checks the field values on ConductEntry 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 ConductEntryMultiError, or nil if none found.

type ConductEntryMultiError added in v0.8.0

type ConductEntryMultiError []error

ConductEntryMultiError is an error wrapping multiple validation errors returned by ConductEntry.ValidateAll() if the designated constraints aren't met.

func (ConductEntryMultiError) AllErrors added in v0.8.0

func (m ConductEntryMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ConductEntryMultiError) Error added in v0.8.0

func (m ConductEntryMultiError) Error() string

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

type ConductEntryValidationError added in v0.8.0

type ConductEntryValidationError struct {
	// contains filtered or unexported fields
}

ConductEntryValidationError is the validation error returned by ConductEntry.Validate if the designated constraints aren't met.

func (ConductEntryValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (ConductEntryValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (ConductEntryValidationError) ErrorName added in v0.8.0

func (e ConductEntryValidationError) ErrorName() string

ErrorName returns error name.

func (ConductEntryValidationError) Field added in v0.8.0

Field function returns field value.

func (ConductEntryValidationError) Key added in v0.8.0

Key function returns key value.

func (ConductEntryValidationError) Reason added in v0.8.0

Reason function returns reason value.

type REQUEST_TYPE added in v0.8.0

type REQUEST_TYPE int32
const (
	REQUEST_TYPE_ABSENCE REQUEST_TYPE = 0
)

func (REQUEST_TYPE) Descriptor added in v0.8.0

func (REQUEST_TYPE) Enum added in v0.8.0

func (x REQUEST_TYPE) Enum() *REQUEST_TYPE

func (REQUEST_TYPE) EnumDescriptor deprecated added in v0.8.0

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

Deprecated: Use REQUEST_TYPE.Descriptor instead.

func (REQUEST_TYPE) Number added in v0.8.0

func (REQUEST_TYPE) String added in v0.8.0

func (x REQUEST_TYPE) String() string

func (REQUEST_TYPE) Type added in v0.8.0

type RequestEntry added in v0.8.0

type RequestEntry struct {
	Id        uint64               `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id"
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
	UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"`
	Job       string               `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"`
	Type      REQUEST_TYPE         `protobuf:"varint,5,opt,name=type,proto3,enum=resources.jobs.REQUEST_TYPE" json:"type,omitempty"`
	ExpiresAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=expires_at,json=expiresAt,proto3,oneof" json:"expires_at,omitempty"`
	// TODO what info do we need for requests? begin and end time?
	CreatorId int32            `protobuf:"varint,9,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"`
	Creator   *users.UserShort `protobuf:"bytes,10,opt,name=creator,proto3,oneof" json:"creator,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestEntry) Descriptor deprecated added in v0.8.0

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

Deprecated: Use RequestEntry.ProtoReflect.Descriptor instead.

func (*RequestEntry) GetCreatedAt added in v0.8.0

func (x *RequestEntry) GetCreatedAt() *timestamp.Timestamp

func (*RequestEntry) GetCreator added in v0.8.0

func (x *RequestEntry) GetCreator() *users.UserShort

func (*RequestEntry) GetCreatorId added in v0.8.0

func (x *RequestEntry) GetCreatorId() int32

func (*RequestEntry) GetExpiresAt added in v0.8.0

func (x *RequestEntry) GetExpiresAt() *timestamp.Timestamp

func (*RequestEntry) GetId added in v0.8.0

func (x *RequestEntry) GetId() uint64

func (*RequestEntry) GetJob added in v0.8.0

func (x *RequestEntry) GetJob() string

func (*RequestEntry) GetType added in v0.8.0

func (x *RequestEntry) GetType() REQUEST_TYPE

func (*RequestEntry) GetUpdatedAt added in v0.8.0

func (x *RequestEntry) GetUpdatedAt() *timestamp.Timestamp

func (*RequestEntry) ProtoMessage added in v0.8.0

func (*RequestEntry) ProtoMessage()

func (*RequestEntry) ProtoReflect added in v0.8.0

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

func (*RequestEntry) Reset added in v0.8.0

func (x *RequestEntry) Reset()

func (*RequestEntry) String added in v0.8.0

func (x *RequestEntry) String() string

func (*RequestEntry) Validate added in v0.8.0

func (m *RequestEntry) Validate() error

Validate checks the field values on RequestEntry 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 (*RequestEntry) ValidateAll added in v0.8.0

func (m *RequestEntry) ValidateAll() error

ValidateAll checks the field values on RequestEntry 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 RequestEntryMultiError, or nil if none found.

type RequestEntryMultiError added in v0.8.0

type RequestEntryMultiError []error

RequestEntryMultiError is an error wrapping multiple validation errors returned by RequestEntry.ValidateAll() if the designated constraints aren't met.

func (RequestEntryMultiError) AllErrors added in v0.8.0

func (m RequestEntryMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RequestEntryMultiError) Error added in v0.8.0

func (m RequestEntryMultiError) Error() string

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

type RequestEntryValidationError added in v0.8.0

type RequestEntryValidationError struct {
	// contains filtered or unexported fields
}

RequestEntryValidationError is the validation error returned by RequestEntry.Validate if the designated constraints aren't met.

func (RequestEntryValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (RequestEntryValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (RequestEntryValidationError) ErrorName added in v0.8.0

func (e RequestEntryValidationError) ErrorName() string

ErrorName returns error name.

func (RequestEntryValidationError) Field added in v0.8.0

Field function returns field value.

func (RequestEntryValidationError) Key added in v0.8.0

Key function returns key value.

func (RequestEntryValidationError) Reason added in v0.8.0

Reason function returns reason value.

type TrainingModule added in v0.8.0

type TrainingModule struct {
	Id           uint64               `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id"
	CreatedAt    *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
	UpdatedAt    *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"`
	Job          string               `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"`
	Open         bool                 `protobuf:"varint,5,opt,name=open,proto3" json:"open,omitempty"`
	MinimumGrade int32                `protobuf:"varint,6,opt,name=minimum_grade,json=minimumGrade,proto3" json:"minimum_grade,omitempty"`
	Title        string               `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"`
	Description  string               `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*TrainingModule) Descriptor deprecated added in v0.8.0

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

Deprecated: Use TrainingModule.ProtoReflect.Descriptor instead.

func (*TrainingModule) GetCreatedAt added in v0.8.0

func (x *TrainingModule) GetCreatedAt() *timestamp.Timestamp

func (*TrainingModule) GetDescription added in v0.8.0

func (x *TrainingModule) GetDescription() string

func (*TrainingModule) GetId added in v0.8.0

func (x *TrainingModule) GetId() uint64

func (*TrainingModule) GetJob added in v0.8.0

func (x *TrainingModule) GetJob() string

func (*TrainingModule) GetMinimumGrade added in v0.8.0

func (x *TrainingModule) GetMinimumGrade() int32

func (*TrainingModule) GetOpen added in v0.8.0

func (x *TrainingModule) GetOpen() bool

func (*TrainingModule) GetTitle added in v0.8.0

func (x *TrainingModule) GetTitle() string

func (*TrainingModule) GetUpdatedAt added in v0.8.0

func (x *TrainingModule) GetUpdatedAt() *timestamp.Timestamp

func (*TrainingModule) ProtoMessage added in v0.8.0

func (*TrainingModule) ProtoMessage()

func (*TrainingModule) ProtoReflect added in v0.8.0

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

func (*TrainingModule) Reset added in v0.8.0

func (x *TrainingModule) Reset()

func (*TrainingModule) String added in v0.8.0

func (x *TrainingModule) String() string

func (*TrainingModule) Validate added in v0.8.0

func (m *TrainingModule) Validate() error

Validate checks the field values on TrainingModule 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 (*TrainingModule) ValidateAll added in v0.8.0

func (m *TrainingModule) ValidateAll() error

ValidateAll checks the field values on TrainingModule 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 TrainingModuleMultiError, or nil if none found.

type TrainingModuleMultiError added in v0.8.0

type TrainingModuleMultiError []error

TrainingModuleMultiError is an error wrapping multiple validation errors returned by TrainingModule.ValidateAll() if the designated constraints aren't met.

func (TrainingModuleMultiError) AllErrors added in v0.8.0

func (m TrainingModuleMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TrainingModuleMultiError) Error added in v0.8.0

func (m TrainingModuleMultiError) Error() string

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

type TrainingModuleValidationError added in v0.8.0

type TrainingModuleValidationError struct {
	// contains filtered or unexported fields
}

TrainingModuleValidationError is the validation error returned by TrainingModule.Validate if the designated constraints aren't met.

func (TrainingModuleValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (TrainingModuleValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (TrainingModuleValidationError) ErrorName added in v0.8.0

func (e TrainingModuleValidationError) ErrorName() string

ErrorName returns error name.

func (TrainingModuleValidationError) Field added in v0.8.0

Field function returns field value.

func (TrainingModuleValidationError) Key added in v0.8.0

Key function returns key value.

func (TrainingModuleValidationError) Reason added in v0.8.0

Reason function returns reason value.

Jump to

Keyboard shortcuts

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