centrum

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 56 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CentrumServicePerm perms.Category = "CentrumService"

	CentrumServiceCreateDispatchPerm     perms.Name = "CreateDispatch"
	CentrumServiceCreateOrUpdateUnitPerm perms.Name = "CreateOrUpdateUnit"
	CentrumServiceDeleteDispatchPerm     perms.Name = "DeleteDispatch"
	CentrumServiceDeleteUnitPerm         perms.Name = "DeleteUnit"
	CentrumServiceStreamPerm             perms.Name = "Stream"
	CentrumServiceTakeControlPerm        perms.Name = "TakeControl"
	CentrumServiceTakeDispatchPerm       perms.Name = "TakeDispatch"
	CentrumServiceUpdateDispatchPerm     perms.Name = "UpdateDispatch"
	CentrumServiceUpdateSettingsPerm     perms.Name = "UpdateSettings"
)
View Source
const (
	CentrumService_UpdateSettings_FullMethodName       = "/services.centrum.CentrumService/UpdateSettings"
	CentrumService_CreateDispatch_FullMethodName       = "/services.centrum.CentrumService/CreateDispatch"
	CentrumService_UpdateDispatch_FullMethodName       = "/services.centrum.CentrumService/UpdateDispatch"
	CentrumService_DeleteDispatch_FullMethodName       = "/services.centrum.CentrumService/DeleteDispatch"
	CentrumService_TakeControl_FullMethodName          = "/services.centrum.CentrumService/TakeControl"
	CentrumService_AssignDispatch_FullMethodName       = "/services.centrum.CentrumService/AssignDispatch"
	CentrumService_AssignUnit_FullMethodName           = "/services.centrum.CentrumService/AssignUnit"
	CentrumService_Stream_FullMethodName               = "/services.centrum.CentrumService/Stream"
	CentrumService_GetSettings_FullMethodName          = "/services.centrum.CentrumService/GetSettings"
	CentrumService_JoinUnit_FullMethodName             = "/services.centrum.CentrumService/JoinUnit"
	CentrumService_ListUnits_FullMethodName            = "/services.centrum.CentrumService/ListUnits"
	CentrumService_ListUnitActivity_FullMethodName     = "/services.centrum.CentrumService/ListUnitActivity"
	CentrumService_ListDispatches_FullMethodName       = "/services.centrum.CentrumService/ListDispatches"
	CentrumService_ListDispatchActivity_FullMethodName = "/services.centrum.CentrumService/ListDispatchActivity"
	CentrumService_CreateOrUpdateUnit_FullMethodName   = "/services.centrum.CentrumService/CreateOrUpdateUnit"
	CentrumService_DeleteUnit_FullMethodName           = "/services.centrum.CentrumService/DeleteUnit"
	CentrumService_TakeDispatch_FullMethodName         = "/services.centrum.CentrumService/TakeDispatch"
	CentrumService_UpdateUnitStatus_FullMethodName     = "/services.centrum.CentrumService/UpdateUnitStatus"
	CentrumService_UpdateDispatchStatus_FullMethodName = "/services.centrum.CentrumService/UpdateDispatchStatus"
)
View Source
const (
	BaseSubject events.Subject = "centrum"

	TopicGeneral          events.Topic = "general"
	TypeGeneralSettings   events.Type  = "settings"
	TypeGeneralDisponents events.Type  = "disponents"

	TopicDispatch       events.Topic = "dispatch"
	TypeDispatchCreated events.Type  = "created"
	TypeDispatchDeleted events.Type  = "deleted"
	TypeDispatchUpdated events.Type  = "updated"
	TypeDispatchStatus  events.Type  = "status"

	TopicUnit            events.Topic = "unit"
	TypeUnitDeleted      events.Type  = "deleted"
	TypeUnitUpdated      events.Type  = "updated"
	TypeUnitStatus       events.Type  = "status"
	TypeUnitUserAssigned events.Type  = "user_assigned"
)
View Source
const DispatchExpirationTime = 31 * time.Second

Variables

View Source
var (
	ErrFailedQuery       = status.Error(codes.Internal, "errors.CentrumService.ErrFailedQuery")
	ErrAlreadyInUnit     = status.Error(codes.InvalidArgument, "errors.CentrumService.ErrAlreadyInUnit")
	ErrNotPartOfDispatch = status.Error(codes.InvalidArgument, "errors.CentrumService.ErrNotPartOfDispatch")
	ErrNotOnDuty         = status.Error(codes.InvalidArgument, "errors.CentrumService.ErrNotOnDuty")
)
View Source
var (
	TAKE_DISPATCH_RESP_name = map[int32]string{
		0: "TIMEOUT",
		1: "ACCEPTED",
		2: "DECLINED",
	}
	TAKE_DISPATCH_RESP_value = map[string]int32{
		"TIMEOUT":  0,
		"ACCEPTED": 1,
		"DECLINED": 2,
	}
)

Enum value maps for TAKE_DISPATCH_RESP.

View Source
var CentrumService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "services.centrum.CentrumService",
	HandlerType: (*CentrumServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateSettings",
			Handler:    _CentrumService_UpdateSettings_Handler,
		},
		{
			MethodName: "CreateDispatch",
			Handler:    _CentrumService_CreateDispatch_Handler,
		},
		{
			MethodName: "UpdateDispatch",
			Handler:    _CentrumService_UpdateDispatch_Handler,
		},
		{
			MethodName: "DeleteDispatch",
			Handler:    _CentrumService_DeleteDispatch_Handler,
		},
		{
			MethodName: "TakeControl",
			Handler:    _CentrumService_TakeControl_Handler,
		},
		{
			MethodName: "AssignDispatch",
			Handler:    _CentrumService_AssignDispatch_Handler,
		},
		{
			MethodName: "AssignUnit",
			Handler:    _CentrumService_AssignUnit_Handler,
		},
		{
			MethodName: "GetSettings",
			Handler:    _CentrumService_GetSettings_Handler,
		},
		{
			MethodName: "JoinUnit",
			Handler:    _CentrumService_JoinUnit_Handler,
		},
		{
			MethodName: "ListUnits",
			Handler:    _CentrumService_ListUnits_Handler,
		},
		{
			MethodName: "ListUnitActivity",
			Handler:    _CentrumService_ListUnitActivity_Handler,
		},
		{
			MethodName: "ListDispatches",
			Handler:    _CentrumService_ListDispatches_Handler,
		},
		{
			MethodName: "ListDispatchActivity",
			Handler:    _CentrumService_ListDispatchActivity_Handler,
		},
		{
			MethodName: "CreateOrUpdateUnit",
			Handler:    _CentrumService_CreateOrUpdateUnit_Handler,
		},
		{
			MethodName: "DeleteUnit",
			Handler:    _CentrumService_DeleteUnit_Handler,
		},
		{
			MethodName: "TakeDispatch",
			Handler:    _CentrumService_TakeDispatch_Handler,
		},
		{
			MethodName: "UpdateUnitStatus",
			Handler:    _CentrumService_UpdateUnitStatus_Handler,
		},
		{
			MethodName: "UpdateDispatchStatus",
			Handler:    _CentrumService_UpdateDispatchStatus_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Stream",
			Handler:       _CentrumService_Stream_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "services/centrum/centrum.proto",
}

CentrumService_ServiceDesc is the grpc.ServiceDesc for CentrumService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var (
	ErrModeForbidsAction = status.Error(codes.InvalidArgument, "Dispatch center forbides this interaction")
)
View Source
var File_services_centrum_centrum_proto protoreflect.FileDescriptor
View Source
var PermsRemap = map[string]string{

	"CentrumService/AssignDispatch":       "CentrumService/TakeControl",
	"CentrumService/AssignUnit":           "CentrumService/TakeControl",
	"CentrumService/GetSettings":          "CentrumService/Stream",
	"CentrumService/JoinUnit":             "CentrumService/Stream",
	"CentrumService/ListDispatchActivity": "CentrumService/Stream",
	"CentrumService/ListDispatches":       "CentrumService/Stream",
	"CentrumService/ListUnitActivity":     "CentrumService/Stream",
	"CentrumService/ListUnits":            "CentrumService/Stream",
	"CentrumService/UpdateDispatchStatus": "CentrumService/TakeDispatch",
	"CentrumService/UpdateUnitStatus":     "CentrumService/TakeDispatch",
}

Functions

func RegisterCentrumServiceServer

func RegisterCentrumServiceServer(s grpc.ServiceRegistrar, srv CentrumServiceServer)

Types

type AssignDispatchRequest added in v0.8.0

type AssignDispatchRequest struct {
	DispatchId uint64   `protobuf:"varint,1,opt,name=dispatch_id,json=dispatchId,proto3" json:"dispatch_id,omitempty"`
	ToAdd      []uint64 `protobuf:"varint,2,rep,packed,name=to_add,json=toAdd,proto3" json:"to_add,omitempty"`
	ToRemove   []uint64 `protobuf:"varint,3,rep,packed,name=to_remove,json=toRemove,proto3" json:"to_remove,omitempty"`
	// contains filtered or unexported fields
}

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

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

Deprecated: Use AssignDispatchRequest.ProtoReflect.Descriptor instead.

func (*AssignDispatchRequest) GetDispatchId added in v0.8.0

func (x *AssignDispatchRequest) GetDispatchId() uint64

func (*AssignDispatchRequest) GetToAdd added in v0.8.0

func (x *AssignDispatchRequest) GetToAdd() []uint64

func (*AssignDispatchRequest) GetToRemove added in v0.8.0

func (x *AssignDispatchRequest) GetToRemove() []uint64

func (*AssignDispatchRequest) ProtoMessage added in v0.8.0

func (*AssignDispatchRequest) ProtoMessage()

func (*AssignDispatchRequest) ProtoReflect added in v0.8.0

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

func (*AssignDispatchRequest) Reset added in v0.8.0

func (x *AssignDispatchRequest) Reset()

func (*AssignDispatchRequest) String added in v0.8.0

func (x *AssignDispatchRequest) String() string

func (*AssignDispatchRequest) Validate added in v0.8.0

func (m *AssignDispatchRequest) Validate() error

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

func (m *AssignDispatchRequest) ValidateAll() error

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

type AssignDispatchRequestMultiError added in v0.8.0

type AssignDispatchRequestMultiError []error

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

func (AssignDispatchRequestMultiError) AllErrors added in v0.8.0

func (m AssignDispatchRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AssignDispatchRequestMultiError) Error added in v0.8.0

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

type AssignDispatchRequestValidationError added in v0.8.0

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

AssignDispatchRequestValidationError is the validation error returned by AssignDispatchRequest.Validate if the designated constraints aren't met.

func (AssignDispatchRequestValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (AssignDispatchRequestValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (AssignDispatchRequestValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (AssignDispatchRequestValidationError) Field added in v0.8.0

Field function returns field value.

func (AssignDispatchRequestValidationError) Key added in v0.8.0

Key function returns key value.

func (AssignDispatchRequestValidationError) Reason added in v0.8.0

Reason function returns reason value.

type AssignDispatchResponse added in v0.8.0

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

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

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

Deprecated: Use AssignDispatchResponse.ProtoReflect.Descriptor instead.

func (*AssignDispatchResponse) ProtoMessage added in v0.8.0

func (*AssignDispatchResponse) ProtoMessage()

func (*AssignDispatchResponse) ProtoReflect added in v0.8.0

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

func (*AssignDispatchResponse) Reset added in v0.8.0

func (x *AssignDispatchResponse) Reset()

func (*AssignDispatchResponse) String added in v0.8.0

func (x *AssignDispatchResponse) String() string

func (*AssignDispatchResponse) Validate added in v0.8.0

func (m *AssignDispatchResponse) Validate() error

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

func (m *AssignDispatchResponse) ValidateAll() error

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

type AssignDispatchResponseMultiError added in v0.8.0

type AssignDispatchResponseMultiError []error

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

func (AssignDispatchResponseMultiError) AllErrors added in v0.8.0

func (m AssignDispatchResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AssignDispatchResponseMultiError) Error added in v0.8.0

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

type AssignDispatchResponseValidationError added in v0.8.0

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

AssignDispatchResponseValidationError is the validation error returned by AssignDispatchResponse.Validate if the designated constraints aren't met.

func (AssignDispatchResponseValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (AssignDispatchResponseValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (AssignDispatchResponseValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (AssignDispatchResponseValidationError) Field added in v0.8.0

Field function returns field value.

func (AssignDispatchResponseValidationError) Key added in v0.8.0

Key function returns key value.

func (AssignDispatchResponseValidationError) Reason added in v0.8.0

Reason function returns reason value.

type AssignUnitRequest

type AssignUnitRequest struct {
	UnitId   uint64  `protobuf:"varint,1,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty"`
	ToAdd    []int32 `protobuf:"varint,2,rep,packed,name=to_add,json=toAdd,proto3" json:"to_add,omitempty"`
	ToRemove []int32 `protobuf:"varint,3,rep,packed,name=to_remove,json=toRemove,proto3" json:"to_remove,omitempty"`
	// contains filtered or unexported fields
}

func (*AssignUnitRequest) Descriptor deprecated

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

Deprecated: Use AssignUnitRequest.ProtoReflect.Descriptor instead.

func (*AssignUnitRequest) GetToAdd

func (x *AssignUnitRequest) GetToAdd() []int32

func (*AssignUnitRequest) GetToRemove

func (x *AssignUnitRequest) GetToRemove() []int32

func (*AssignUnitRequest) GetUnitId

func (x *AssignUnitRequest) GetUnitId() uint64

func (*AssignUnitRequest) ProtoMessage

func (*AssignUnitRequest) ProtoMessage()

func (*AssignUnitRequest) ProtoReflect

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

func (*AssignUnitRequest) Reset

func (x *AssignUnitRequest) Reset()

func (*AssignUnitRequest) String

func (x *AssignUnitRequest) String() string

func (*AssignUnitRequest) Validate

func (m *AssignUnitRequest) Validate() error

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

func (m *AssignUnitRequest) ValidateAll() error

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

type AssignUnitRequestMultiError

type AssignUnitRequestMultiError []error

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

func (AssignUnitRequestMultiError) AllErrors

func (m AssignUnitRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AssignUnitRequestMultiError) Error

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

type AssignUnitRequestValidationError

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

AssignUnitRequestValidationError is the validation error returned by AssignUnitRequest.Validate if the designated constraints aren't met.

func (AssignUnitRequestValidationError) Cause

Cause function returns cause value.

func (AssignUnitRequestValidationError) Error

Error satisfies the builtin error interface

func (AssignUnitRequestValidationError) ErrorName

ErrorName returns error name.

func (AssignUnitRequestValidationError) Field

Field function returns field value.

func (AssignUnitRequestValidationError) Key

Key function returns key value.

func (AssignUnitRequestValidationError) Reason

Reason function returns reason value.

type AssignUnitResponse

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

func (*AssignUnitResponse) Descriptor deprecated

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

Deprecated: Use AssignUnitResponse.ProtoReflect.Descriptor instead.

func (*AssignUnitResponse) ProtoMessage

func (*AssignUnitResponse) ProtoMessage()

func (*AssignUnitResponse) ProtoReflect

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

func (*AssignUnitResponse) Reset

func (x *AssignUnitResponse) Reset()

func (*AssignUnitResponse) String

func (x *AssignUnitResponse) String() string

func (*AssignUnitResponse) Validate

func (m *AssignUnitResponse) Validate() error

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

func (m *AssignUnitResponse) ValidateAll() error

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

type AssignUnitResponseMultiError

type AssignUnitResponseMultiError []error

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

func (AssignUnitResponseMultiError) AllErrors

func (m AssignUnitResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AssignUnitResponseMultiError) Error

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

type AssignUnitResponseValidationError

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

AssignUnitResponseValidationError is the validation error returned by AssignUnitResponse.Validate if the designated constraints aren't met.

func (AssignUnitResponseValidationError) Cause

Cause function returns cause value.

func (AssignUnitResponseValidationError) Error

Error satisfies the builtin error interface

func (AssignUnitResponseValidationError) ErrorName

ErrorName returns error name.

func (AssignUnitResponseValidationError) Field

Field function returns field value.

func (AssignUnitResponseValidationError) Key

Key function returns key value.

func (AssignUnitResponseValidationError) Reason

Reason function returns reason value.

type Bot added in v0.8.2

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

type BotManager added in v0.8.2

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

func NewBotManager added in v0.8.2

func NewBotManager() *BotManager

type CentrumServiceClient

type CentrumServiceClient interface {
	// @perm
	UpdateSettings(ctx context.Context, in *dispatch.Settings, opts ...grpc.CallOption) (*dispatch.Settings, error)
	// @perm
	CreateDispatch(ctx context.Context, in *CreateDispatchRequest, opts ...grpc.CallOption) (*CreateDispatchResponse, error)
	// @perm
	UpdateDispatch(ctx context.Context, in *UpdateDispatchRequest, opts ...grpc.CallOption) (*UpdateDispatchResponse, error)
	// @perm
	DeleteDispatch(ctx context.Context, in *DeleteDispatchRequest, opts ...grpc.CallOption) (*DeleteDispatchResponse, error)
	// @perm
	TakeControl(ctx context.Context, in *TakeControlRequest, opts ...grpc.CallOption) (*TakeControlResponse, error)
	// @perm: Name=TakeControl
	AssignDispatch(ctx context.Context, in *AssignDispatchRequest, opts ...grpc.CallOption) (*AssignDispatchResponse, error)
	// @perm: Name=TakeControl
	AssignUnit(ctx context.Context, in *AssignUnitRequest, opts ...grpc.CallOption) (*AssignUnitResponse, error)
	// @perm
	Stream(ctx context.Context, in *StreamRequest, opts ...grpc.CallOption) (CentrumService_StreamClient, error)
	// @perm: Name=Stream
	GetSettings(ctx context.Context, in *GetSettingsRequest, opts ...grpc.CallOption) (*dispatch.Settings, error)
	// @perm: Name=Stream
	JoinUnit(ctx context.Context, in *JoinUnitRequest, opts ...grpc.CallOption) (*JoinUnitResponse, error)
	// @perm: Name=Stream
	ListUnits(ctx context.Context, in *ListUnitsRequest, opts ...grpc.CallOption) (*ListUnitsResponse, error)
	// @perm: Name=Stream
	ListUnitActivity(ctx context.Context, in *ListUnitActivityRequest, opts ...grpc.CallOption) (*ListUnitActivityResponse, error)
	// @perm: Name=Stream
	ListDispatches(ctx context.Context, in *ListDispatchesRequest, opts ...grpc.CallOption) (*ListDispatchesResponse, error)
	// @perm: Name=Stream
	ListDispatchActivity(ctx context.Context, in *ListDispatchActivityRequest, opts ...grpc.CallOption) (*ListDispatchActivityResponse, error)
	// @perm
	CreateOrUpdateUnit(ctx context.Context, in *CreateOrUpdateUnitRequest, opts ...grpc.CallOption) (*CreateOrUpdateUnitResponse, error)
	// @perm
	DeleteUnit(ctx context.Context, in *DeleteUnitRequest, opts ...grpc.CallOption) (*DeleteUnitResponse, error)
	// @perm
	TakeDispatch(ctx context.Context, in *TakeDispatchRequest, opts ...grpc.CallOption) (*TakeDispatchResponse, error)
	// @perm: Name=TakeDispatch
	UpdateUnitStatus(ctx context.Context, in *UpdateUnitStatusRequest, opts ...grpc.CallOption) (*UpdateUnitStatusResponse, error)
	// @perm: Name=TakeDispatch
	UpdateDispatchStatus(ctx context.Context, in *UpdateDispatchStatusRequest, opts ...grpc.CallOption) (*UpdateDispatchStatusResponse, error)
}

CentrumServiceClient is the client API for CentrumService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type CentrumServiceServer

type CentrumServiceServer interface {
	// @perm
	UpdateSettings(context.Context, *dispatch.Settings) (*dispatch.Settings, error)
	// @perm
	CreateDispatch(context.Context, *CreateDispatchRequest) (*CreateDispatchResponse, error)
	// @perm
	UpdateDispatch(context.Context, *UpdateDispatchRequest) (*UpdateDispatchResponse, error)
	// @perm
	DeleteDispatch(context.Context, *DeleteDispatchRequest) (*DeleteDispatchResponse, error)
	// @perm
	TakeControl(context.Context, *TakeControlRequest) (*TakeControlResponse, error)
	// @perm: Name=TakeControl
	AssignDispatch(context.Context, *AssignDispatchRequest) (*AssignDispatchResponse, error)
	// @perm: Name=TakeControl
	AssignUnit(context.Context, *AssignUnitRequest) (*AssignUnitResponse, error)
	// @perm
	Stream(*StreamRequest, CentrumService_StreamServer) error
	// @perm: Name=Stream
	GetSettings(context.Context, *GetSettingsRequest) (*dispatch.Settings, error)
	// @perm: Name=Stream
	JoinUnit(context.Context, *JoinUnitRequest) (*JoinUnitResponse, error)
	// @perm: Name=Stream
	ListUnits(context.Context, *ListUnitsRequest) (*ListUnitsResponse, error)
	// @perm: Name=Stream
	ListUnitActivity(context.Context, *ListUnitActivityRequest) (*ListUnitActivityResponse, error)
	// @perm: Name=Stream
	ListDispatches(context.Context, *ListDispatchesRequest) (*ListDispatchesResponse, error)
	// @perm: Name=Stream
	ListDispatchActivity(context.Context, *ListDispatchActivityRequest) (*ListDispatchActivityResponse, error)
	// @perm
	CreateOrUpdateUnit(context.Context, *CreateOrUpdateUnitRequest) (*CreateOrUpdateUnitResponse, error)
	// @perm
	DeleteUnit(context.Context, *DeleteUnitRequest) (*DeleteUnitResponse, error)
	// @perm
	TakeDispatch(context.Context, *TakeDispatchRequest) (*TakeDispatchResponse, error)
	// @perm: Name=TakeDispatch
	UpdateUnitStatus(context.Context, *UpdateUnitStatusRequest) (*UpdateUnitStatusResponse, error)
	// @perm: Name=TakeDispatch
	UpdateDispatchStatus(context.Context, *UpdateDispatchStatusRequest) (*UpdateDispatchStatusResponse, error)
	// contains filtered or unexported methods
}

CentrumServiceServer is the server API for CentrumService service. All implementations must embed UnimplementedCentrumServiceServer for forward compatibility

type CentrumService_StreamClient

type CentrumService_StreamClient interface {
	Recv() (*StreamResponse, error)
	grpc.ClientStream
}

type CentrumService_StreamServer

type CentrumService_StreamServer interface {
	Send(*StreamResponse) error
	grpc.ServerStream
}

type CreateDispatchRequest

type CreateDispatchRequest struct {
	Dispatch *dispatch.Dispatch `protobuf:"bytes,1,opt,name=dispatch,proto3" json:"dispatch,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateDispatchRequest) Descriptor deprecated

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

Deprecated: Use CreateDispatchRequest.ProtoReflect.Descriptor instead.

func (*CreateDispatchRequest) GetDispatch added in v0.8.0

func (x *CreateDispatchRequest) GetDispatch() *dispatch.Dispatch

func (*CreateDispatchRequest) ProtoMessage

func (*CreateDispatchRequest) ProtoMessage()

func (*CreateDispatchRequest) ProtoReflect

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

func (*CreateDispatchRequest) Reset

func (x *CreateDispatchRequest) Reset()

func (*CreateDispatchRequest) String

func (x *CreateDispatchRequest) String() string

func (*CreateDispatchRequest) Validate

func (m *CreateDispatchRequest) Validate() error

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

func (m *CreateDispatchRequest) ValidateAll() error

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

type CreateDispatchRequestMultiError

type CreateDispatchRequestMultiError []error

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

func (CreateDispatchRequestMultiError) AllErrors

func (m CreateDispatchRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateDispatchRequestMultiError) Error

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

type CreateDispatchRequestValidationError

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

CreateDispatchRequestValidationError is the validation error returned by CreateDispatchRequest.Validate if the designated constraints aren't met.

func (CreateDispatchRequestValidationError) Cause

Cause function returns cause value.

func (CreateDispatchRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateDispatchRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateDispatchRequestValidationError) Field

Field function returns field value.

func (CreateDispatchRequestValidationError) Key

Key function returns key value.

func (CreateDispatchRequestValidationError) Reason

Reason function returns reason value.

type CreateDispatchResponse

type CreateDispatchResponse struct {
	Dispatch *dispatch.Dispatch `protobuf:"bytes,1,opt,name=dispatch,proto3" json:"dispatch,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateDispatchResponse) Descriptor deprecated

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

Deprecated: Use CreateDispatchResponse.ProtoReflect.Descriptor instead.

func (*CreateDispatchResponse) GetDispatch added in v0.8.0

func (x *CreateDispatchResponse) GetDispatch() *dispatch.Dispatch

func (*CreateDispatchResponse) ProtoMessage

func (*CreateDispatchResponse) ProtoMessage()

func (*CreateDispatchResponse) ProtoReflect

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

func (*CreateDispatchResponse) Reset

func (x *CreateDispatchResponse) Reset()

func (*CreateDispatchResponse) String

func (x *CreateDispatchResponse) String() string

func (*CreateDispatchResponse) Validate

func (m *CreateDispatchResponse) Validate() error

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

func (m *CreateDispatchResponse) ValidateAll() error

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

type CreateDispatchResponseMultiError

type CreateDispatchResponseMultiError []error

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

func (CreateDispatchResponseMultiError) AllErrors

func (m CreateDispatchResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateDispatchResponseMultiError) Error

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

type CreateDispatchResponseValidationError

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

CreateDispatchResponseValidationError is the validation error returned by CreateDispatchResponse.Validate if the designated constraints aren't met.

func (CreateDispatchResponseValidationError) Cause

Cause function returns cause value.

func (CreateDispatchResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateDispatchResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateDispatchResponseValidationError) Field

Field function returns field value.

func (CreateDispatchResponseValidationError) Key

Key function returns key value.

func (CreateDispatchResponseValidationError) Reason

Reason function returns reason value.

type CreateOrUpdateUnitRequest added in v0.8.0

type CreateOrUpdateUnitRequest struct {
	Unit *dispatch.Unit `protobuf:"bytes,1,opt,name=unit,proto3" json:"unit,omitempty"`
	// contains filtered or unexported fields
}

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

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

Deprecated: Use CreateOrUpdateUnitRequest.ProtoReflect.Descriptor instead.

func (*CreateOrUpdateUnitRequest) GetUnit added in v0.8.0

func (x *CreateOrUpdateUnitRequest) GetUnit() *dispatch.Unit

func (*CreateOrUpdateUnitRequest) ProtoMessage added in v0.8.0

func (*CreateOrUpdateUnitRequest) ProtoMessage()

func (*CreateOrUpdateUnitRequest) ProtoReflect added in v0.8.0

func (*CreateOrUpdateUnitRequest) Reset added in v0.8.0

func (x *CreateOrUpdateUnitRequest) Reset()

func (*CreateOrUpdateUnitRequest) String added in v0.8.0

func (x *CreateOrUpdateUnitRequest) String() string

func (*CreateOrUpdateUnitRequest) Validate added in v0.8.0

func (m *CreateOrUpdateUnitRequest) Validate() error

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

func (m *CreateOrUpdateUnitRequest) ValidateAll() error

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

type CreateOrUpdateUnitRequestMultiError added in v0.8.0

type CreateOrUpdateUnitRequestMultiError []error

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

func (CreateOrUpdateUnitRequestMultiError) AllErrors added in v0.8.0

AllErrors returns a list of validation violation errors.

func (CreateOrUpdateUnitRequestMultiError) Error added in v0.8.0

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

type CreateOrUpdateUnitRequestValidationError added in v0.8.0

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

CreateOrUpdateUnitRequestValidationError is the validation error returned by CreateOrUpdateUnitRequest.Validate if the designated constraints aren't met.

func (CreateOrUpdateUnitRequestValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (CreateOrUpdateUnitRequestValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (CreateOrUpdateUnitRequestValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (CreateOrUpdateUnitRequestValidationError) Field added in v0.8.0

Field function returns field value.

func (CreateOrUpdateUnitRequestValidationError) Key added in v0.8.0

Key function returns key value.

func (CreateOrUpdateUnitRequestValidationError) Reason added in v0.8.0

Reason function returns reason value.

type CreateOrUpdateUnitResponse added in v0.8.0

type CreateOrUpdateUnitResponse struct {
	Unit *dispatch.Unit `protobuf:"bytes,1,opt,name=unit,proto3" json:"unit,omitempty"`
	// contains filtered or unexported fields
}

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

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

Deprecated: Use CreateOrUpdateUnitResponse.ProtoReflect.Descriptor instead.

func (*CreateOrUpdateUnitResponse) GetUnit added in v0.8.0

func (*CreateOrUpdateUnitResponse) ProtoMessage added in v0.8.0

func (*CreateOrUpdateUnitResponse) ProtoMessage()

func (*CreateOrUpdateUnitResponse) ProtoReflect added in v0.8.0

func (*CreateOrUpdateUnitResponse) Reset added in v0.8.0

func (x *CreateOrUpdateUnitResponse) Reset()

func (*CreateOrUpdateUnitResponse) String added in v0.8.0

func (x *CreateOrUpdateUnitResponse) String() string

func (*CreateOrUpdateUnitResponse) Validate added in v0.8.0

func (m *CreateOrUpdateUnitResponse) Validate() error

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

func (m *CreateOrUpdateUnitResponse) ValidateAll() error

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

type CreateOrUpdateUnitResponseMultiError added in v0.8.0

type CreateOrUpdateUnitResponseMultiError []error

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

func (CreateOrUpdateUnitResponseMultiError) AllErrors added in v0.8.0

AllErrors returns a list of validation violation errors.

func (CreateOrUpdateUnitResponseMultiError) Error added in v0.8.0

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

type CreateOrUpdateUnitResponseValidationError added in v0.8.0

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

CreateOrUpdateUnitResponseValidationError is the validation error returned by CreateOrUpdateUnitResponse.Validate if the designated constraints aren't met.

func (CreateOrUpdateUnitResponseValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (CreateOrUpdateUnitResponseValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (CreateOrUpdateUnitResponseValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (CreateOrUpdateUnitResponseValidationError) Field added in v0.8.0

Field function returns field value.

func (CreateOrUpdateUnitResponseValidationError) Key added in v0.8.0

Key function returns key value.

func (CreateOrUpdateUnitResponseValidationError) Reason added in v0.8.0

Reason function returns reason value.

type DeleteDispatchRequest added in v0.8.1

type DeleteDispatchRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteDispatchRequest) Descriptor deprecated added in v0.8.1

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

Deprecated: Use DeleteDispatchRequest.ProtoReflect.Descriptor instead.

func (*DeleteDispatchRequest) GetId added in v0.8.1

func (x *DeleteDispatchRequest) GetId() uint64

func (*DeleteDispatchRequest) ProtoMessage added in v0.8.1

func (*DeleteDispatchRequest) ProtoMessage()

func (*DeleteDispatchRequest) ProtoReflect added in v0.8.1

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

func (*DeleteDispatchRequest) Reset added in v0.8.1

func (x *DeleteDispatchRequest) Reset()

func (*DeleteDispatchRequest) String added in v0.8.1

func (x *DeleteDispatchRequest) String() string

func (*DeleteDispatchRequest) Validate added in v0.8.1

func (m *DeleteDispatchRequest) Validate() error

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

func (m *DeleteDispatchRequest) ValidateAll() error

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

type DeleteDispatchRequestMultiError added in v0.8.1

type DeleteDispatchRequestMultiError []error

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

func (DeleteDispatchRequestMultiError) AllErrors added in v0.8.1

func (m DeleteDispatchRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteDispatchRequestMultiError) Error added in v0.8.1

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

type DeleteDispatchRequestValidationError added in v0.8.1

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

DeleteDispatchRequestValidationError is the validation error returned by DeleteDispatchRequest.Validate if the designated constraints aren't met.

func (DeleteDispatchRequestValidationError) Cause added in v0.8.1

Cause function returns cause value.

func (DeleteDispatchRequestValidationError) Error added in v0.8.1

Error satisfies the builtin error interface

func (DeleteDispatchRequestValidationError) ErrorName added in v0.8.1

ErrorName returns error name.

func (DeleteDispatchRequestValidationError) Field added in v0.8.1

Field function returns field value.

func (DeleteDispatchRequestValidationError) Key added in v0.8.1

Key function returns key value.

func (DeleteDispatchRequestValidationError) Reason added in v0.8.1

Reason function returns reason value.

type DeleteDispatchResponse added in v0.8.1

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

func (*DeleteDispatchResponse) Descriptor deprecated added in v0.8.1

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

Deprecated: Use DeleteDispatchResponse.ProtoReflect.Descriptor instead.

func (*DeleteDispatchResponse) ProtoMessage added in v0.8.1

func (*DeleteDispatchResponse) ProtoMessage()

func (*DeleteDispatchResponse) ProtoReflect added in v0.8.1

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

func (*DeleteDispatchResponse) Reset added in v0.8.1

func (x *DeleteDispatchResponse) Reset()

func (*DeleteDispatchResponse) String added in v0.8.1

func (x *DeleteDispatchResponse) String() string

func (*DeleteDispatchResponse) Validate added in v0.8.1

func (m *DeleteDispatchResponse) Validate() error

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

func (m *DeleteDispatchResponse) ValidateAll() error

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

type DeleteDispatchResponseMultiError added in v0.8.1

type DeleteDispatchResponseMultiError []error

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

func (DeleteDispatchResponseMultiError) AllErrors added in v0.8.1

func (m DeleteDispatchResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteDispatchResponseMultiError) Error added in v0.8.1

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

type DeleteDispatchResponseValidationError added in v0.8.1

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

DeleteDispatchResponseValidationError is the validation error returned by DeleteDispatchResponse.Validate if the designated constraints aren't met.

func (DeleteDispatchResponseValidationError) Cause added in v0.8.1

Cause function returns cause value.

func (DeleteDispatchResponseValidationError) Error added in v0.8.1

Error satisfies the builtin error interface

func (DeleteDispatchResponseValidationError) ErrorName added in v0.8.1

ErrorName returns error name.

func (DeleteDispatchResponseValidationError) Field added in v0.8.1

Field function returns field value.

func (DeleteDispatchResponseValidationError) Key added in v0.8.1

Key function returns key value.

func (DeleteDispatchResponseValidationError) Reason added in v0.8.1

Reason function returns reason value.

type DeleteUnitRequest

type DeleteUnitRequest struct {
	UnitId uint64 `protobuf:"varint,1,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUnitRequest) Descriptor deprecated

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

Deprecated: Use DeleteUnitRequest.ProtoReflect.Descriptor instead.

func (*DeleteUnitRequest) GetUnitId

func (x *DeleteUnitRequest) GetUnitId() uint64

func (*DeleteUnitRequest) ProtoMessage

func (*DeleteUnitRequest) ProtoMessage()

func (*DeleteUnitRequest) ProtoReflect

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

func (*DeleteUnitRequest) Reset

func (x *DeleteUnitRequest) Reset()

func (*DeleteUnitRequest) String

func (x *DeleteUnitRequest) String() string

func (*DeleteUnitRequest) Validate

func (m *DeleteUnitRequest) Validate() error

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

func (m *DeleteUnitRequest) ValidateAll() error

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

type DeleteUnitRequestMultiError

type DeleteUnitRequestMultiError []error

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

func (DeleteUnitRequestMultiError) AllErrors

func (m DeleteUnitRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteUnitRequestMultiError) Error

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

type DeleteUnitRequestValidationError

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

DeleteUnitRequestValidationError is the validation error returned by DeleteUnitRequest.Validate if the designated constraints aren't met.

func (DeleteUnitRequestValidationError) Cause

Cause function returns cause value.

func (DeleteUnitRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteUnitRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteUnitRequestValidationError) Field

Field function returns field value.

func (DeleteUnitRequestValidationError) Key

Key function returns key value.

func (DeleteUnitRequestValidationError) Reason

Reason function returns reason value.

type DeleteUnitResponse

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

func (*DeleteUnitResponse) Descriptor deprecated

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

Deprecated: Use DeleteUnitResponse.ProtoReflect.Descriptor instead.

func (*DeleteUnitResponse) ProtoMessage

func (*DeleteUnitResponse) ProtoMessage()

func (*DeleteUnitResponse) ProtoReflect

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

func (*DeleteUnitResponse) Reset

func (x *DeleteUnitResponse) Reset()

func (*DeleteUnitResponse) String

func (x *DeleteUnitResponse) String() string

func (*DeleteUnitResponse) Validate

func (m *DeleteUnitResponse) Validate() error

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

func (m *DeleteUnitResponse) ValidateAll() error

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

type DeleteUnitResponseMultiError

type DeleteUnitResponseMultiError []error

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

func (DeleteUnitResponseMultiError) AllErrors

func (m DeleteUnitResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteUnitResponseMultiError) Error

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

type DeleteUnitResponseValidationError

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

DeleteUnitResponseValidationError is the validation error returned by DeleteUnitResponse.Validate if the designated constraints aren't met.

func (DeleteUnitResponseValidationError) Cause

Cause function returns cause value.

func (DeleteUnitResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteUnitResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteUnitResponseValidationError) Field

Field function returns field value.

func (DeleteUnitResponseValidationError) Key

Key function returns key value.

func (DeleteUnitResponseValidationError) Reason

Reason function returns reason value.

type DisponentsChange added in v0.8.0

type DisponentsChange 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 (*DisponentsChange) Descriptor deprecated added in v0.8.0

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

Deprecated: Use DisponentsChange.ProtoReflect.Descriptor instead.

func (*DisponentsChange) GetDisponents added in v0.8.0

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

func (*DisponentsChange) GetJob added in v0.8.0

func (x *DisponentsChange) GetJob() string

func (*DisponentsChange) ProtoMessage added in v0.8.0

func (*DisponentsChange) ProtoMessage()

func (*DisponentsChange) ProtoReflect added in v0.8.0

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

func (*DisponentsChange) Reset added in v0.8.0

func (x *DisponentsChange) Reset()

func (*DisponentsChange) String added in v0.8.0

func (x *DisponentsChange) String() string

func (*DisponentsChange) Validate added in v0.8.0

func (m *DisponentsChange) Validate() error

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

func (m *DisponentsChange) ValidateAll() error

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

type DisponentsChangeMultiError added in v0.8.0

type DisponentsChangeMultiError []error

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

func (DisponentsChangeMultiError) AllErrors added in v0.8.0

func (m DisponentsChangeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DisponentsChangeMultiError) Error added in v0.8.0

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

type DisponentsChangeValidationError added in v0.8.0

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

DisponentsChangeValidationError is the validation error returned by DisponentsChange.Validate if the designated constraints aren't met.

func (DisponentsChangeValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (DisponentsChangeValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (DisponentsChangeValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (DisponentsChangeValidationError) Field added in v0.8.0

Field function returns field value.

func (DisponentsChangeValidationError) Key added in v0.8.0

Key function returns key value.

func (DisponentsChangeValidationError) Reason added in v0.8.0

Reason function returns reason value.

type GetSettingsRequest added in v0.8.0

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

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

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

Deprecated: Use GetSettingsRequest.ProtoReflect.Descriptor instead.

func (*GetSettingsRequest) ProtoMessage added in v0.8.0

func (*GetSettingsRequest) ProtoMessage()

func (*GetSettingsRequest) ProtoReflect added in v0.8.0

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

func (*GetSettingsRequest) Reset added in v0.8.0

func (x *GetSettingsRequest) Reset()

func (*GetSettingsRequest) String added in v0.8.0

func (x *GetSettingsRequest) String() string

func (*GetSettingsRequest) Validate added in v0.8.0

func (m *GetSettingsRequest) Validate() error

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

func (m *GetSettingsRequest) ValidateAll() error

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

type GetSettingsRequestMultiError added in v0.8.0

type GetSettingsRequestMultiError []error

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

func (GetSettingsRequestMultiError) AllErrors added in v0.8.0

func (m GetSettingsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetSettingsRequestMultiError) Error added in v0.8.0

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

type GetSettingsRequestValidationError added in v0.8.0

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

GetSettingsRequestValidationError is the validation error returned by GetSettingsRequest.Validate if the designated constraints aren't met.

func (GetSettingsRequestValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (GetSettingsRequestValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (GetSettingsRequestValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (GetSettingsRequestValidationError) Field added in v0.8.0

Field function returns field value.

func (GetSettingsRequestValidationError) Key added in v0.8.0

Key function returns key value.

func (GetSettingsRequestValidationError) Reason added in v0.8.0

Reason function returns reason value.

type JoinUnitRequest added in v0.8.0

type JoinUnitRequest struct {
	UnitId uint64 `protobuf:"varint,1,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty"`
	Leave  *bool  `protobuf:"varint,2,opt,name=leave,proto3,oneof" json:"leave,omitempty"`
	// contains filtered or unexported fields
}

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

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

Deprecated: Use JoinUnitRequest.ProtoReflect.Descriptor instead.

func (*JoinUnitRequest) GetLeave added in v0.8.0

func (x *JoinUnitRequest) GetLeave() bool

func (*JoinUnitRequest) GetUnitId added in v0.8.0

func (x *JoinUnitRequest) GetUnitId() uint64

func (*JoinUnitRequest) ProtoMessage added in v0.8.0

func (*JoinUnitRequest) ProtoMessage()

func (*JoinUnitRequest) ProtoReflect added in v0.8.0

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

func (*JoinUnitRequest) Reset added in v0.8.0

func (x *JoinUnitRequest) Reset()

func (*JoinUnitRequest) String added in v0.8.0

func (x *JoinUnitRequest) String() string

func (*JoinUnitRequest) Validate added in v0.8.0

func (m *JoinUnitRequest) Validate() error

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

func (m *JoinUnitRequest) ValidateAll() error

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

type JoinUnitRequestMultiError added in v0.8.0

type JoinUnitRequestMultiError []error

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

func (JoinUnitRequestMultiError) AllErrors added in v0.8.0

func (m JoinUnitRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (JoinUnitRequestMultiError) Error added in v0.8.0

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

type JoinUnitRequestValidationError added in v0.8.0

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

JoinUnitRequestValidationError is the validation error returned by JoinUnitRequest.Validate if the designated constraints aren't met.

func (JoinUnitRequestValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (JoinUnitRequestValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (JoinUnitRequestValidationError) ErrorName added in v0.8.0

func (e JoinUnitRequestValidationError) ErrorName() string

ErrorName returns error name.

func (JoinUnitRequestValidationError) Field added in v0.8.0

Field function returns field value.

func (JoinUnitRequestValidationError) Key added in v0.8.0

Key function returns key value.

func (JoinUnitRequestValidationError) Reason added in v0.8.0

Reason function returns reason value.

type JoinUnitResponse added in v0.8.0

type JoinUnitResponse struct {
	Unit *dispatch.Unit `protobuf:"bytes,1,opt,name=unit,proto3" json:"unit,omitempty"`
	// contains filtered or unexported fields
}

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

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

Deprecated: Use JoinUnitResponse.ProtoReflect.Descriptor instead.

func (*JoinUnitResponse) GetUnit added in v0.8.0

func (x *JoinUnitResponse) GetUnit() *dispatch.Unit

func (*JoinUnitResponse) ProtoMessage added in v0.8.0

func (*JoinUnitResponse) ProtoMessage()

func (*JoinUnitResponse) ProtoReflect added in v0.8.0

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

func (*JoinUnitResponse) Reset added in v0.8.0

func (x *JoinUnitResponse) Reset()

func (*JoinUnitResponse) String added in v0.8.0

func (x *JoinUnitResponse) String() string

func (*JoinUnitResponse) Validate added in v0.8.0

func (m *JoinUnitResponse) Validate() error

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

func (m *JoinUnitResponse) ValidateAll() error

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

type JoinUnitResponseMultiError added in v0.8.0

type JoinUnitResponseMultiError []error

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

func (JoinUnitResponseMultiError) AllErrors added in v0.8.0

func (m JoinUnitResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (JoinUnitResponseMultiError) Error added in v0.8.0

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

type JoinUnitResponseValidationError added in v0.8.0

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

JoinUnitResponseValidationError is the validation error returned by JoinUnitResponse.Validate if the designated constraints aren't met.

func (JoinUnitResponseValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (JoinUnitResponseValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (JoinUnitResponseValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (JoinUnitResponseValidationError) Field added in v0.8.0

Field function returns field value.

func (JoinUnitResponseValidationError) Key added in v0.8.0

Key function returns key value.

func (JoinUnitResponseValidationError) Reason added in v0.8.0

Reason function returns reason value.

type LatestState added in v0.8.0

type LatestState struct {
	Settings    *dispatch.Settings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"`
	Disponents  []*users.UserShort `protobuf:"bytes,2,rep,name=disponents,proto3" json:"disponents,omitempty"`
	IsDisponent bool               `protobuf:"varint,3,opt,name=is_disponent,json=isDisponent,proto3" json:"is_disponent,omitempty"`
	OwnUnit     *dispatch.Unit     `protobuf:"bytes,4,opt,name=own_unit,json=ownUnit,proto3" json:"own_unit,omitempty"`
	// Send the current units and dispatches
	Units      []*dispatch.Unit     `protobuf:"bytes,5,rep,name=units,proto3" json:"units,omitempty"`
	Dispatches []*dispatch.Dispatch `protobuf:"bytes,6,rep,name=dispatches,proto3" json:"dispatches,omitempty"`
	// contains filtered or unexported fields
}

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

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

Deprecated: Use LatestState.ProtoReflect.Descriptor instead.

func (*LatestState) GetDispatches added in v0.8.0

func (x *LatestState) GetDispatches() []*dispatch.Dispatch

func (*LatestState) GetDisponents added in v0.8.0

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

func (*LatestState) GetIsDisponent added in v0.8.0

func (x *LatestState) GetIsDisponent() bool

func (*LatestState) GetOwnUnit added in v0.8.0

func (x *LatestState) GetOwnUnit() *dispatch.Unit

func (*LatestState) GetSettings added in v0.8.0

func (x *LatestState) GetSettings() *dispatch.Settings

func (*LatestState) GetUnits added in v0.8.0

func (x *LatestState) GetUnits() []*dispatch.Unit

func (*LatestState) ProtoMessage added in v0.8.0

func (*LatestState) ProtoMessage()

func (*LatestState) ProtoReflect added in v0.8.0

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

func (*LatestState) Reset added in v0.8.0

func (x *LatestState) Reset()

func (*LatestState) String added in v0.8.0

func (x *LatestState) String() string

func (*LatestState) Validate added in v0.8.0

func (m *LatestState) Validate() error

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

func (m *LatestState) ValidateAll() error

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

type LatestStateMultiError added in v0.8.0

type LatestStateMultiError []error

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

func (LatestStateMultiError) AllErrors added in v0.8.0

func (m LatestStateMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LatestStateMultiError) Error added in v0.8.0

func (m LatestStateMultiError) Error() string

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

type LatestStateValidationError added in v0.8.0

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

LatestStateValidationError is the validation error returned by LatestState.Validate if the designated constraints aren't met.

func (LatestStateValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (LatestStateValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (LatestStateValidationError) ErrorName added in v0.8.0

func (e LatestStateValidationError) ErrorName() string

ErrorName returns error name.

func (LatestStateValidationError) Field added in v0.8.0

Field function returns field value.

func (LatestStateValidationError) Key added in v0.8.0

Key function returns key value.

func (LatestStateValidationError) Reason added in v0.8.0

Reason function returns reason value.

type ListDispatchActivityRequest added in v0.8.0

type ListDispatchActivityRequest struct {
	Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Id         uint64                      `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

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

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

Deprecated: Use ListDispatchActivityRequest.ProtoReflect.Descriptor instead.

func (*ListDispatchActivityRequest) GetId added in v0.8.0

func (*ListDispatchActivityRequest) GetPagination added in v0.8.0

func (*ListDispatchActivityRequest) ProtoMessage added in v0.8.0

func (*ListDispatchActivityRequest) ProtoMessage()

func (*ListDispatchActivityRequest) ProtoReflect added in v0.8.0

func (*ListDispatchActivityRequest) Reset added in v0.8.0

func (x *ListDispatchActivityRequest) Reset()

func (*ListDispatchActivityRequest) String added in v0.8.0

func (x *ListDispatchActivityRequest) String() string

func (*ListDispatchActivityRequest) Validate added in v0.8.0

func (m *ListDispatchActivityRequest) Validate() error

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

func (m *ListDispatchActivityRequest) ValidateAll() error

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

type ListDispatchActivityRequestMultiError added in v0.8.0

type ListDispatchActivityRequestMultiError []error

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

func (ListDispatchActivityRequestMultiError) AllErrors added in v0.8.0

AllErrors returns a list of validation violation errors.

func (ListDispatchActivityRequestMultiError) Error added in v0.8.0

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

type ListDispatchActivityRequestValidationError added in v0.8.0

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

ListDispatchActivityRequestValidationError is the validation error returned by ListDispatchActivityRequest.Validate if the designated constraints aren't met.

func (ListDispatchActivityRequestValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (ListDispatchActivityRequestValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (ListDispatchActivityRequestValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (ListDispatchActivityRequestValidationError) Field added in v0.8.0

Field function returns field value.

func (ListDispatchActivityRequestValidationError) Key added in v0.8.0

Key function returns key value.

func (ListDispatchActivityRequestValidationError) Reason added in v0.8.0

Reason function returns reason value.

type ListDispatchActivityResponse added in v0.8.0

type ListDispatchActivityResponse struct {
	Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Activity   []*dispatch.DispatchStatus   `protobuf:"bytes,2,rep,name=activity,proto3" json:"activity,omitempty"`
	// contains filtered or unexported fields
}

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

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

Deprecated: Use ListDispatchActivityResponse.ProtoReflect.Descriptor instead.

func (*ListDispatchActivityResponse) GetActivity added in v0.8.0

func (*ListDispatchActivityResponse) GetPagination added in v0.8.0

func (*ListDispatchActivityResponse) ProtoMessage added in v0.8.0

func (*ListDispatchActivityResponse) ProtoMessage()

func (*ListDispatchActivityResponse) ProtoReflect added in v0.8.0

func (*ListDispatchActivityResponse) Reset added in v0.8.0

func (x *ListDispatchActivityResponse) Reset()

func (*ListDispatchActivityResponse) String added in v0.8.0

func (*ListDispatchActivityResponse) Validate added in v0.8.0

func (m *ListDispatchActivityResponse) Validate() error

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

func (m *ListDispatchActivityResponse) ValidateAll() error

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

type ListDispatchActivityResponseMultiError added in v0.8.0

type ListDispatchActivityResponseMultiError []error

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

func (ListDispatchActivityResponseMultiError) AllErrors added in v0.8.0

AllErrors returns a list of validation violation errors.

func (ListDispatchActivityResponseMultiError) Error added in v0.8.0

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

type ListDispatchActivityResponseValidationError added in v0.8.0

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

ListDispatchActivityResponseValidationError is the validation error returned by ListDispatchActivityResponse.Validate if the designated constraints aren't met.

func (ListDispatchActivityResponseValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (ListDispatchActivityResponseValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (ListDispatchActivityResponseValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (ListDispatchActivityResponseValidationError) Field added in v0.8.0

Field function returns field value.

func (ListDispatchActivityResponseValidationError) Key added in v0.8.0

Key function returns key value.

func (ListDispatchActivityResponseValidationError) Reason added in v0.8.0

Reason function returns reason value.

type ListDispatchesRequest added in v0.8.0

type ListDispatchesRequest struct {
	Status    []dispatch.DISPATCH_STATUS `protobuf:"varint,1,rep,packed,name=status,proto3,enum=resources.dispatch.DISPATCH_STATUS" json:"status,omitempty"`
	NotStatus []dispatch.DISPATCH_STATUS `` /* 136-byte string literal not displayed */
	OwnOnly   *bool                      `protobuf:"varint,3,opt,name=own_only,json=ownOnly,proto3,oneof" json:"own_only,omitempty"`
	// contains filtered or unexported fields
}

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

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

Deprecated: Use ListDispatchesRequest.ProtoReflect.Descriptor instead.

func (*ListDispatchesRequest) GetNotStatus added in v0.8.0

func (x *ListDispatchesRequest) GetNotStatus() []dispatch.DISPATCH_STATUS

func (*ListDispatchesRequest) GetOwnOnly added in v0.8.0

func (x *ListDispatchesRequest) GetOwnOnly() bool

func (*ListDispatchesRequest) GetStatus added in v0.8.0

func (*ListDispatchesRequest) ProtoMessage added in v0.8.0

func (*ListDispatchesRequest) ProtoMessage()

func (*ListDispatchesRequest) ProtoReflect added in v0.8.0

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

func (*ListDispatchesRequest) Reset added in v0.8.0

func (x *ListDispatchesRequest) Reset()

func (*ListDispatchesRequest) String added in v0.8.0

func (x *ListDispatchesRequest) String() string

func (*ListDispatchesRequest) Validate added in v0.8.0

func (m *ListDispatchesRequest) Validate() error

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

func (m *ListDispatchesRequest) ValidateAll() error

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

type ListDispatchesRequestMultiError added in v0.8.0

type ListDispatchesRequestMultiError []error

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

func (ListDispatchesRequestMultiError) AllErrors added in v0.8.0

func (m ListDispatchesRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListDispatchesRequestMultiError) Error added in v0.8.0

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

type ListDispatchesRequestValidationError added in v0.8.0

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

ListDispatchesRequestValidationError is the validation error returned by ListDispatchesRequest.Validate if the designated constraints aren't met.

func (ListDispatchesRequestValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (ListDispatchesRequestValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (ListDispatchesRequestValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (ListDispatchesRequestValidationError) Field added in v0.8.0

Field function returns field value.

func (ListDispatchesRequestValidationError) Key added in v0.8.0

Key function returns key value.

func (ListDispatchesRequestValidationError) Reason added in v0.8.0

Reason function returns reason value.

type ListDispatchesResponse added in v0.8.0

type ListDispatchesResponse struct {
	Dispatches []*dispatch.Dispatch `protobuf:"bytes,1,rep,name=dispatches,proto3" json:"dispatches,omitempty"`
	// contains filtered or unexported fields
}

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

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

Deprecated: Use ListDispatchesResponse.ProtoReflect.Descriptor instead.

func (*ListDispatchesResponse) GetDispatches added in v0.8.0

func (x *ListDispatchesResponse) GetDispatches() []*dispatch.Dispatch

func (*ListDispatchesResponse) ProtoMessage added in v0.8.0

func (*ListDispatchesResponse) ProtoMessage()

func (*ListDispatchesResponse) ProtoReflect added in v0.8.0

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

func (*ListDispatchesResponse) Reset added in v0.8.0

func (x *ListDispatchesResponse) Reset()

func (*ListDispatchesResponse) String added in v0.8.0

func (x *ListDispatchesResponse) String() string

func (*ListDispatchesResponse) Validate added in v0.8.0

func (m *ListDispatchesResponse) Validate() error

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

func (m *ListDispatchesResponse) ValidateAll() error

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

type ListDispatchesResponseMultiError added in v0.8.0

type ListDispatchesResponseMultiError []error

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

func (ListDispatchesResponseMultiError) AllErrors added in v0.8.0

func (m ListDispatchesResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListDispatchesResponseMultiError) Error added in v0.8.0

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

type ListDispatchesResponseValidationError added in v0.8.0

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

ListDispatchesResponseValidationError is the validation error returned by ListDispatchesResponse.Validate if the designated constraints aren't met.

func (ListDispatchesResponseValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (ListDispatchesResponseValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (ListDispatchesResponseValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (ListDispatchesResponseValidationError) Field added in v0.8.0

Field function returns field value.

func (ListDispatchesResponseValidationError) Key added in v0.8.0

Key function returns key value.

func (ListDispatchesResponseValidationError) Reason added in v0.8.0

Reason function returns reason value.

type ListUnitActivityRequest added in v0.8.0

type ListUnitActivityRequest struct {
	Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Id         uint64                      `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

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

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

Deprecated: Use ListUnitActivityRequest.ProtoReflect.Descriptor instead.

func (*ListUnitActivityRequest) GetId added in v0.8.0

func (x *ListUnitActivityRequest) GetId() uint64

func (*ListUnitActivityRequest) GetPagination added in v0.8.0

func (*ListUnitActivityRequest) ProtoMessage added in v0.8.0

func (*ListUnitActivityRequest) ProtoMessage()

func (*ListUnitActivityRequest) ProtoReflect added in v0.8.0

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

func (*ListUnitActivityRequest) Reset added in v0.8.0

func (x *ListUnitActivityRequest) Reset()

func (*ListUnitActivityRequest) String added in v0.8.0

func (x *ListUnitActivityRequest) String() string

func (*ListUnitActivityRequest) Validate added in v0.8.0

func (m *ListUnitActivityRequest) Validate() error

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

func (m *ListUnitActivityRequest) ValidateAll() error

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

type ListUnitActivityRequestMultiError added in v0.8.0

type ListUnitActivityRequestMultiError []error

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

func (ListUnitActivityRequestMultiError) AllErrors added in v0.8.0

func (m ListUnitActivityRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUnitActivityRequestMultiError) Error added in v0.8.0

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

type ListUnitActivityRequestValidationError added in v0.8.0

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

ListUnitActivityRequestValidationError is the validation error returned by ListUnitActivityRequest.Validate if the designated constraints aren't met.

func (ListUnitActivityRequestValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (ListUnitActivityRequestValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (ListUnitActivityRequestValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (ListUnitActivityRequestValidationError) Field added in v0.8.0

Field function returns field value.

func (ListUnitActivityRequestValidationError) Key added in v0.8.0

Key function returns key value.

func (ListUnitActivityRequestValidationError) Reason added in v0.8.0

Reason function returns reason value.

type ListUnitActivityResponse added in v0.8.0

type ListUnitActivityResponse struct {
	Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Activity   []*dispatch.UnitStatus       `protobuf:"bytes,2,rep,name=activity,proto3" json:"activity,omitempty"`
	// contains filtered or unexported fields
}

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

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

Deprecated: Use ListUnitActivityResponse.ProtoReflect.Descriptor instead.

func (*ListUnitActivityResponse) GetActivity added in v0.8.0

func (x *ListUnitActivityResponse) GetActivity() []*dispatch.UnitStatus

func (*ListUnitActivityResponse) GetPagination added in v0.8.0

func (*ListUnitActivityResponse) ProtoMessage added in v0.8.0

func (*ListUnitActivityResponse) ProtoMessage()

func (*ListUnitActivityResponse) ProtoReflect added in v0.8.0

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

func (*ListUnitActivityResponse) Reset added in v0.8.0

func (x *ListUnitActivityResponse) Reset()

func (*ListUnitActivityResponse) String added in v0.8.0

func (x *ListUnitActivityResponse) String() string

func (*ListUnitActivityResponse) Validate added in v0.8.0

func (m *ListUnitActivityResponse) Validate() error

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

func (m *ListUnitActivityResponse) ValidateAll() error

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

type ListUnitActivityResponseMultiError added in v0.8.0

type ListUnitActivityResponseMultiError []error

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

func (ListUnitActivityResponseMultiError) AllErrors added in v0.8.0

func (m ListUnitActivityResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUnitActivityResponseMultiError) Error added in v0.8.0

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

type ListUnitActivityResponseValidationError added in v0.8.0

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

ListUnitActivityResponseValidationError is the validation error returned by ListUnitActivityResponse.Validate if the designated constraints aren't met.

func (ListUnitActivityResponseValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (ListUnitActivityResponseValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (ListUnitActivityResponseValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (ListUnitActivityResponseValidationError) Field added in v0.8.0

Field function returns field value.

func (ListUnitActivityResponseValidationError) Key added in v0.8.0

Key function returns key value.

func (ListUnitActivityResponseValidationError) Reason added in v0.8.0

Reason function returns reason value.

type ListUnitsRequest

type ListUnitsRequest struct {
	Status  []dispatch.UNIT_STATUS `protobuf:"varint,1,rep,packed,name=status,proto3,enum=resources.dispatch.UNIT_STATUS" json:"status,omitempty"`
	OwnOnly *bool                  `protobuf:"varint,2,opt,name=own_only,json=ownOnly,proto3,oneof" json:"own_only,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUnitsRequest) Descriptor deprecated

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

Deprecated: Use ListUnitsRequest.ProtoReflect.Descriptor instead.

func (*ListUnitsRequest) GetOwnOnly added in v0.8.0

func (x *ListUnitsRequest) GetOwnOnly() bool

func (*ListUnitsRequest) GetStatus

func (x *ListUnitsRequest) GetStatus() []dispatch.UNIT_STATUS

func (*ListUnitsRequest) ProtoMessage

func (*ListUnitsRequest) ProtoMessage()

func (*ListUnitsRequest) ProtoReflect

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

func (*ListUnitsRequest) Reset

func (x *ListUnitsRequest) Reset()

func (*ListUnitsRequest) String

func (x *ListUnitsRequest) String() string

func (*ListUnitsRequest) Validate

func (m *ListUnitsRequest) Validate() error

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

func (m *ListUnitsRequest) ValidateAll() error

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

type ListUnitsRequestMultiError

type ListUnitsRequestMultiError []error

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

func (ListUnitsRequestMultiError) AllErrors

func (m ListUnitsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUnitsRequestMultiError) Error

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

type ListUnitsRequestValidationError

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

ListUnitsRequestValidationError is the validation error returned by ListUnitsRequest.Validate if the designated constraints aren't met.

func (ListUnitsRequestValidationError) Cause

Cause function returns cause value.

func (ListUnitsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListUnitsRequestValidationError) ErrorName

ErrorName returns error name.

func (ListUnitsRequestValidationError) Field

Field function returns field value.

func (ListUnitsRequestValidationError) Key

Key function returns key value.

func (ListUnitsRequestValidationError) Reason

Reason function returns reason value.

type ListUnitsResponse

type ListUnitsResponse struct {
	Units []*dispatch.Unit `protobuf:"bytes,1,rep,name=units,proto3" json:"units,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUnitsResponse) Descriptor deprecated

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

Deprecated: Use ListUnitsResponse.ProtoReflect.Descriptor instead.

func (*ListUnitsResponse) GetUnits

func (x *ListUnitsResponse) GetUnits() []*dispatch.Unit

func (*ListUnitsResponse) ProtoMessage

func (*ListUnitsResponse) ProtoMessage()

func (*ListUnitsResponse) ProtoReflect

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

func (*ListUnitsResponse) Reset

func (x *ListUnitsResponse) Reset()

func (*ListUnitsResponse) String

func (x *ListUnitsResponse) String() string

func (*ListUnitsResponse) Validate

func (m *ListUnitsResponse) Validate() error

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

func (m *ListUnitsResponse) ValidateAll() error

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

type ListUnitsResponseMultiError

type ListUnitsResponseMultiError []error

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

func (ListUnitsResponseMultiError) AllErrors

func (m ListUnitsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUnitsResponseMultiError) Error

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

type ListUnitsResponseValidationError

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

ListUnitsResponseValidationError is the validation error returned by ListUnitsResponse.Validate if the designated constraints aren't met.

func (ListUnitsResponseValidationError) Cause

Cause function returns cause value.

func (ListUnitsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListUnitsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListUnitsResponseValidationError) Field

Field function returns field value.

func (ListUnitsResponseValidationError) Key

Key function returns key value.

func (ListUnitsResponseValidationError) Reason

Reason function returns reason value.

type Params added in v0.8.0

type Params struct {
	fx.In

	LC fx.Lifecycle

	Logger   *zap.Logger
	TP       *tracesdk.TracerProvider
	DB       *sql.DB
	Perms    perms.Permissions
	Audit    audit.IAuditer
	Events   *events.Eventus
	Enricher *mstlystcdata.Enricher
	Tracker  *tracker.Tracker
	Postals  *postals.Postals
	Config   *config.Config
}

type Server

type Server struct {
	CentrumServiceServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(p Params) (*Server, error)

func (*Server) AssignDispatch added in v0.8.0

func (s *Server) AssignDispatch(ctx context.Context, req *AssignDispatchRequest) (*AssignDispatchResponse, error)

func (*Server) AssignUnit

func (s *Server) AssignUnit(ctx context.Context, req *AssignUnitRequest) (*AssignUnitResponse, error)

func (*Server) ConvertPhoneJobMsgToDispatch added in v0.8.0

func (s *Server) ConvertPhoneJobMsgToDispatch() error

func (*Server) CreateDispatch added in v0.8.0

func (s *Server) CreateDispatch(ctx context.Context, req *CreateDispatchRequest) (*CreateDispatchResponse, error)

func (*Server) CreateOrUpdateUnit added in v0.8.0

func (s *Server) CreateOrUpdateUnit(ctx context.Context, req *CreateOrUpdateUnitRequest) (*CreateOrUpdateUnitResponse, error)

func (*Server) DeleteDispatch added in v0.8.1

func (s *Server) DeleteDispatch(ctx context.Context, req *DeleteDispatchRequest) (*DeleteDispatchResponse, error)

func (*Server) DeleteUnit

func (s *Server) DeleteUnit(ctx context.Context, req *DeleteUnitRequest) (*DeleteUnitResponse, error)

func (*Server) GetPermsRemap

func (s *Server) GetPermsRemap() map[string]string

func (*Server) GetSettings added in v0.8.0

func (s *Server) GetSettings(ctx context.Context, req *GetSettingsRequest) (*dispatch.Settings, error)

func (*Server) JoinUnit added in v0.8.0

func (s *Server) JoinUnit(ctx context.Context, req *JoinUnitRequest) (*JoinUnitResponse, error)

func (*Server) ListDispatchActivity added in v0.8.0

func (*Server) ListDispatches added in v0.8.0

func (s *Server) ListDispatches(ctx context.Context, req *ListDispatchesRequest) (*ListDispatchesResponse, error)

func (*Server) ListUnitActivity added in v0.8.0

func (s *Server) ListUnitActivity(ctx context.Context, req *ListUnitActivityRequest) (*ListUnitActivityResponse, error)

func (*Server) ListUnits

func (s *Server) ListUnits(ctx context.Context, req *ListUnitsRequest) (*ListUnitsResponse, error)

func (*Server) RegisterServer added in v0.8.0

func (s *Server) RegisterServer(srv *grpc.Server)

func (*Server) Stream added in v0.8.0

func (*Server) TakeControl added in v0.8.0

func (s *Server) TakeControl(ctx context.Context, req *TakeControlRequest) (*TakeControlResponse, error)

func (*Server) TakeDispatch added in v0.8.0

func (s *Server) TakeDispatch(ctx context.Context, req *TakeDispatchRequest) (*TakeDispatchResponse, error)

func (*Server) UpdateDispatch added in v0.8.0

func (s *Server) UpdateDispatch(ctx context.Context, req *UpdateDispatchRequest) (*UpdateDispatchResponse, error)

func (*Server) UpdateDispatchStatus added in v0.8.0

func (*Server) UpdateSettings added in v0.8.0

func (s *Server) UpdateSettings(ctx context.Context, req *dispatch.Settings) (*dispatch.Settings, error)

func (*Server) UpdateUnitStatus added in v0.8.0

func (s *Server) UpdateUnitStatus(ctx context.Context, req *UpdateUnitStatusRequest) (*UpdateUnitStatusResponse, error)

type StreamRequest added in v0.8.0

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

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

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

Deprecated: Use StreamRequest.ProtoReflect.Descriptor instead.

func (*StreamRequest) ProtoMessage added in v0.8.0

func (*StreamRequest) ProtoMessage()

func (*StreamRequest) ProtoReflect added in v0.8.0

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

func (*StreamRequest) Reset added in v0.8.0

func (x *StreamRequest) Reset()

func (*StreamRequest) String added in v0.8.0

func (x *StreamRequest) String() string

func (*StreamRequest) Validate added in v0.8.0

func (m *StreamRequest) Validate() error

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

func (m *StreamRequest) ValidateAll() error

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

type StreamRequestMultiError added in v0.8.0

type StreamRequestMultiError []error

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

func (StreamRequestMultiError) AllErrors added in v0.8.0

func (m StreamRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StreamRequestMultiError) Error added in v0.8.0

func (m StreamRequestMultiError) Error() string

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

type StreamRequestValidationError added in v0.8.0

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

StreamRequestValidationError is the validation error returned by StreamRequest.Validate if the designated constraints aren't met.

func (StreamRequestValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (StreamRequestValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (StreamRequestValidationError) ErrorName added in v0.8.0

func (e StreamRequestValidationError) ErrorName() string

ErrorName returns error name.

func (StreamRequestValidationError) Field added in v0.8.0

Field function returns field value.

func (StreamRequestValidationError) Key added in v0.8.0

Key function returns key value.

func (StreamRequestValidationError) Reason added in v0.8.0

Reason function returns reason value.

type StreamResponse added in v0.8.0

type StreamResponse struct {

	// Types that are assignable to Change:
	//
	//	*StreamResponse_LatestState
	//	*StreamResponse_Settings
	//	*StreamResponse_Disponents
	//	*StreamResponse_UnitAssigned
	//	*StreamResponse_UnitDeleted
	//	*StreamResponse_UnitUpdated
	//	*StreamResponse_UnitStatus
	//	*StreamResponse_DispatchDeleted
	//	*StreamResponse_DispatchCreated
	//	*StreamResponse_DispatchUpdated
	//	*StreamResponse_DispatchStatus
	//	*StreamResponse_Ping
	Change  isStreamResponse_Change `protobuf_oneof:"change"`
	Restart *bool                   `protobuf:"varint,13,opt,name=restart,proto3,oneof" json:"restart,omitempty"`
	// contains filtered or unexported fields
}

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

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

Deprecated: Use StreamResponse.ProtoReflect.Descriptor instead.

func (*StreamResponse) GetChange added in v0.8.0

func (m *StreamResponse) GetChange() isStreamResponse_Change

func (*StreamResponse) GetDispatchCreated added in v0.8.0

func (x *StreamResponse) GetDispatchCreated() *dispatch.Dispatch

func (*StreamResponse) GetDispatchDeleted added in v0.8.0

func (x *StreamResponse) GetDispatchDeleted() uint64

func (*StreamResponse) GetDispatchStatus added in v0.8.0

func (x *StreamResponse) GetDispatchStatus() *dispatch.Dispatch

func (*StreamResponse) GetDispatchUpdated added in v0.8.0

func (x *StreamResponse) GetDispatchUpdated() *dispatch.Dispatch

func (*StreamResponse) GetDisponents added in v0.8.0

func (x *StreamResponse) GetDisponents() *DisponentsChange

func (*StreamResponse) GetLatestState added in v0.8.0

func (x *StreamResponse) GetLatestState() *LatestState

func (*StreamResponse) GetPing added in v0.8.1

func (x *StreamResponse) GetPing() string

func (*StreamResponse) GetRestart added in v0.8.0

func (x *StreamResponse) GetRestart() bool

func (*StreamResponse) GetSettings added in v0.8.0

func (x *StreamResponse) GetSettings() *dispatch.Settings

func (*StreamResponse) GetUnitAssigned added in v0.8.0

func (x *StreamResponse) GetUnitAssigned() *dispatch.Unit

func (*StreamResponse) GetUnitDeleted added in v0.8.0

func (x *StreamResponse) GetUnitDeleted() *dispatch.Unit

func (*StreamResponse) GetUnitStatus added in v0.8.0

func (x *StreamResponse) GetUnitStatus() *dispatch.Unit

func (*StreamResponse) GetUnitUpdated added in v0.8.0

func (x *StreamResponse) GetUnitUpdated() *dispatch.Unit

func (*StreamResponse) ProtoMessage added in v0.8.0

func (*StreamResponse) ProtoMessage()

func (*StreamResponse) ProtoReflect added in v0.8.0

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

func (*StreamResponse) Reset added in v0.8.0

func (x *StreamResponse) Reset()

func (*StreamResponse) String added in v0.8.0

func (x *StreamResponse) String() string

func (*StreamResponse) Validate added in v0.8.0

func (m *StreamResponse) Validate() error

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

func (m *StreamResponse) ValidateAll() error

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

type StreamResponseMultiError added in v0.8.0

type StreamResponseMultiError []error

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

func (StreamResponseMultiError) AllErrors added in v0.8.0

func (m StreamResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StreamResponseMultiError) Error added in v0.8.0

func (m StreamResponseMultiError) Error() string

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

type StreamResponseValidationError added in v0.8.0

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

StreamResponseValidationError is the validation error returned by StreamResponse.Validate if the designated constraints aren't met.

func (StreamResponseValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (StreamResponseValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (StreamResponseValidationError) ErrorName added in v0.8.0

func (e StreamResponseValidationError) ErrorName() string

ErrorName returns error name.

func (StreamResponseValidationError) Field added in v0.8.0

Field function returns field value.

func (StreamResponseValidationError) Key added in v0.8.0

Key function returns key value.

func (StreamResponseValidationError) Reason added in v0.8.0

Reason function returns reason value.

type StreamResponse_DispatchCreated added in v0.8.0

type StreamResponse_DispatchCreated struct {
	DispatchCreated *dispatch.Dispatch `protobuf:"bytes,9,opt,name=dispatch_created,json=dispatchCreated,proto3,oneof"`
}

type StreamResponse_DispatchDeleted added in v0.8.0

type StreamResponse_DispatchDeleted struct {
	DispatchDeleted uint64 `protobuf:"varint,8,opt,name=dispatch_deleted,json=dispatchDeleted,proto3,oneof"`
}

type StreamResponse_DispatchStatus added in v0.8.0

type StreamResponse_DispatchStatus struct {
	DispatchStatus *dispatch.Dispatch `protobuf:"bytes,11,opt,name=dispatch_status,json=dispatchStatus,proto3,oneof"`
}

type StreamResponse_DispatchUpdated added in v0.8.0

type StreamResponse_DispatchUpdated struct {
	DispatchUpdated *dispatch.Dispatch `protobuf:"bytes,10,opt,name=dispatch_updated,json=dispatchUpdated,proto3,oneof"`
}

type StreamResponse_Disponents added in v0.8.0

type StreamResponse_Disponents struct {
	Disponents *DisponentsChange `protobuf:"bytes,3,opt,name=disponents,proto3,oneof"`
}

type StreamResponse_LatestState added in v0.8.0

type StreamResponse_LatestState struct {
	LatestState *LatestState `protobuf:"bytes,1,opt,name=latest_state,json=latestState,proto3,oneof"`
}

type StreamResponse_Ping added in v0.8.1

type StreamResponse_Ping struct {
	Ping string `protobuf:"bytes,12,opt,name=ping,proto3,oneof"`
}

type StreamResponse_Settings added in v0.8.0

type StreamResponse_Settings struct {
	Settings *dispatch.Settings `protobuf:"bytes,2,opt,name=settings,proto3,oneof"`
}

type StreamResponse_UnitAssigned added in v0.8.0

type StreamResponse_UnitAssigned struct {
	UnitAssigned *dispatch.Unit `protobuf:"bytes,4,opt,name=unit_assigned,json=unitAssigned,proto3,oneof"`
}

type StreamResponse_UnitDeleted added in v0.8.0

type StreamResponse_UnitDeleted struct {
	UnitDeleted *dispatch.Unit `protobuf:"bytes,5,opt,name=unit_deleted,json=unitDeleted,proto3,oneof"`
}

type StreamResponse_UnitStatus added in v0.8.0

type StreamResponse_UnitStatus struct {
	UnitStatus *dispatch.Unit `protobuf:"bytes,7,opt,name=unit_status,json=unitStatus,proto3,oneof"`
}

type StreamResponse_UnitUpdated added in v0.8.0

type StreamResponse_UnitUpdated struct {
	UnitUpdated *dispatch.Unit `protobuf:"bytes,6,opt,name=unit_updated,json=unitUpdated,proto3,oneof"`
}

type TAKE_DISPATCH_RESP added in v0.8.0

type TAKE_DISPATCH_RESP int32
const (
	TAKE_DISPATCH_RESP_TIMEOUT  TAKE_DISPATCH_RESP = 0
	TAKE_DISPATCH_RESP_ACCEPTED TAKE_DISPATCH_RESP = 1
	TAKE_DISPATCH_RESP_DECLINED TAKE_DISPATCH_RESP = 2
)

func (TAKE_DISPATCH_RESP) Descriptor added in v0.8.0

func (TAKE_DISPATCH_RESP) Enum added in v0.8.0

func (TAKE_DISPATCH_RESP) EnumDescriptor deprecated added in v0.8.0

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

Deprecated: Use TAKE_DISPATCH_RESP.Descriptor instead.

func (TAKE_DISPATCH_RESP) Number added in v0.8.0

func (TAKE_DISPATCH_RESP) String added in v0.8.0

func (x TAKE_DISPATCH_RESP) String() string

func (TAKE_DISPATCH_RESP) Type added in v0.8.0

type TakeControlRequest added in v0.8.0

type TakeControlRequest struct {
	Signon bool `protobuf:"varint,1,opt,name=signon,proto3" json:"signon,omitempty"`
	// contains filtered or unexported fields
}

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

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

Deprecated: Use TakeControlRequest.ProtoReflect.Descriptor instead.

func (*TakeControlRequest) GetSignon added in v0.8.0

func (x *TakeControlRequest) GetSignon() bool

func (*TakeControlRequest) ProtoMessage added in v0.8.0

func (*TakeControlRequest) ProtoMessage()

func (*TakeControlRequest) ProtoReflect added in v0.8.0

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

func (*TakeControlRequest) Reset added in v0.8.0

func (x *TakeControlRequest) Reset()

func (*TakeControlRequest) String added in v0.8.0

func (x *TakeControlRequest) String() string

func (*TakeControlRequest) Validate added in v0.8.0

func (m *TakeControlRequest) Validate() error

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

func (m *TakeControlRequest) ValidateAll() error

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

type TakeControlRequestMultiError added in v0.8.0

type TakeControlRequestMultiError []error

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

func (TakeControlRequestMultiError) AllErrors added in v0.8.0

func (m TakeControlRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TakeControlRequestMultiError) Error added in v0.8.0

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

type TakeControlRequestValidationError added in v0.8.0

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

TakeControlRequestValidationError is the validation error returned by TakeControlRequest.Validate if the designated constraints aren't met.

func (TakeControlRequestValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (TakeControlRequestValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (TakeControlRequestValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (TakeControlRequestValidationError) Field added in v0.8.0

Field function returns field value.

func (TakeControlRequestValidationError) Key added in v0.8.0

Key function returns key value.

func (TakeControlRequestValidationError) Reason added in v0.8.0

Reason function returns reason value.

type TakeControlResponse added in v0.8.0

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

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

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

Deprecated: Use TakeControlResponse.ProtoReflect.Descriptor instead.

func (*TakeControlResponse) ProtoMessage added in v0.8.0

func (*TakeControlResponse) ProtoMessage()

func (*TakeControlResponse) ProtoReflect added in v0.8.0

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

func (*TakeControlResponse) Reset added in v0.8.0

func (x *TakeControlResponse) Reset()

func (*TakeControlResponse) String added in v0.8.0

func (x *TakeControlResponse) String() string

func (*TakeControlResponse) Validate added in v0.8.0

func (m *TakeControlResponse) Validate() error

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

func (m *TakeControlResponse) ValidateAll() error

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

type TakeControlResponseMultiError added in v0.8.0

type TakeControlResponseMultiError []error

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

func (TakeControlResponseMultiError) AllErrors added in v0.8.0

func (m TakeControlResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TakeControlResponseMultiError) Error added in v0.8.0

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

type TakeControlResponseValidationError added in v0.8.0

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

TakeControlResponseValidationError is the validation error returned by TakeControlResponse.Validate if the designated constraints aren't met.

func (TakeControlResponseValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (TakeControlResponseValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (TakeControlResponseValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (TakeControlResponseValidationError) Field added in v0.8.0

Field function returns field value.

func (TakeControlResponseValidationError) Key added in v0.8.0

Key function returns key value.

func (TakeControlResponseValidationError) Reason added in v0.8.0

Reason function returns reason value.

type TakeDispatchRequest added in v0.8.0

type TakeDispatchRequest struct {
	DispatchIds []uint64           `protobuf:"varint,1,rep,packed,name=dispatch_ids,json=dispatchIds,proto3" json:"dispatch_ids,omitempty"`
	Resp        TAKE_DISPATCH_RESP `protobuf:"varint,2,opt,name=resp,proto3,enum=services.centrum.TAKE_DISPATCH_RESP" json:"resp,omitempty"`
	// @sanitize
	Reason *string `protobuf:"bytes,3,opt,name=reason,proto3,oneof" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

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

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

Deprecated: Use TakeDispatchRequest.ProtoReflect.Descriptor instead.

func (*TakeDispatchRequest) GetDispatchIds added in v0.8.0

func (x *TakeDispatchRequest) GetDispatchIds() []uint64

func (*TakeDispatchRequest) GetReason added in v0.8.0

func (x *TakeDispatchRequest) GetReason() string

func (*TakeDispatchRequest) GetResp added in v0.8.0

func (*TakeDispatchRequest) ProtoMessage added in v0.8.0

func (*TakeDispatchRequest) ProtoMessage()

func (*TakeDispatchRequest) ProtoReflect added in v0.8.0

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

func (*TakeDispatchRequest) Reset added in v0.8.0

func (x *TakeDispatchRequest) Reset()

func (*TakeDispatchRequest) Sanitize added in v0.8.1

func (m *TakeDispatchRequest) Sanitize() error

func (*TakeDispatchRequest) String added in v0.8.0

func (x *TakeDispatchRequest) String() string

func (*TakeDispatchRequest) Validate added in v0.8.0

func (m *TakeDispatchRequest) Validate() error

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

func (m *TakeDispatchRequest) ValidateAll() error

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

type TakeDispatchRequestMultiError added in v0.8.0

type TakeDispatchRequestMultiError []error

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

func (TakeDispatchRequestMultiError) AllErrors added in v0.8.0

func (m TakeDispatchRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TakeDispatchRequestMultiError) Error added in v0.8.0

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

type TakeDispatchRequestValidationError added in v0.8.0

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

TakeDispatchRequestValidationError is the validation error returned by TakeDispatchRequest.Validate if the designated constraints aren't met.

func (TakeDispatchRequestValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (TakeDispatchRequestValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (TakeDispatchRequestValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (TakeDispatchRequestValidationError) Field added in v0.8.0

Field function returns field value.

func (TakeDispatchRequestValidationError) Key added in v0.8.0

Key function returns key value.

func (TakeDispatchRequestValidationError) Reason added in v0.8.0

Reason function returns reason value.

type TakeDispatchResponse added in v0.8.0

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

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

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

Deprecated: Use TakeDispatchResponse.ProtoReflect.Descriptor instead.

func (*TakeDispatchResponse) ProtoMessage added in v0.8.0

func (*TakeDispatchResponse) ProtoMessage()

func (*TakeDispatchResponse) ProtoReflect added in v0.8.0

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

func (*TakeDispatchResponse) Reset added in v0.8.0

func (x *TakeDispatchResponse) Reset()

func (*TakeDispatchResponse) String added in v0.8.0

func (x *TakeDispatchResponse) String() string

func (*TakeDispatchResponse) Validate added in v0.8.0

func (m *TakeDispatchResponse) Validate() error

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

func (m *TakeDispatchResponse) ValidateAll() error

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

type TakeDispatchResponseMultiError added in v0.8.0

type TakeDispatchResponseMultiError []error

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

func (TakeDispatchResponseMultiError) AllErrors added in v0.8.0

func (m TakeDispatchResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TakeDispatchResponseMultiError) Error added in v0.8.0

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

type TakeDispatchResponseValidationError added in v0.8.0

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

TakeDispatchResponseValidationError is the validation error returned by TakeDispatchResponse.Validate if the designated constraints aren't met.

func (TakeDispatchResponseValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (TakeDispatchResponseValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (TakeDispatchResponseValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (TakeDispatchResponseValidationError) Field added in v0.8.0

Field function returns field value.

func (TakeDispatchResponseValidationError) Key added in v0.8.0

Key function returns key value.

func (TakeDispatchResponseValidationError) Reason added in v0.8.0

Reason function returns reason value.

type UnimplementedCentrumServiceServer

type UnimplementedCentrumServiceServer struct {
}

UnimplementedCentrumServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCentrumServiceServer) AssignDispatch added in v0.8.0

func (UnimplementedCentrumServiceServer) AssignUnit added in v0.8.0

func (UnimplementedCentrumServiceServer) CreateDispatch

func (UnimplementedCentrumServiceServer) CreateOrUpdateUnit added in v0.8.0

func (UnimplementedCentrumServiceServer) DeleteDispatch added in v0.8.1

func (UnimplementedCentrumServiceServer) DeleteUnit added in v0.8.0

func (UnimplementedCentrumServiceServer) GetSettings added in v0.8.0

func (UnimplementedCentrumServiceServer) JoinUnit added in v0.8.0

func (UnimplementedCentrumServiceServer) ListDispatchActivity added in v0.8.0

func (UnimplementedCentrumServiceServer) ListDispatches added in v0.8.0

func (UnimplementedCentrumServiceServer) ListUnitActivity added in v0.8.0

func (UnimplementedCentrumServiceServer) ListUnits added in v0.8.0

func (UnimplementedCentrumServiceServer) Stream

func (UnimplementedCentrumServiceServer) TakeControl added in v0.8.0

func (UnimplementedCentrumServiceServer) TakeDispatch added in v0.8.0

func (UnimplementedCentrumServiceServer) UpdateDispatch added in v0.8.0

func (UnimplementedCentrumServiceServer) UpdateDispatchStatus added in v0.8.0

func (UnimplementedCentrumServiceServer) UpdateSettings added in v0.8.0

func (UnimplementedCentrumServiceServer) UpdateUnitStatus added in v0.8.0

type UnsafeCentrumServiceServer

type UnsafeCentrumServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeCentrumServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CentrumServiceServer will result in compilation errors.

type UpdateDispatchRequest added in v0.8.0

type UpdateDispatchRequest struct {
	Dispatch *dispatch.Dispatch `protobuf:"bytes,1,opt,name=dispatch,proto3" json:"dispatch,omitempty"`
	// contains filtered or unexported fields
}

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

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

Deprecated: Use UpdateDispatchRequest.ProtoReflect.Descriptor instead.

func (*UpdateDispatchRequest) GetDispatch added in v0.8.0

func (x *UpdateDispatchRequest) GetDispatch() *dispatch.Dispatch

func (*UpdateDispatchRequest) ProtoMessage added in v0.8.0

func (*UpdateDispatchRequest) ProtoMessage()

func (*UpdateDispatchRequest) ProtoReflect added in v0.8.0

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

func (*UpdateDispatchRequest) Reset added in v0.8.0

func (x *UpdateDispatchRequest) Reset()

func (*UpdateDispatchRequest) String added in v0.8.0

func (x *UpdateDispatchRequest) String() string

func (*UpdateDispatchRequest) Validate added in v0.8.0

func (m *UpdateDispatchRequest) Validate() error

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

func (m *UpdateDispatchRequest) ValidateAll() error

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

type UpdateDispatchRequestMultiError added in v0.8.0

type UpdateDispatchRequestMultiError []error

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

func (UpdateDispatchRequestMultiError) AllErrors added in v0.8.0

func (m UpdateDispatchRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateDispatchRequestMultiError) Error added in v0.8.0

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

type UpdateDispatchRequestValidationError added in v0.8.0

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

UpdateDispatchRequestValidationError is the validation error returned by UpdateDispatchRequest.Validate if the designated constraints aren't met.

func (UpdateDispatchRequestValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (UpdateDispatchRequestValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (UpdateDispatchRequestValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (UpdateDispatchRequestValidationError) Field added in v0.8.0

Field function returns field value.

func (UpdateDispatchRequestValidationError) Key added in v0.8.0

Key function returns key value.

func (UpdateDispatchRequestValidationError) Reason added in v0.8.0

Reason function returns reason value.

type UpdateDispatchResponse added in v0.8.0

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

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

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

Deprecated: Use UpdateDispatchResponse.ProtoReflect.Descriptor instead.

func (*UpdateDispatchResponse) ProtoMessage added in v0.8.0

func (*UpdateDispatchResponse) ProtoMessage()

func (*UpdateDispatchResponse) ProtoReflect added in v0.8.0

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

func (*UpdateDispatchResponse) Reset added in v0.8.0

func (x *UpdateDispatchResponse) Reset()

func (*UpdateDispatchResponse) String added in v0.8.0

func (x *UpdateDispatchResponse) String() string

func (*UpdateDispatchResponse) Validate added in v0.8.0

func (m *UpdateDispatchResponse) Validate() error

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

func (m *UpdateDispatchResponse) ValidateAll() error

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

type UpdateDispatchResponseMultiError added in v0.8.0

type UpdateDispatchResponseMultiError []error

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

func (UpdateDispatchResponseMultiError) AllErrors added in v0.8.0

func (m UpdateDispatchResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateDispatchResponseMultiError) Error added in v0.8.0

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

type UpdateDispatchResponseValidationError added in v0.8.0

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

UpdateDispatchResponseValidationError is the validation error returned by UpdateDispatchResponse.Validate if the designated constraints aren't met.

func (UpdateDispatchResponseValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (UpdateDispatchResponseValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (UpdateDispatchResponseValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (UpdateDispatchResponseValidationError) Field added in v0.8.0

Field function returns field value.

func (UpdateDispatchResponseValidationError) Key added in v0.8.0

Key function returns key value.

func (UpdateDispatchResponseValidationError) Reason added in v0.8.0

Reason function returns reason value.

type UpdateDispatchStatusRequest added in v0.8.0

type UpdateDispatchStatusRequest struct {
	DispatchId uint64                   `protobuf:"varint,1,opt,name=dispatch_id,json=dispatchId,proto3" json:"dispatch_id,omitempty"`
	Status     dispatch.DISPATCH_STATUS `protobuf:"varint,2,opt,name=status,proto3,enum=resources.dispatch.DISPATCH_STATUS" json:"status,omitempty"`
	// @sanitize
	Reason *string `protobuf:"bytes,3,opt,name=reason,proto3,oneof" json:"reason,omitempty"`
	// @sanitize
	Code *string `protobuf:"bytes,4,opt,name=code,proto3,oneof" json:"code,omitempty"`
	// contains filtered or unexported fields
}

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

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

Deprecated: Use UpdateDispatchStatusRequest.ProtoReflect.Descriptor instead.

func (*UpdateDispatchStatusRequest) GetCode added in v0.8.0

func (x *UpdateDispatchStatusRequest) GetCode() string

func (*UpdateDispatchStatusRequest) GetDispatchId added in v0.8.0

func (x *UpdateDispatchStatusRequest) GetDispatchId() uint64

func (*UpdateDispatchStatusRequest) GetReason added in v0.8.0

func (x *UpdateDispatchStatusRequest) GetReason() string

func (*UpdateDispatchStatusRequest) GetStatus added in v0.8.0

func (*UpdateDispatchStatusRequest) ProtoMessage added in v0.8.0

func (*UpdateDispatchStatusRequest) ProtoMessage()

func (*UpdateDispatchStatusRequest) ProtoReflect added in v0.8.0

func (*UpdateDispatchStatusRequest) Reset added in v0.8.0

func (x *UpdateDispatchStatusRequest) Reset()

func (*UpdateDispatchStatusRequest) Sanitize added in v0.8.1

func (m *UpdateDispatchStatusRequest) Sanitize() error

func (*UpdateDispatchStatusRequest) String added in v0.8.0

func (x *UpdateDispatchStatusRequest) String() string

func (*UpdateDispatchStatusRequest) Validate added in v0.8.0

func (m *UpdateDispatchStatusRequest) Validate() error

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

func (m *UpdateDispatchStatusRequest) ValidateAll() error

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

type UpdateDispatchStatusRequestMultiError added in v0.8.0

type UpdateDispatchStatusRequestMultiError []error

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

func (UpdateDispatchStatusRequestMultiError) AllErrors added in v0.8.0

AllErrors returns a list of validation violation errors.

func (UpdateDispatchStatusRequestMultiError) Error added in v0.8.0

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

type UpdateDispatchStatusRequestValidationError added in v0.8.0

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

UpdateDispatchStatusRequestValidationError is the validation error returned by UpdateDispatchStatusRequest.Validate if the designated constraints aren't met.

func (UpdateDispatchStatusRequestValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (UpdateDispatchStatusRequestValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (UpdateDispatchStatusRequestValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (UpdateDispatchStatusRequestValidationError) Field added in v0.8.0

Field function returns field value.

func (UpdateDispatchStatusRequestValidationError) Key added in v0.8.0

Key function returns key value.

func (UpdateDispatchStatusRequestValidationError) Reason added in v0.8.0

Reason function returns reason value.

type UpdateDispatchStatusResponse added in v0.8.0

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

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

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

Deprecated: Use UpdateDispatchStatusResponse.ProtoReflect.Descriptor instead.

func (*UpdateDispatchStatusResponse) ProtoMessage added in v0.8.0

func (*UpdateDispatchStatusResponse) ProtoMessage()

func (*UpdateDispatchStatusResponse) ProtoReflect added in v0.8.0

func (*UpdateDispatchStatusResponse) Reset added in v0.8.0

func (x *UpdateDispatchStatusResponse) Reset()

func (*UpdateDispatchStatusResponse) String added in v0.8.0

func (*UpdateDispatchStatusResponse) Validate added in v0.8.0

func (m *UpdateDispatchStatusResponse) Validate() error

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

func (m *UpdateDispatchStatusResponse) ValidateAll() error

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

type UpdateDispatchStatusResponseMultiError added in v0.8.0

type UpdateDispatchStatusResponseMultiError []error

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

func (UpdateDispatchStatusResponseMultiError) AllErrors added in v0.8.0

AllErrors returns a list of validation violation errors.

func (UpdateDispatchStatusResponseMultiError) Error added in v0.8.0

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

type UpdateDispatchStatusResponseValidationError added in v0.8.0

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

UpdateDispatchStatusResponseValidationError is the validation error returned by UpdateDispatchStatusResponse.Validate if the designated constraints aren't met.

func (UpdateDispatchStatusResponseValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (UpdateDispatchStatusResponseValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (UpdateDispatchStatusResponseValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (UpdateDispatchStatusResponseValidationError) Field added in v0.8.0

Field function returns field value.

func (UpdateDispatchStatusResponseValidationError) Key added in v0.8.0

Key function returns key value.

func (UpdateDispatchStatusResponseValidationError) Reason added in v0.8.0

Reason function returns reason value.

type UpdateUnitStatusRequest added in v0.8.0

type UpdateUnitStatusRequest struct {
	UnitId uint64               `protobuf:"varint,1,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty"`
	Status dispatch.UNIT_STATUS `protobuf:"varint,2,opt,name=status,proto3,enum=resources.dispatch.UNIT_STATUS" json:"status,omitempty"`
	// @sanitize
	Reason *string `protobuf:"bytes,3,opt,name=reason,proto3,oneof" json:"reason,omitempty"`
	// @sanitize
	Code *string `protobuf:"bytes,4,opt,name=code,proto3,oneof" json:"code,omitempty"`
	// contains filtered or unexported fields
}

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

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

Deprecated: Use UpdateUnitStatusRequest.ProtoReflect.Descriptor instead.

func (*UpdateUnitStatusRequest) GetCode added in v0.8.0

func (x *UpdateUnitStatusRequest) GetCode() string

func (*UpdateUnitStatusRequest) GetReason added in v0.8.0

func (x *UpdateUnitStatusRequest) GetReason() string

func (*UpdateUnitStatusRequest) GetStatus added in v0.8.0

func (*UpdateUnitStatusRequest) GetUnitId added in v0.8.0

func (x *UpdateUnitStatusRequest) GetUnitId() uint64

func (*UpdateUnitStatusRequest) ProtoMessage added in v0.8.0

func (*UpdateUnitStatusRequest) ProtoMessage()

func (*UpdateUnitStatusRequest) ProtoReflect added in v0.8.0

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

func (*UpdateUnitStatusRequest) Reset added in v0.8.0

func (x *UpdateUnitStatusRequest) Reset()

func (*UpdateUnitStatusRequest) Sanitize added in v0.8.1

func (m *UpdateUnitStatusRequest) Sanitize() error

func (*UpdateUnitStatusRequest) String added in v0.8.0

func (x *UpdateUnitStatusRequest) String() string

func (*UpdateUnitStatusRequest) Validate added in v0.8.0

func (m *UpdateUnitStatusRequest) Validate() error

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

func (m *UpdateUnitStatusRequest) ValidateAll() error

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

type UpdateUnitStatusRequestMultiError added in v0.8.0

type UpdateUnitStatusRequestMultiError []error

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

func (UpdateUnitStatusRequestMultiError) AllErrors added in v0.8.0

func (m UpdateUnitStatusRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateUnitStatusRequestMultiError) Error added in v0.8.0

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

type UpdateUnitStatusRequestValidationError added in v0.8.0

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

UpdateUnitStatusRequestValidationError is the validation error returned by UpdateUnitStatusRequest.Validate if the designated constraints aren't met.

func (UpdateUnitStatusRequestValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (UpdateUnitStatusRequestValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (UpdateUnitStatusRequestValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (UpdateUnitStatusRequestValidationError) Field added in v0.8.0

Field function returns field value.

func (UpdateUnitStatusRequestValidationError) Key added in v0.8.0

Key function returns key value.

func (UpdateUnitStatusRequestValidationError) Reason added in v0.8.0

Reason function returns reason value.

type UpdateUnitStatusResponse added in v0.8.0

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

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

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

Deprecated: Use UpdateUnitStatusResponse.ProtoReflect.Descriptor instead.

func (*UpdateUnitStatusResponse) ProtoMessage added in v0.8.0

func (*UpdateUnitStatusResponse) ProtoMessage()

func (*UpdateUnitStatusResponse) ProtoReflect added in v0.8.0

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

func (*UpdateUnitStatusResponse) Reset added in v0.8.0

func (x *UpdateUnitStatusResponse) Reset()

func (*UpdateUnitStatusResponse) String added in v0.8.0

func (x *UpdateUnitStatusResponse) String() string

func (*UpdateUnitStatusResponse) Validate added in v0.8.0

func (m *UpdateUnitStatusResponse) Validate() error

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

func (m *UpdateUnitStatusResponse) ValidateAll() error

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

type UpdateUnitStatusResponseMultiError added in v0.8.0

type UpdateUnitStatusResponseMultiError []error

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

func (UpdateUnitStatusResponseMultiError) AllErrors added in v0.8.0

func (m UpdateUnitStatusResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateUnitStatusResponseMultiError) Error added in v0.8.0

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

type UpdateUnitStatusResponseValidationError added in v0.8.0

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

UpdateUnitStatusResponseValidationError is the validation error returned by UpdateUnitStatusResponse.Validate if the designated constraints aren't met.

func (UpdateUnitStatusResponseValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (UpdateUnitStatusResponseValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (UpdateUnitStatusResponseValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (UpdateUnitStatusResponseValidationError) Field added in v0.8.0

Field function returns field value.

func (UpdateUnitStatusResponseValidationError) Key added in v0.8.0

Key function returns key value.

func (UpdateUnitStatusResponseValidationError) 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