centrum

package
v0.8.20 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnitAttributeStatic               = "static"
	UnitAttributeNoDispatchAutoAssign = "no_dispatch_auto_assign"

	DispatchAttributeMultiple  = "multiple"
	DispatchAttributeDuplicate = "duplicate"
	DispatchAttributeTooOld    = "too_old"
)

Variables

View Source
var (
	StatusDispatch_name = map[int32]string{
		0:  "STATUS_DISPATCH_UNSPECIFIED",
		1:  "STATUS_DISPATCH_NEW",
		2:  "STATUS_DISPATCH_UNASSIGNED",
		3:  "STATUS_DISPATCH_UPDATED",
		4:  "STATUS_DISPATCH_UNIT_ASSIGNED",
		5:  "STATUS_DISPATCH_UNIT_UNASSIGNED",
		6:  "STATUS_DISPATCH_UNIT_ACCEPTED",
		7:  "STATUS_DISPATCH_UNIT_DECLINED",
		8:  "STATUS_DISPATCH_EN_ROUTE",
		9:  "STATUS_DISPATCH_ON_SCENE",
		10: "STATUS_DISPATCH_NEED_ASSISTANCE",
		11: "STATUS_DISPATCH_COMPLETED",
		12: "STATUS_DISPATCH_CANCELLED",
		13: "STATUS_DISPATCH_ARCHIVED",
	}
	StatusDispatch_value = map[string]int32{
		"STATUS_DISPATCH_UNSPECIFIED":     0,
		"STATUS_DISPATCH_NEW":             1,
		"STATUS_DISPATCH_UNASSIGNED":      2,
		"STATUS_DISPATCH_UPDATED":         3,
		"STATUS_DISPATCH_UNIT_ASSIGNED":   4,
		"STATUS_DISPATCH_UNIT_UNASSIGNED": 5,
		"STATUS_DISPATCH_UNIT_ACCEPTED":   6,
		"STATUS_DISPATCH_UNIT_DECLINED":   7,
		"STATUS_DISPATCH_EN_ROUTE":        8,
		"STATUS_DISPATCH_ON_SCENE":        9,
		"STATUS_DISPATCH_NEED_ASSISTANCE": 10,
		"STATUS_DISPATCH_COMPLETED":       11,
		"STATUS_DISPATCH_CANCELLED":       12,
		"STATUS_DISPATCH_ARCHIVED":        13,
	}
)

Enum value maps for StatusDispatch.

View Source
var (
	TakeDispatchResp_name = map[int32]string{
		0: "TAKE_DISPATCH_RESP_UNSPECIFIED",
		1: "TAKE_DISPATCH_RESP_TIMEOUT",
		2: "TAKE_DISPATCH_RESP_ACCEPTED",
		3: "TAKE_DISPATCH_RESP_DECLINED",
	}
	TakeDispatchResp_value = map[string]int32{
		"TAKE_DISPATCH_RESP_UNSPECIFIED": 0,
		"TAKE_DISPATCH_RESP_TIMEOUT":     1,
		"TAKE_DISPATCH_RESP_ACCEPTED":    2,
		"TAKE_DISPATCH_RESP_DECLINED":    3,
	}
)

Enum value maps for TakeDispatchResp.

View Source
var (
	CentrumMode_name = map[int32]string{
		0: "CENTRUM_MODE_UNSPECIFIED",
		1: "CENTRUM_MODE_MANUAL",
		2: "CENTRUM_MODE_CENTRAL_COMMAND",
		3: "CENTRUM_MODE_AUTO_ROUND_ROBIN",
		4: "CENTRUM_MODE_SIMPLIFIED",
	}
	CentrumMode_value = map[string]int32{
		"CENTRUM_MODE_UNSPECIFIED":      0,
		"CENTRUM_MODE_MANUAL":           1,
		"CENTRUM_MODE_CENTRAL_COMMAND":  2,
		"CENTRUM_MODE_AUTO_ROUND_ROBIN": 3,
		"CENTRUM_MODE_SIMPLIFIED":       4,
	}
)

Enum value maps for CentrumMode.

View Source
var (
	StatusUnit_name = map[int32]string{
		0: "STATUS_UNIT_UNSPECIFIED",
		1: "STATUS_UNIT_UNKNOWN",
		2: "STATUS_UNIT_USER_ADDED",
		3: "STATUS_UNIT_USER_REMOVED",
		4: "STATUS_UNIT_UNAVAILABLE",
		5: "STATUS_UNIT_AVAILABLE",
		6: "STATUS_UNIT_ON_BREAK",
		7: "STATUS_UNIT_BUSY",
	}
	StatusUnit_value = map[string]int32{
		"STATUS_UNIT_UNSPECIFIED":  0,
		"STATUS_UNIT_UNKNOWN":      1,
		"STATUS_UNIT_USER_ADDED":   2,
		"STATUS_UNIT_USER_REMOVED": 3,
		"STATUS_UNIT_UNAVAILABLE":  4,
		"STATUS_UNIT_AVAILABLE":    5,
		"STATUS_UNIT_ON_BREAK":     6,
		"STATUS_UNIT_BUSY":         7,
	}
)

Enum value maps for StatusUnit.

View Source
var File_resources_centrum_dispatches_proto protoreflect.FileDescriptor
View Source
var File_resources_centrum_general_proto protoreflect.FileDescriptor
View Source
var File_resources_centrum_settings_proto protoreflect.FileDescriptor
View Source
var File_resources_centrum_units_proto protoreflect.FileDescriptor

Functions

func DispatchPointMatchFn added in v0.8.20

func DispatchPointMatchFn(dspId uint64) func(p orb.Pointer) bool

Types

type Attributes

type Attributes struct {
	List []string `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*Attributes) Add added in v0.8.14

func (x *Attributes) Add(attribute string) bool

func (*Attributes) Descriptor deprecated

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

Deprecated: Use Attributes.ProtoReflect.Descriptor instead.

func (*Attributes) GetList

func (x *Attributes) GetList() []string

func (*Attributes) Has added in v0.8.14

func (x *Attributes) Has(attribute string) bool

func (*Attributes) ProtoMessage

func (*Attributes) ProtoMessage()

func (*Attributes) ProtoReflect

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

func (*Attributes) Remove added in v0.8.14

func (x *Attributes) Remove(attribute string) bool

func (*Attributes) Reset

func (x *Attributes) Reset()

func (*Attributes) Scan

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

func (*Attributes) String

func (x *Attributes) String() string

func (*Attributes) Validate

func (m *Attributes) Validate() error

Validate checks the field values on Attributes 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 (*Attributes) ValidateAll

func (m *Attributes) ValidateAll() error

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

func (*Attributes) Value

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

Scan implements driver.Valuer for protobuf Attributes.

type AttributesMultiError

type AttributesMultiError []error

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

func (AttributesMultiError) AllErrors

func (m AttributesMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AttributesMultiError) Error

func (m AttributesMultiError) Error() string

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

type AttributesValidationError

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

AttributesValidationError is the validation error returned by Attributes.Validate if the designated constraints aren't met.

func (AttributesValidationError) Cause

func (e AttributesValidationError) Cause() error

Cause function returns cause value.

func (AttributesValidationError) Error

Error satisfies the builtin error interface

func (AttributesValidationError) ErrorName

func (e AttributesValidationError) ErrorName() string

ErrorName returns error name.

func (AttributesValidationError) Field

Field function returns field value.

func (AttributesValidationError) Key

Key function returns key value.

func (AttributesValidationError) Reason

func (e AttributesValidationError) Reason() string

Reason function returns reason value.

type CentrumMode

type CentrumMode int32
const (
	CentrumMode_CENTRUM_MODE_UNSPECIFIED      CentrumMode = 0
	CentrumMode_CENTRUM_MODE_MANUAL           CentrumMode = 1
	CentrumMode_CENTRUM_MODE_CENTRAL_COMMAND  CentrumMode = 2
	CentrumMode_CENTRUM_MODE_AUTO_ROUND_ROBIN CentrumMode = 3
	CentrumMode_CENTRUM_MODE_SIMPLIFIED       CentrumMode = 4
)

func (CentrumMode) Descriptor

func (CentrumMode) Enum

func (x CentrumMode) Enum() *CentrumMode

func (CentrumMode) EnumDescriptor deprecated

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

Deprecated: Use CentrumMode.Descriptor instead.

func (CentrumMode) Number

func (x CentrumMode) Number() protoreflect.EnumNumber

func (CentrumMode) String

func (x CentrumMode) String() string

func (CentrumMode) Type

type Dispatch

type Dispatch 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"`
	Status    *DispatchStatus      `protobuf:"bytes,5,opt,name=status,proto3,oneof" json:"status,omitempty"`
	// @sanitize
	Message string `protobuf:"bytes,7,opt,name=message,proto3" json:"message,omitempty"`
	// @sanitize
	Description *string     `protobuf:"bytes,8,opt,name=description,proto3,oneof" json:"description,omitempty"`
	Attributes  *Attributes `protobuf:"bytes,9,opt,name=attributes,proto3,oneof" json:"attributes,omitempty"`
	X           float64     `protobuf:"fixed64,10,opt,name=x,proto3" json:"x,omitempty"`
	Y           float64     `protobuf:"fixed64,11,opt,name=y,proto3" json:"y,omitempty"`
	// @sanitize
	Postal    *string               `protobuf:"bytes,12,opt,name=postal,proto3,oneof" json:"postal,omitempty"`
	Anon      bool                  `protobuf:"varint,13,opt,name=anon,proto3" json:"anon,omitempty"`
	CreatorId *int32                `protobuf:"varint,14,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"`
	Creator   *users.User           `protobuf:"bytes,15,opt,name=creator,proto3,oneof" json:"creator,omitempty"`
	Units     []*DispatchAssignment `protobuf:"bytes,16,rep,name=units,proto3" json:"units,omitempty"`
	// contains filtered or unexported fields
}

func (*Dispatch) Descriptor deprecated

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

Deprecated: Use Dispatch.ProtoReflect.Descriptor instead.

func (*Dispatch) GetAnon

func (x *Dispatch) GetAnon() bool

func (*Dispatch) GetAttributes

func (x *Dispatch) GetAttributes() *Attributes

func (*Dispatch) GetCreatedAt

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

func (*Dispatch) GetCreator

func (x *Dispatch) GetCreator() *users.User

func (*Dispatch) GetCreatorId

func (x *Dispatch) GetCreatorId() int32

func (*Dispatch) GetDescription

func (x *Dispatch) GetDescription() string

func (*Dispatch) GetId

func (x *Dispatch) GetId() uint64

func (*Dispatch) GetJob

func (x *Dispatch) GetJob() string

func (*Dispatch) GetMessage

func (x *Dispatch) GetMessage() string

func (*Dispatch) GetPostal

func (x *Dispatch) GetPostal() string

func (*Dispatch) GetStatus

func (x *Dispatch) GetStatus() *DispatchStatus

func (*Dispatch) GetUnits

func (x *Dispatch) GetUnits() []*DispatchAssignment

func (*Dispatch) GetUpdatedAt

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

func (*Dispatch) GetX

func (x *Dispatch) GetX() float64

func (*Dispatch) GetY

func (x *Dispatch) GetY() float64

func (*Dispatch) Merge

func (x *Dispatch) Merge(in *Dispatch) *Dispatch

func (*Dispatch) Point

func (x *Dispatch) Point() orb.Point

func (*Dispatch) ProtoMessage

func (*Dispatch) ProtoMessage()

func (*Dispatch) ProtoReflect

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

func (*Dispatch) Reset

func (x *Dispatch) Reset()

func (*Dispatch) Sanitize

func (m *Dispatch) Sanitize() error

func (*Dispatch) String

func (x *Dispatch) String() string

func (*Dispatch) Validate

func (m *Dispatch) Validate() error

Validate checks the field values on Dispatch 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 (*Dispatch) ValidateAll

func (m *Dispatch) ValidateAll() error

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

type DispatchAssignment

type DispatchAssignment struct {
	DispatchId uint64 `` // @gotags: sql:"primary_key" alias:"dispatch_id"
	/* 130-byte string literal not displayed */
	UnitId    uint64               `protobuf:"varint,2,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty" sql:"primary_key" alias:"unit_id"` // @gotags: sql:"primary_key" alias:"unit_id"
	Unit      *Unit                `protobuf:"bytes,3,opt,name=unit,proto3,oneof" json:"unit,omitempty"`
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
	ExpiresAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=expires_at,json=expiresAt,proto3,oneof" json:"expires_at,omitempty"`
	// contains filtered or unexported fields
}

func (*DispatchAssignment) Descriptor deprecated

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

Deprecated: Use DispatchAssignment.ProtoReflect.Descriptor instead.

func (*DispatchAssignment) GetCreatedAt

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

func (*DispatchAssignment) GetDispatchId

func (x *DispatchAssignment) GetDispatchId() uint64

func (*DispatchAssignment) GetExpiresAt

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

func (*DispatchAssignment) GetUnit

func (x *DispatchAssignment) GetUnit() *Unit

func (*DispatchAssignment) GetUnitId

func (x *DispatchAssignment) GetUnitId() uint64

func (*DispatchAssignment) ProtoMessage

func (*DispatchAssignment) ProtoMessage()

func (*DispatchAssignment) ProtoReflect

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

func (*DispatchAssignment) Reset

func (x *DispatchAssignment) Reset()

func (*DispatchAssignment) String

func (x *DispatchAssignment) String() string

func (*DispatchAssignment) Validate

func (m *DispatchAssignment) Validate() error

Validate checks the field values on DispatchAssignment 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 (*DispatchAssignment) ValidateAll

func (m *DispatchAssignment) ValidateAll() error

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

type DispatchAssignmentMultiError

type DispatchAssignmentMultiError []error

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

func (DispatchAssignmentMultiError) AllErrors

func (m DispatchAssignmentMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DispatchAssignmentMultiError) Error

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

type DispatchAssignmentValidationError

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

DispatchAssignmentValidationError is the validation error returned by DispatchAssignment.Validate if the designated constraints aren't met.

func (DispatchAssignmentValidationError) Cause

Cause function returns cause value.

func (DispatchAssignmentValidationError) Error

Error satisfies the builtin error interface

func (DispatchAssignmentValidationError) ErrorName

ErrorName returns error name.

func (DispatchAssignmentValidationError) Field

Field function returns field value.

func (DispatchAssignmentValidationError) Key

Key function returns key value.

func (DispatchAssignmentValidationError) Reason

Reason function returns reason value.

type DispatchAssignments

type DispatchAssignments struct {
	DispatchId uint64                `protobuf:"varint,1,opt,name=dispatch_id,json=dispatchId,proto3" json:"dispatch_id,omitempty"`
	Job        string                `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"`
	Units      []*DispatchAssignment `protobuf:"bytes,3,rep,name=units,proto3" json:"units,omitempty"`
	// contains filtered or unexported fields
}

func (*DispatchAssignments) Descriptor deprecated

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

Deprecated: Use DispatchAssignments.ProtoReflect.Descriptor instead.

func (*DispatchAssignments) GetDispatchId

func (x *DispatchAssignments) GetDispatchId() uint64

func (*DispatchAssignments) GetJob

func (x *DispatchAssignments) GetJob() string

func (*DispatchAssignments) GetUnits

func (x *DispatchAssignments) GetUnits() []*DispatchAssignment

func (*DispatchAssignments) ProtoMessage

func (*DispatchAssignments) ProtoMessage()

func (*DispatchAssignments) ProtoReflect

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

func (*DispatchAssignments) Reset

func (x *DispatchAssignments) Reset()

func (*DispatchAssignments) String

func (x *DispatchAssignments) String() string

func (*DispatchAssignments) Validate

func (m *DispatchAssignments) Validate() error

Validate checks the field values on DispatchAssignments 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 (*DispatchAssignments) ValidateAll

func (m *DispatchAssignments) ValidateAll() error

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

type DispatchAssignmentsMultiError

type DispatchAssignmentsMultiError []error

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

func (DispatchAssignmentsMultiError) AllErrors

func (m DispatchAssignmentsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DispatchAssignmentsMultiError) Error

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

type DispatchAssignmentsValidationError

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

DispatchAssignmentsValidationError is the validation error returned by DispatchAssignments.Validate if the designated constraints aren't met.

func (DispatchAssignmentsValidationError) Cause

Cause function returns cause value.

func (DispatchAssignmentsValidationError) Error

Error satisfies the builtin error interface

func (DispatchAssignmentsValidationError) ErrorName

ErrorName returns error name.

func (DispatchAssignmentsValidationError) Field

Field function returns field value.

func (DispatchAssignmentsValidationError) Key

Key function returns key value.

func (DispatchAssignmentsValidationError) Reason

Reason function returns reason value.

type DispatchMultiError

type DispatchMultiError []error

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

func (DispatchMultiError) AllErrors

func (m DispatchMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DispatchMultiError) Error

func (m DispatchMultiError) Error() string

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

type DispatchStatus

type DispatchStatus 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"`
	DispatchId uint64               `protobuf:"varint,3,opt,name=dispatch_id,json=dispatchId,proto3" json:"dispatch_id,omitempty"`
	UnitId     *uint64              `protobuf:"varint,4,opt,name=unit_id,json=unitId,proto3,oneof" json:"unit_id,omitempty"`
	Unit       *Unit                `protobuf:"bytes,5,opt,name=unit,proto3,oneof" json:"unit,omitempty"`
	Status     StatusDispatch       `protobuf:"varint,6,opt,name=status,proto3,enum=resources.centrum.StatusDispatch" json:"status,omitempty"`
	// @sanitize
	Reason *string `protobuf:"bytes,7,opt,name=reason,proto3,oneof" json:"reason,omitempty"`
	// @sanitize
	Code   *string          `protobuf:"bytes,8,opt,name=code,proto3,oneof" json:"code,omitempty"`
	UserId *int32           `protobuf:"varint,9,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"`
	User   *users.UserShort `protobuf:"bytes,10,opt,name=user,proto3,oneof" json:"user,omitempty"`
	X      *float64         `protobuf:"fixed64,11,opt,name=x,proto3,oneof" json:"x,omitempty"`
	Y      *float64         `protobuf:"fixed64,12,opt,name=y,proto3,oneof" json:"y,omitempty"`
	// @sanitize
	Postal *string `protobuf:"bytes,13,opt,name=postal,proto3,oneof" json:"postal,omitempty"`
	// contains filtered or unexported fields
}

func (*DispatchStatus) Descriptor deprecated

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

Deprecated: Use DispatchStatus.ProtoReflect.Descriptor instead.

func (*DispatchStatus) GetCode

func (x *DispatchStatus) GetCode() string

func (*DispatchStatus) GetCreatedAt

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

func (*DispatchStatus) GetDispatchId

func (x *DispatchStatus) GetDispatchId() uint64

func (*DispatchStatus) GetId

func (x *DispatchStatus) GetId() uint64

func (*DispatchStatus) GetPostal

func (x *DispatchStatus) GetPostal() string

func (*DispatchStatus) GetReason

func (x *DispatchStatus) GetReason() string

func (*DispatchStatus) GetStatus

func (x *DispatchStatus) GetStatus() StatusDispatch

func (*DispatchStatus) GetUnit

func (x *DispatchStatus) GetUnit() *Unit

func (*DispatchStatus) GetUnitId

func (x *DispatchStatus) GetUnitId() uint64

func (*DispatchStatus) GetUser

func (x *DispatchStatus) GetUser() *users.UserShort

func (*DispatchStatus) GetUserId

func (x *DispatchStatus) GetUserId() int32

func (*DispatchStatus) GetX

func (x *DispatchStatus) GetX() float64

func (*DispatchStatus) GetY

func (x *DispatchStatus) GetY() float64

func (*DispatchStatus) Point

func (x *DispatchStatus) Point() orb.Point

func (*DispatchStatus) ProtoMessage

func (*DispatchStatus) ProtoMessage()

func (*DispatchStatus) ProtoReflect

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

func (*DispatchStatus) Reset

func (x *DispatchStatus) Reset()

func (*DispatchStatus) Sanitize

func (m *DispatchStatus) Sanitize() error

func (*DispatchStatus) String

func (x *DispatchStatus) String() string

func (*DispatchStatus) Validate

func (m *DispatchStatus) Validate() error

Validate checks the field values on DispatchStatus 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 (*DispatchStatus) ValidateAll

func (m *DispatchStatus) ValidateAll() error

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

type DispatchStatusMultiError

type DispatchStatusMultiError []error

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

func (DispatchStatusMultiError) AllErrors

func (m DispatchStatusMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DispatchStatusMultiError) Error

func (m DispatchStatusMultiError) Error() string

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

type DispatchStatusValidationError

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

DispatchStatusValidationError is the validation error returned by DispatchStatus.Validate if the designated constraints aren't met.

func (DispatchStatusValidationError) Cause

Cause function returns cause value.

func (DispatchStatusValidationError) Error

Error satisfies the builtin error interface

func (DispatchStatusValidationError) ErrorName

func (e DispatchStatusValidationError) ErrorName() string

ErrorName returns error name.

func (DispatchStatusValidationError) Field

Field function returns field value.

func (DispatchStatusValidationError) Key

Key function returns key value.

func (DispatchStatusValidationError) Reason

Reason function returns reason value.

type DispatchValidationError

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

DispatchValidationError is the validation error returned by Dispatch.Validate if the designated constraints aren't met.

func (DispatchValidationError) Cause

func (e DispatchValidationError) Cause() error

Cause function returns cause value.

func (DispatchValidationError) Error

func (e DispatchValidationError) Error() string

Error satisfies the builtin error interface

func (DispatchValidationError) ErrorName

func (e DispatchValidationError) ErrorName() string

ErrorName returns error name.

func (DispatchValidationError) Field

func (e DispatchValidationError) Field() string

Field function returns field value.

func (DispatchValidationError) Key

func (e DispatchValidationError) Key() bool

Key function returns key value.

func (DispatchValidationError) Reason

func (e DispatchValidationError) Reason() string

Reason function returns reason value.

type Disponents

type Disponents struct {
	Job        string             `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"`
	Disponents []*users.UserShort `protobuf:"bytes,2,rep,name=disponents,proto3" json:"disponents,omitempty"`
	// contains filtered or unexported fields
}

func (*Disponents) Descriptor deprecated

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

Deprecated: Use Disponents.ProtoReflect.Descriptor instead.

func (*Disponents) GetDisponents

func (x *Disponents) GetDisponents() []*users.UserShort

func (*Disponents) GetJob

func (x *Disponents) GetJob() string

func (*Disponents) Merge

func (x *Disponents) Merge(in *Disponents) *Disponents

func (*Disponents) ProtoMessage

func (*Disponents) ProtoMessage()

func (*Disponents) ProtoReflect

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

func (*Disponents) Reset

func (x *Disponents) Reset()

func (*Disponents) String

func (x *Disponents) String() string

func (*Disponents) Validate

func (m *Disponents) Validate() error

Validate checks the field values on Disponents 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 (*Disponents) ValidateAll

func (m *Disponents) ValidateAll() error

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

type DisponentsMultiError

type DisponentsMultiError []error

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

func (DisponentsMultiError) AllErrors

func (m DisponentsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DisponentsMultiError) Error

func (m DisponentsMultiError) Error() string

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

type DisponentsValidationError

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

DisponentsValidationError is the validation error returned by Disponents.Validate if the designated constraints aren't met.

func (DisponentsValidationError) Cause

func (e DisponentsValidationError) Cause() error

Cause function returns cause value.

func (DisponentsValidationError) Error

Error satisfies the builtin error interface

func (DisponentsValidationError) ErrorName

func (e DisponentsValidationError) ErrorName() string

ErrorName returns error name.

func (DisponentsValidationError) Field

Field function returns field value.

func (DisponentsValidationError) Key

Key function returns key value.

func (DisponentsValidationError) Reason

func (e DisponentsValidationError) Reason() string

Reason function returns reason value.

type PredefinedStatus added in v0.8.20

type PredefinedStatus struct {
	UnitStatus     []string `protobuf:"bytes,1,rep,name=unit_status,json=unitStatus,proto3" json:"unit_status,omitempty"`
	DispatchStatus []string `protobuf:"bytes,2,rep,name=dispatch_status,json=dispatchStatus,proto3" json:"dispatch_status,omitempty"`
	// contains filtered or unexported fields
}

func (*PredefinedStatus) Descriptor deprecated added in v0.8.20

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

Deprecated: Use PredefinedStatus.ProtoReflect.Descriptor instead.

func (*PredefinedStatus) GetDispatchStatus added in v0.8.20

func (x *PredefinedStatus) GetDispatchStatus() []string

func (*PredefinedStatus) GetUnitStatus added in v0.8.20

func (x *PredefinedStatus) GetUnitStatus() []string

func (*PredefinedStatus) ProtoMessage added in v0.8.20

func (*PredefinedStatus) ProtoMessage()

func (*PredefinedStatus) ProtoReflect added in v0.8.20

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

func (*PredefinedStatus) Reset added in v0.8.20

func (x *PredefinedStatus) Reset()

func (*PredefinedStatus) String added in v0.8.20

func (x *PredefinedStatus) String() string

func (*PredefinedStatus) Validate added in v0.8.20

func (m *PredefinedStatus) Validate() error

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

func (m *PredefinedStatus) ValidateAll() error

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

type PredefinedStatusMultiError added in v0.8.20

type PredefinedStatusMultiError []error

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

func (PredefinedStatusMultiError) AllErrors added in v0.8.20

func (m PredefinedStatusMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PredefinedStatusMultiError) Error added in v0.8.20

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

type PredefinedStatusValidationError added in v0.8.20

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

PredefinedStatusValidationError is the validation error returned by PredefinedStatus.Validate if the designated constraints aren't met.

func (PredefinedStatusValidationError) Cause added in v0.8.20

Cause function returns cause value.

func (PredefinedStatusValidationError) Error added in v0.8.20

Error satisfies the builtin error interface

func (PredefinedStatusValidationError) ErrorName added in v0.8.20

ErrorName returns error name.

func (PredefinedStatusValidationError) Field added in v0.8.20

Field function returns field value.

func (PredefinedStatusValidationError) Key added in v0.8.20

Key function returns key value.

func (PredefinedStatusValidationError) Reason added in v0.8.20

Reason function returns reason value.

type Settings

type Settings struct {
	Job              string            `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"`
	Enabled          bool              `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Mode             CentrumMode       `protobuf:"varint,3,opt,name=mode,proto3,enum=resources.centrum.CentrumMode" json:"mode,omitempty"`
	FallbackMode     CentrumMode       `` /* 133-byte string literal not displayed */
	PredefinedStatus *PredefinedStatus `protobuf:"bytes,5,opt,name=predefined_status,json=predefinedStatus,proto3,oneof" json:"predefined_status,omitempty"`
	// contains filtered or unexported fields
}

func (*Settings) Descriptor deprecated

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

Deprecated: Use Settings.ProtoReflect.Descriptor instead.

func (*Settings) GetEnabled

func (x *Settings) GetEnabled() bool

func (*Settings) GetFallbackMode

func (x *Settings) GetFallbackMode() CentrumMode

func (*Settings) GetJob

func (x *Settings) GetJob() string

func (*Settings) GetMode

func (x *Settings) GetMode() CentrumMode

func (*Settings) GetPredefinedStatus added in v0.8.20

func (x *Settings) GetPredefinedStatus() *PredefinedStatus

func (*Settings) ProtoMessage

func (*Settings) ProtoMessage()

func (*Settings) ProtoReflect

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

func (*Settings) Reset

func (x *Settings) Reset()

func (*Settings) String

func (x *Settings) String() string

func (*Settings) Validate

func (m *Settings) Validate() error

Validate checks the field values on Settings 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 (*Settings) ValidateAll

func (m *Settings) ValidateAll() error

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

type SettingsMultiError

type SettingsMultiError []error

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

func (SettingsMultiError) AllErrors

func (m SettingsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SettingsMultiError) Error

func (m SettingsMultiError) Error() string

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

type SettingsValidationError

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

SettingsValidationError is the validation error returned by Settings.Validate if the designated constraints aren't met.

func (SettingsValidationError) Cause

func (e SettingsValidationError) Cause() error

Cause function returns cause value.

func (SettingsValidationError) Error

func (e SettingsValidationError) Error() string

Error satisfies the builtin error interface

func (SettingsValidationError) ErrorName

func (e SettingsValidationError) ErrorName() string

ErrorName returns error name.

func (SettingsValidationError) Field

func (e SettingsValidationError) Field() string

Field function returns field value.

func (SettingsValidationError) Key

func (e SettingsValidationError) Key() bool

Key function returns key value.

func (SettingsValidationError) Reason

func (e SettingsValidationError) Reason() string

Reason function returns reason value.

type StatusDispatch

type StatusDispatch int32
const (
	StatusDispatch_STATUS_DISPATCH_UNSPECIFIED     StatusDispatch = 0
	StatusDispatch_STATUS_DISPATCH_NEW             StatusDispatch = 1
	StatusDispatch_STATUS_DISPATCH_UNASSIGNED      StatusDispatch = 2
	StatusDispatch_STATUS_DISPATCH_UPDATED         StatusDispatch = 3
	StatusDispatch_STATUS_DISPATCH_UNIT_ASSIGNED   StatusDispatch = 4
	StatusDispatch_STATUS_DISPATCH_UNIT_UNASSIGNED StatusDispatch = 5
	StatusDispatch_STATUS_DISPATCH_UNIT_ACCEPTED   StatusDispatch = 6
	StatusDispatch_STATUS_DISPATCH_UNIT_DECLINED   StatusDispatch = 7
	StatusDispatch_STATUS_DISPATCH_EN_ROUTE        StatusDispatch = 8
	StatusDispatch_STATUS_DISPATCH_ON_SCENE        StatusDispatch = 9
	StatusDispatch_STATUS_DISPATCH_NEED_ASSISTANCE StatusDispatch = 10
	StatusDispatch_STATUS_DISPATCH_COMPLETED       StatusDispatch = 11
	StatusDispatch_STATUS_DISPATCH_CANCELLED       StatusDispatch = 12
	StatusDispatch_STATUS_DISPATCH_ARCHIVED        StatusDispatch = 13
)

func (StatusDispatch) Descriptor

func (StatusDispatch) Enum

func (x StatusDispatch) Enum() *StatusDispatch

func (StatusDispatch) EnumDescriptor deprecated

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

Deprecated: Use StatusDispatch.Descriptor instead.

func (StatusDispatch) Number

func (StatusDispatch) String

func (x StatusDispatch) String() string

func (StatusDispatch) Type

type StatusUnit

type StatusUnit int32
const (
	StatusUnit_STATUS_UNIT_UNSPECIFIED  StatusUnit = 0
	StatusUnit_STATUS_UNIT_UNKNOWN      StatusUnit = 1
	StatusUnit_STATUS_UNIT_USER_ADDED   StatusUnit = 2
	StatusUnit_STATUS_UNIT_USER_REMOVED StatusUnit = 3
	StatusUnit_STATUS_UNIT_UNAVAILABLE  StatusUnit = 4
	StatusUnit_STATUS_UNIT_AVAILABLE    StatusUnit = 5
	StatusUnit_STATUS_UNIT_ON_BREAK     StatusUnit = 6
	StatusUnit_STATUS_UNIT_BUSY         StatusUnit = 7
)

func (StatusUnit) Descriptor

func (StatusUnit) Descriptor() protoreflect.EnumDescriptor

func (StatusUnit) Enum

func (x StatusUnit) Enum() *StatusUnit

func (StatusUnit) EnumDescriptor deprecated

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

Deprecated: Use StatusUnit.Descriptor instead.

func (StatusUnit) Number

func (x StatusUnit) Number() protoreflect.EnumNumber

func (StatusUnit) String

func (x StatusUnit) String() string

func (StatusUnit) Type

type TakeDispatchResp

type TakeDispatchResp int32
const (
	TakeDispatchResp_TAKE_DISPATCH_RESP_UNSPECIFIED TakeDispatchResp = 0
	TakeDispatchResp_TAKE_DISPATCH_RESP_TIMEOUT     TakeDispatchResp = 1
	TakeDispatchResp_TAKE_DISPATCH_RESP_ACCEPTED    TakeDispatchResp = 2
	TakeDispatchResp_TAKE_DISPATCH_RESP_DECLINED    TakeDispatchResp = 3
)

func (TakeDispatchResp) Descriptor

func (TakeDispatchResp) Enum

func (TakeDispatchResp) EnumDescriptor deprecated

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

Deprecated: Use TakeDispatchResp.Descriptor instead.

func (TakeDispatchResp) Number

func (TakeDispatchResp) String

func (x TakeDispatchResp) String() string

func (TakeDispatchResp) Type

type Unit

type Unit 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"`
	// @sanitize
	Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	// @sanitize
	Initials string `protobuf:"bytes,6,opt,name=initials,proto3" json:"initials,omitempty"`
	Color    string `protobuf:"bytes,7,opt,name=color,proto3" json:"color,omitempty"`
	// @sanitize
	Description *string           `protobuf:"bytes,8,opt,name=description,proto3,oneof" json:"description,omitempty"`
	Status      *UnitStatus       `protobuf:"bytes,9,opt,name=status,proto3,oneof" json:"status,omitempty"`
	Users       []*UnitAssignment `protobuf:"bytes,11,rep,name=users,proto3" json:"users,omitempty"`
	Attributes  *Attributes       `protobuf:"bytes,12,opt,name=attributes,proto3,oneof" json:"attributes,omitempty"`
	HomePostal  *string           `protobuf:"bytes,13,opt,name=home_postal,json=homePostal,proto3,oneof" json:"home_postal,omitempty"`
	// contains filtered or unexported fields
}

func (*Unit) Descriptor deprecated

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

Deprecated: Use Unit.ProtoReflect.Descriptor instead.

func (*Unit) GetAttributes added in v0.8.14

func (x *Unit) GetAttributes() *Attributes

func (*Unit) GetColor

func (x *Unit) GetColor() string

func (*Unit) GetCreatedAt

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

func (*Unit) GetDescription

func (x *Unit) GetDescription() string

func (*Unit) GetHomePostal added in v0.8.19

func (x *Unit) GetHomePostal() string

func (*Unit) GetId

func (x *Unit) GetId() uint64

func (*Unit) GetInitials

func (x *Unit) GetInitials() string

func (*Unit) GetJob

func (x *Unit) GetJob() string

func (*Unit) GetName

func (x *Unit) GetName() string

func (*Unit) GetStatus

func (x *Unit) GetStatus() *UnitStatus

func (*Unit) GetUpdatedAt

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

func (*Unit) GetUsers

func (x *Unit) GetUsers() []*UnitAssignment

func (*Unit) Merge

func (x *Unit) Merge(in *Unit) *Unit

func (*Unit) ProtoMessage

func (*Unit) ProtoMessage()

func (*Unit) ProtoReflect

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

func (*Unit) Reset

func (x *Unit) Reset()

func (*Unit) Sanitize

func (m *Unit) Sanitize() error

func (*Unit) String

func (x *Unit) String() string

func (*Unit) Validate

func (m *Unit) Validate() error

Validate checks the field values on Unit 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 (*Unit) ValidateAll

func (m *Unit) ValidateAll() error

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

type UnitAssignment

type UnitAssignment struct {
	UnitId uint64           `protobuf:"varint,1,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty" sql:"primary_key" alias:"unit_id"` // @gotags: sql:"primary_key" alias:"unit_id"
	UserId int32            `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" sql:"primary_key" alias:"user_id"` // @gotags: sql:"primary_key" alias:"user_id"
	User   *users.UserShort `protobuf:"bytes,3,opt,name=user,proto3,oneof" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*UnitAssignment) Descriptor deprecated

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

Deprecated: Use UnitAssignment.ProtoReflect.Descriptor instead.

func (*UnitAssignment) GetUnitId

func (x *UnitAssignment) GetUnitId() uint64

func (*UnitAssignment) GetUser

func (x *UnitAssignment) GetUser() *users.UserShort

func (*UnitAssignment) GetUserId

func (x *UnitAssignment) GetUserId() int32

func (*UnitAssignment) ProtoMessage

func (*UnitAssignment) ProtoMessage()

func (*UnitAssignment) ProtoReflect

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

func (*UnitAssignment) Reset

func (x *UnitAssignment) Reset()

func (*UnitAssignment) String

func (x *UnitAssignment) String() string

func (*UnitAssignment) Validate

func (m *UnitAssignment) Validate() error

Validate checks the field values on UnitAssignment 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 (*UnitAssignment) ValidateAll

func (m *UnitAssignment) ValidateAll() error

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

type UnitAssignmentMultiError

type UnitAssignmentMultiError []error

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

func (UnitAssignmentMultiError) AllErrors

func (m UnitAssignmentMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UnitAssignmentMultiError) Error

func (m UnitAssignmentMultiError) Error() string

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

type UnitAssignmentValidationError

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

UnitAssignmentValidationError is the validation error returned by UnitAssignment.Validate if the designated constraints aren't met.

func (UnitAssignmentValidationError) Cause

Cause function returns cause value.

func (UnitAssignmentValidationError) Error

Error satisfies the builtin error interface

func (UnitAssignmentValidationError) ErrorName

func (e UnitAssignmentValidationError) ErrorName() string

ErrorName returns error name.

func (UnitAssignmentValidationError) Field

Field function returns field value.

func (UnitAssignmentValidationError) Key

Key function returns key value.

func (UnitAssignmentValidationError) Reason

Reason function returns reason value.

type UnitAssignments

type UnitAssignments struct {
	UnitId uint64            `protobuf:"varint,1,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty"`
	Job    string            `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"`
	Users  []*UnitAssignment `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*UnitAssignments) Descriptor deprecated

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

Deprecated: Use UnitAssignments.ProtoReflect.Descriptor instead.

func (*UnitAssignments) GetJob

func (x *UnitAssignments) GetJob() string

func (*UnitAssignments) GetUnitId

func (x *UnitAssignments) GetUnitId() uint64

func (*UnitAssignments) GetUsers

func (x *UnitAssignments) GetUsers() []*UnitAssignment

func (*UnitAssignments) ProtoMessage

func (*UnitAssignments) ProtoMessage()

func (*UnitAssignments) ProtoReflect

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

func (*UnitAssignments) Reset

func (x *UnitAssignments) Reset()

func (*UnitAssignments) String

func (x *UnitAssignments) String() string

func (*UnitAssignments) Validate

func (m *UnitAssignments) Validate() error

Validate checks the field values on UnitAssignments 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 (*UnitAssignments) ValidateAll

func (m *UnitAssignments) ValidateAll() error

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

type UnitAssignmentsMultiError

type UnitAssignmentsMultiError []error

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

func (UnitAssignmentsMultiError) AllErrors

func (m UnitAssignmentsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UnitAssignmentsMultiError) Error

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

type UnitAssignmentsValidationError

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

UnitAssignmentsValidationError is the validation error returned by UnitAssignments.Validate if the designated constraints aren't met.

func (UnitAssignmentsValidationError) Cause

Cause function returns cause value.

func (UnitAssignmentsValidationError) Error

Error satisfies the builtin error interface

func (UnitAssignmentsValidationError) ErrorName

func (e UnitAssignmentsValidationError) ErrorName() string

ErrorName returns error name.

func (UnitAssignmentsValidationError) Field

Field function returns field value.

func (UnitAssignmentsValidationError) Key

Key function returns key value.

func (UnitAssignmentsValidationError) Reason

Reason function returns reason value.

type UnitMultiError

type UnitMultiError []error

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

func (UnitMultiError) AllErrors

func (m UnitMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UnitMultiError) Error

func (m UnitMultiError) Error() string

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

type UnitStatus

type UnitStatus 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"`
	UnitId    uint64               `protobuf:"varint,3,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty"`
	Unit      *Unit                `protobuf:"bytes,4,opt,name=unit,proto3,oneof" json:"unit,omitempty"`
	Status    StatusUnit           `protobuf:"varint,5,opt,name=status,proto3,enum=resources.centrum.StatusUnit" json:"status,omitempty"`
	// @sanitize
	Reason *string `protobuf:"bytes,6,opt,name=reason,proto3,oneof" json:"reason,omitempty"`
	// @sanitize
	Code   *string          `protobuf:"bytes,7,opt,name=code,proto3,oneof" json:"code,omitempty"`
	UserId *int32           `protobuf:"varint,8,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"`
	User   *users.UserShort `protobuf:"bytes,9,opt,name=user,proto3,oneof" json:"user,omitempty"`
	X      *float64         `protobuf:"fixed64,10,opt,name=x,proto3,oneof" json:"x,omitempty"`
	Y      *float64         `protobuf:"fixed64,11,opt,name=y,proto3,oneof" json:"y,omitempty"`
	// @sanitize
	Postal    *string          `protobuf:"bytes,12,opt,name=postal,proto3,oneof" json:"postal,omitempty"`
	CreatorId *int32           `protobuf:"varint,13,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"`
	Creator   *users.UserShort `protobuf:"bytes,14,opt,name=creator,proto3,oneof" json:"creator,omitempty"`
	// contains filtered or unexported fields
}

func (*UnitStatus) Descriptor deprecated

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

Deprecated: Use UnitStatus.ProtoReflect.Descriptor instead.

func (*UnitStatus) GetCode

func (x *UnitStatus) GetCode() string

func (*UnitStatus) GetCreatedAt

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

func (*UnitStatus) GetCreator

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

func (*UnitStatus) GetCreatorId

func (x *UnitStatus) GetCreatorId() int32

func (*UnitStatus) GetId

func (x *UnitStatus) GetId() uint64

func (*UnitStatus) GetPostal

func (x *UnitStatus) GetPostal() string

func (*UnitStatus) GetReason

func (x *UnitStatus) GetReason() string

func (*UnitStatus) GetStatus

func (x *UnitStatus) GetStatus() StatusUnit

func (*UnitStatus) GetUnit

func (x *UnitStatus) GetUnit() *Unit

func (*UnitStatus) GetUnitId

func (x *UnitStatus) GetUnitId() uint64

func (*UnitStatus) GetUser

func (x *UnitStatus) GetUser() *users.UserShort

func (*UnitStatus) GetUserId

func (x *UnitStatus) GetUserId() int32

func (*UnitStatus) GetX

func (x *UnitStatus) GetX() float64

func (*UnitStatus) GetY

func (x *UnitStatus) GetY() float64

func (*UnitStatus) Point

func (x *UnitStatus) Point() orb.Point

func (*UnitStatus) ProtoMessage

func (*UnitStatus) ProtoMessage()

func (*UnitStatus) ProtoReflect

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

func (*UnitStatus) Reset

func (x *UnitStatus) Reset()

func (*UnitStatus) Sanitize

func (m *UnitStatus) Sanitize() error

func (*UnitStatus) String

func (x *UnitStatus) String() string

func (*UnitStatus) Validate

func (m *UnitStatus) Validate() error

Validate checks the field values on UnitStatus 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 (*UnitStatus) ValidateAll

func (m *UnitStatus) ValidateAll() error

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

type UnitStatusMultiError

type UnitStatusMultiError []error

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

func (UnitStatusMultiError) AllErrors

func (m UnitStatusMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UnitStatusMultiError) Error

func (m UnitStatusMultiError) Error() string

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

type UnitStatusValidationError

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

UnitStatusValidationError is the validation error returned by UnitStatus.Validate if the designated constraints aren't met.

func (UnitStatusValidationError) Cause

func (e UnitStatusValidationError) Cause() error

Cause function returns cause value.

func (UnitStatusValidationError) Error

Error satisfies the builtin error interface

func (UnitStatusValidationError) ErrorName

func (e UnitStatusValidationError) ErrorName() string

ErrorName returns error name.

func (UnitStatusValidationError) Field

Field function returns field value.

func (UnitStatusValidationError) Key

Key function returns key value.

func (UnitStatusValidationError) Reason

func (e UnitStatusValidationError) Reason() string

Reason function returns reason value.

type UnitValidationError

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

UnitValidationError is the validation error returned by Unit.Validate if the designated constraints aren't met.

func (UnitValidationError) Cause

func (e UnitValidationError) Cause() error

Cause function returns cause value.

func (UnitValidationError) Error

func (e UnitValidationError) Error() string

Error satisfies the builtin error interface

func (UnitValidationError) ErrorName

func (e UnitValidationError) ErrorName() string

ErrorName returns error name.

func (UnitValidationError) Field

func (e UnitValidationError) Field() string

Field function returns field value.

func (UnitValidationError) Key

func (e UnitValidationError) Key() bool

Key function returns key value.

func (UnitValidationError) Reason

func (e UnitValidationError) Reason() string

Reason function returns reason value.

type UserUnitMapping

type UserUnitMapping struct {
	UnitId    uint64               `protobuf:"varint,1,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty"`
	Job       string               `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"`
	UserId    int32                `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*UserUnitMapping) Descriptor deprecated

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

Deprecated: Use UserUnitMapping.ProtoReflect.Descriptor instead.

func (*UserUnitMapping) GetCreatedAt

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

func (*UserUnitMapping) GetJob

func (x *UserUnitMapping) GetJob() string

func (*UserUnitMapping) GetUnitId

func (x *UserUnitMapping) GetUnitId() uint64

func (*UserUnitMapping) GetUserId

func (x *UserUnitMapping) GetUserId() int32

func (*UserUnitMapping) Merge

func (*UserUnitMapping) ProtoMessage

func (*UserUnitMapping) ProtoMessage()

func (*UserUnitMapping) ProtoReflect

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

func (*UserUnitMapping) Reset

func (x *UserUnitMapping) Reset()

func (*UserUnitMapping) String

func (x *UserUnitMapping) String() string

func (*UserUnitMapping) Validate

func (m *UserUnitMapping) Validate() error

Validate checks the field values on UserUnitMapping 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 (*UserUnitMapping) ValidateAll

func (m *UserUnitMapping) ValidateAll() error

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

type UserUnitMappingMultiError

type UserUnitMappingMultiError []error

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

func (UserUnitMappingMultiError) AllErrors

func (m UserUnitMappingMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserUnitMappingMultiError) Error

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

type UserUnitMappingValidationError

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

UserUnitMappingValidationError is the validation error returned by UserUnitMapping.Validate if the designated constraints aren't met.

func (UserUnitMappingValidationError) Cause

Cause function returns cause value.

func (UserUnitMappingValidationError) Error

Error satisfies the builtin error interface

func (UserUnitMappingValidationError) ErrorName

func (e UserUnitMappingValidationError) ErrorName() string

ErrorName returns error name.

func (UserUnitMappingValidationError) Field

Field function returns field value.

func (UserUnitMappingValidationError) Key

Key function returns key value.

func (UserUnitMappingValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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