Documentation ¶
Index ¶
- Constants
- Variables
- type Job
- func (*Job) Descriptor() ([]byte, []int)deprecated
- func (x *Job) GetGrades() []*JobGrade
- func (x *Job) GetJob() string
- func (x *Job) GetLabel() string
- func (x *Job) GetName() string
- func (*Job) ProtoMessage()
- func (x *Job) ProtoReflect() protoreflect.Message
- func (x *Job) Reset()
- func (x *Job) SetJobLabel(label string)
- func (x *Job) String() string
- func (m *Job) Validate() error
- func (m *Job) ValidateAll() error
- type JobGrade
- func (*JobGrade) Descriptor() ([]byte, []int)deprecated
- func (x *JobGrade) GetGrade() int32
- func (x *JobGrade) GetJobName() string
- func (x *JobGrade) GetLabel() string
- func (*JobGrade) ProtoMessage()
- func (x *JobGrade) ProtoReflect() protoreflect.Message
- func (x *JobGrade) Reset()
- func (x *JobGrade) String() string
- func (m *JobGrade) Validate() error
- func (m *JobGrade) ValidateAll() error
- type JobGradeMultiError
- type JobGradeValidationError
- type JobMultiError
- type JobProps
- func (x *JobProps) Default(job string)
- func (*JobProps) Descriptor() ([]byte, []int)deprecated
- func (x *JobProps) GetJob() string
- func (x *JobProps) GetLivemapMarkerColor() string
- func (x *JobProps) GetQuickButtons() string
- func (x *JobProps) GetTheme() string
- func (*JobProps) ProtoMessage()
- func (x *JobProps) ProtoReflect() protoreflect.Message
- func (x *JobProps) Reset()
- func (x *JobProps) String() string
- func (m *JobProps) Validate() error
- func (m *JobProps) ValidateAll() error
- type JobPropsMultiError
- type JobPropsValidationError
- type JobValidationError
Constants ¶
const DefaultLivemapMarkerColor = "5C7AFF"
Variables ¶
var File_resources_jobs_jobs_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Job ¶
type Job struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" sql:"primary_key" alias:"name"` // @gotags: sql:"primary_key" alias:"name" Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty" alias:"label"` // @gotags: alias:"label" Grades []*JobGrade `protobuf:"bytes,3,rep,name=grades,proto3" json:"grades,omitempty"` // contains filtered or unexported fields }
func (*Job) Descriptor
deprecated
func (*Job) ProtoMessage ¶
func (*Job) ProtoMessage()
func (*Job) ProtoReflect ¶
func (x *Job) ProtoReflect() protoreflect.Message
func (*Job) SetJobLabel ¶
func (*Job) Validate ¶
Validate checks the field values on Job with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Job) ValidateAll ¶
ValidateAll checks the field values on Job with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in JobMultiError, or nil if none found.
type JobGrade ¶
type JobGrade struct { JobName *string `protobuf:"bytes,1,opt,name=job_name,json=jobName,proto3,oneof" json:"job_name,omitempty" alias:"job_name"` // @gotags: alias:"job_name" Grade int32 `protobuf:"varint,2,opt,name=grade,proto3" json:"grade,omitempty" alias:"grade"` // @gotags: alias:"grade" Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty" alias:"label"` // @gotags: alias:"label" // contains filtered or unexported fields }
func (*JobGrade) Descriptor
deprecated
func (*JobGrade) GetJobName ¶
func (*JobGrade) ProtoMessage ¶
func (*JobGrade) ProtoMessage()
func (*JobGrade) ProtoReflect ¶
func (x *JobGrade) ProtoReflect() protoreflect.Message
func (*JobGrade) Validate ¶
Validate checks the field values on JobGrade with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*JobGrade) ValidateAll ¶
ValidateAll checks the field values on JobGrade with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in JobGradeMultiError, or nil if none found.
type JobGradeMultiError ¶
type JobGradeMultiError []error
JobGradeMultiError is an error wrapping multiple validation errors returned by JobGrade.ValidateAll() if the designated constraints aren't met.
func (JobGradeMultiError) AllErrors ¶
func (m JobGradeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (JobGradeMultiError) Error ¶
func (m JobGradeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type JobGradeValidationError ¶
type JobGradeValidationError struct {
// contains filtered or unexported fields
}
JobGradeValidationError is the validation error returned by JobGrade.Validate if the designated constraints aren't met.
func (JobGradeValidationError) Cause ¶
func (e JobGradeValidationError) Cause() error
Cause function returns cause value.
func (JobGradeValidationError) Error ¶
func (e JobGradeValidationError) Error() string
Error satisfies the builtin error interface
func (JobGradeValidationError) ErrorName ¶
func (e JobGradeValidationError) ErrorName() string
ErrorName returns error name.
func (JobGradeValidationError) Field ¶
func (e JobGradeValidationError) Field() string
Field function returns field value.
func (JobGradeValidationError) Key ¶
func (e JobGradeValidationError) Key() bool
Key function returns key value.
func (JobGradeValidationError) Reason ¶
func (e JobGradeValidationError) Reason() string
Reason function returns reason value.
type JobMultiError ¶
type JobMultiError []error
JobMultiError is an error wrapping multiple validation errors returned by Job.ValidateAll() if the designated constraints aren't met.
func (JobMultiError) AllErrors ¶
func (m JobMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (JobMultiError) Error ¶
func (m JobMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type JobProps ¶
type JobProps struct { Job string `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty" alias:"job"` // @gotags: alias:"job" Theme string `protobuf:"bytes,2,opt,name=theme,proto3" json:"theme,omitempty" alias:"theme"` // @gotags: alias:"theme" LivemapMarkerColor string `` // @gotags: alias:"livemap_marker_color" /* 146-byte string literal not displayed */ QuickButtons string `protobuf:"bytes,4,opt,name=quick_buttons,json=quickButtons,proto3" json:"quick_buttons,omitempty" alias:"quick_buttons"` // @gotags: alias:"quick_buttons" // contains filtered or unexported fields }
func (*JobProps) Descriptor
deprecated
func (*JobProps) GetLivemapMarkerColor ¶
func (*JobProps) GetQuickButtons ¶
func (*JobProps) ProtoMessage ¶
func (*JobProps) ProtoMessage()
func (*JobProps) ProtoReflect ¶
func (x *JobProps) ProtoReflect() protoreflect.Message
func (*JobProps) Validate ¶
Validate checks the field values on JobProps with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*JobProps) ValidateAll ¶
ValidateAll checks the field values on JobProps with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in JobPropsMultiError, or nil if none found.
type JobPropsMultiError ¶
type JobPropsMultiError []error
JobPropsMultiError is an error wrapping multiple validation errors returned by JobProps.ValidateAll() if the designated constraints aren't met.
func (JobPropsMultiError) AllErrors ¶
func (m JobPropsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (JobPropsMultiError) Error ¶
func (m JobPropsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type JobPropsValidationError ¶
type JobPropsValidationError struct {
// contains filtered or unexported fields
}
JobPropsValidationError is the validation error returned by JobProps.Validate if the designated constraints aren't met.
func (JobPropsValidationError) Cause ¶
func (e JobPropsValidationError) Cause() error
Cause function returns cause value.
func (JobPropsValidationError) Error ¶
func (e JobPropsValidationError) Error() string
Error satisfies the builtin error interface
func (JobPropsValidationError) ErrorName ¶
func (e JobPropsValidationError) ErrorName() string
ErrorName returns error name.
func (JobPropsValidationError) Field ¶
func (e JobPropsValidationError) Field() string
Field function returns field value.
func (JobPropsValidationError) Key ¶
func (e JobPropsValidationError) Key() bool
Key function returns key value.
func (JobPropsValidationError) Reason ¶
func (e JobPropsValidationError) Reason() string
Reason function returns reason value.
type JobValidationError ¶
type JobValidationError struct {
// contains filtered or unexported fields
}
JobValidationError is the validation error returned by Job.Validate if the designated constraints aren't met.
func (JobValidationError) Cause ¶
func (e JobValidationError) Cause() error
Cause function returns cause value.
func (JobValidationError) Error ¶
func (e JobValidationError) Error() string
Error satisfies the builtin error interface
func (JobValidationError) ErrorName ¶
func (e JobValidationError) ErrorName() string
ErrorName returns error name.
func (JobValidationError) Field ¶
func (e JobValidationError) Field() string
Field function returns field value.
func (JobValidationError) Key ¶
func (e JobValidationError) Key() bool
Key function returns key value.
func (JobValidationError) Reason ¶
func (e JobValidationError) Reason() string
Reason function returns reason value.