gates

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: MIT Imports: 29 Imported by: 2

Documentation

Overview

Package gates is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_gates_gates_proto protoreflect.FileDescriptor

Functions

func RegisterMruVGatesServiceHandler

func RegisterMruVGatesServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterMruVGatesServiceHandler registers the http handlers for service MruVGatesService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterMruVGatesServiceHandlerClient

func RegisterMruVGatesServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MruVGatesServiceClient) error

RegisterMruVGatesServiceHandlerClient registers the http handlers for service MruVGatesService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MruVGatesServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MruVGatesServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MruVGatesServiceClient" to call the correct interceptors.

func RegisterMruVGatesServiceHandlerFromEndpoint

func RegisterMruVGatesServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterMruVGatesServiceHandlerFromEndpoint is same as RegisterMruVGatesServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterMruVGatesServiceHandlerServer

func RegisterMruVGatesServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MruVGatesServiceServer) error

RegisterMruVGatesServiceHandlerServer registers the http handlers for service MruVGatesService to "mux". UnaryRPC :call MruVGatesServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMruVGatesServiceHandlerFromEndpoint instead.

func RegisterMruVGatesServiceServer

func RegisterMruVGatesServiceServer(s *grpc.Server, srv MruVGatesServiceServer)

Types

type CloseRequest

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

Request message for rpc `Close`.

func (*CloseRequest) Descriptor deprecated

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

Deprecated: Use CloseRequest.ProtoReflect.Descriptor instead.

func (*CloseRequest) GetId

func (x *CloseRequest) GetId() uint32

func (*CloseRequest) ProtoMessage

func (*CloseRequest) ProtoMessage()

func (*CloseRequest) ProtoReflect added in v0.8.4

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

func (*CloseRequest) Reset

func (x *CloseRequest) Reset()

func (*CloseRequest) String

func (x *CloseRequest) String() string

func (*CloseRequest) Validate

func (m *CloseRequest) Validate() error

Validate checks the field values on CloseRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CloseRequestValidationError

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

CloseRequestValidationError is the validation error returned by CloseRequest.Validate if the designated constraints aren't met.

func (CloseRequestValidationError) Cause

Cause function returns cause value.

func (CloseRequestValidationError) Error

Error satisfies the builtin error interface

func (CloseRequestValidationError) ErrorName

func (e CloseRequestValidationError) ErrorName() string

ErrorName returns error name.

func (CloseRequestValidationError) Field

Field function returns field value.

func (CloseRequestValidationError) Key

Key function returns key value.

func (CloseRequestValidationError) Reason

Reason function returns reason value.

type CloseResponse

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

Response message for rpc `Close`.

func (*CloseResponse) Descriptor deprecated

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

Deprecated: Use CloseResponse.ProtoReflect.Descriptor instead.

func (*CloseResponse) ProtoMessage

func (*CloseResponse) ProtoMessage()

func (*CloseResponse) ProtoReflect added in v0.8.4

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

func (*CloseResponse) Reset

func (x *CloseResponse) Reset()

func (*CloseResponse) String

func (x *CloseResponse) String() string

func (*CloseResponse) Validate

func (m *CloseResponse) Validate() error

Validate checks the field values on CloseResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CloseResponseValidationError

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

CloseResponseValidationError is the validation error returned by CloseResponse.Validate if the designated constraints aren't met.

func (CloseResponseValidationError) Cause

Cause function returns cause value.

func (CloseResponseValidationError) Error

Error satisfies the builtin error interface

func (CloseResponseValidationError) ErrorName

func (e CloseResponseValidationError) ErrorName() string

ErrorName returns error name.

func (CloseResponseValidationError) Field

Field function returns field value.

func (CloseResponseValidationError) Key

Key function returns key value.

func (CloseResponseValidationError) Reason

Reason function returns reason value.

type CreateGateRequest

type CreateGateRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// List of objects to move on gate close/open. Every object should have only 2 states: opened, closed.
	GateObjects []*objects.MovableObject `protobuf:"bytes,2,rep,name=gate_objects,json=gateObjects,proto3" json:"gate_objects,omitempty"`
	// Gate spot. This spot define gate position.
	Spot *spots.Spot `protobuf:"bytes,3,opt,name=spot,proto3" json:"spot,omitempty"`
	// contains filtered or unexported fields
}

Request message for rpc `CreateGate`.

func (*CreateGateRequest) Descriptor deprecated

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

Deprecated: Use CreateGateRequest.ProtoReflect.Descriptor instead.

func (*CreateGateRequest) GetGateObjects

func (x *CreateGateRequest) GetGateObjects() []*objects.MovableObject

func (*CreateGateRequest) GetName

func (x *CreateGateRequest) GetName() string

func (*CreateGateRequest) GetSpot

func (x *CreateGateRequest) GetSpot() *spots.Spot

func (*CreateGateRequest) ProtoMessage

func (*CreateGateRequest) ProtoMessage()

func (*CreateGateRequest) ProtoReflect added in v0.8.4

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

func (*CreateGateRequest) Reset

func (x *CreateGateRequest) Reset()

func (*CreateGateRequest) String

func (x *CreateGateRequest) String() string

func (*CreateGateRequest) Validate

func (m *CreateGateRequest) Validate() error

Validate checks the field values on CreateGateRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CreateGateRequestValidationError

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

CreateGateRequestValidationError is the validation error returned by CreateGateRequest.Validate if the designated constraints aren't met.

func (CreateGateRequestValidationError) Cause

Cause function returns cause value.

func (CreateGateRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateGateRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateGateRequestValidationError) Field

Field function returns field value.

func (CreateGateRequestValidationError) Key

Key function returns key value.

func (CreateGateRequestValidationError) Reason

Reason function returns reason value.

type CreateGateResponse

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

Response message for rpc `CreateGate`.

func (*CreateGateResponse) Descriptor deprecated

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

Deprecated: Use CreateGateResponse.ProtoReflect.Descriptor instead.

func (*CreateGateResponse) GetId

func (x *CreateGateResponse) GetId() uint32

func (*CreateGateResponse) ProtoMessage

func (*CreateGateResponse) ProtoMessage()

func (*CreateGateResponse) ProtoReflect added in v0.8.4

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

func (*CreateGateResponse) Reset

func (x *CreateGateResponse) Reset()

func (*CreateGateResponse) String

func (x *CreateGateResponse) String() string

func (*CreateGateResponse) Validate

func (m *CreateGateResponse) Validate() error

Validate checks the field values on CreateGateResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CreateGateResponseValidationError

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

CreateGateResponseValidationError is the validation error returned by CreateGateResponse.Validate if the designated constraints aren't met.

func (CreateGateResponseValidationError) Cause

Cause function returns cause value.

func (CreateGateResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateGateResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateGateResponseValidationError) Field

Field function returns field value.

func (CreateGateResponseValidationError) Key

Key function returns key value.

func (CreateGateResponseValidationError) Reason

Reason function returns reason value.

type DeleteGateRequest

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

Request message for rpc `DeleteGate`.

func (*DeleteGateRequest) Descriptor deprecated

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

Deprecated: Use DeleteGateRequest.ProtoReflect.Descriptor instead.

func (*DeleteGateRequest) GetId

func (x *DeleteGateRequest) GetId() uint32

func (*DeleteGateRequest) ProtoMessage

func (*DeleteGateRequest) ProtoMessage()

func (*DeleteGateRequest) ProtoReflect added in v0.8.4

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

func (*DeleteGateRequest) Reset

func (x *DeleteGateRequest) Reset()

func (*DeleteGateRequest) String

func (x *DeleteGateRequest) String() string

func (*DeleteGateRequest) Validate

func (m *DeleteGateRequest) Validate() error

Validate checks the field values on DeleteGateRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type DeleteGateRequestValidationError

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

DeleteGateRequestValidationError is the validation error returned by DeleteGateRequest.Validate if the designated constraints aren't met.

func (DeleteGateRequestValidationError) Cause

Cause function returns cause value.

func (DeleteGateRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteGateRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteGateRequestValidationError) Field

Field function returns field value.

func (DeleteGateRequestValidationError) Key

Key function returns key value.

func (DeleteGateRequestValidationError) Reason

Reason function returns reason value.

type DeleteGateResponse

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

Response message for rpc `DeleteGate`.

func (*DeleteGateResponse) Descriptor deprecated

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

Deprecated: Use DeleteGateResponse.ProtoReflect.Descriptor instead.

func (*DeleteGateResponse) ProtoMessage

func (*DeleteGateResponse) ProtoMessage()

func (*DeleteGateResponse) ProtoReflect added in v0.8.4

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

func (*DeleteGateResponse) Reset

func (x *DeleteGateResponse) Reset()

func (*DeleteGateResponse) String

func (x *DeleteGateResponse) String() string

func (*DeleteGateResponse) Validate

func (m *DeleteGateResponse) Validate() error

Validate checks the field values on DeleteGateResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type DeleteGateResponseValidationError

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

DeleteGateResponseValidationError is the validation error returned by DeleteGateResponse.Validate if the designated constraints aren't met.

func (DeleteGateResponseValidationError) Cause

Cause function returns cause value.

func (DeleteGateResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteGateResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteGateResponseValidationError) Field

Field function returns field value.

func (DeleteGateResponseValidationError) Key

Key function returns key value.

func (DeleteGateResponseValidationError) Reason

Reason function returns reason value.

type FetchAllGatesRequest

type FetchAllGatesRequest struct {
	ChunkSize uint32 `protobuf:"varint,1,opt,name=chunk_size,json=chunkSize,proto3" json:"chunk_size,omitempty"`
	// contains filtered or unexported fields
}

Request message for rpc `FetchAllGates`.

func (*FetchAllGatesRequest) Descriptor deprecated

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

Deprecated: Use FetchAllGatesRequest.ProtoReflect.Descriptor instead.

func (*FetchAllGatesRequest) GetChunkSize

func (x *FetchAllGatesRequest) GetChunkSize() uint32

func (*FetchAllGatesRequest) ProtoMessage

func (*FetchAllGatesRequest) ProtoMessage()

func (*FetchAllGatesRequest) ProtoReflect added in v0.8.4

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

func (*FetchAllGatesRequest) Reset

func (x *FetchAllGatesRequest) Reset()

func (*FetchAllGatesRequest) String

func (x *FetchAllGatesRequest) String() string

func (*FetchAllGatesRequest) Validate

func (m *FetchAllGatesRequest) Validate() error

Validate checks the field values on FetchAllGatesRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type FetchAllGatesRequestValidationError

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

FetchAllGatesRequestValidationError is the validation error returned by FetchAllGatesRequest.Validate if the designated constraints aren't met.

func (FetchAllGatesRequestValidationError) Cause

Cause function returns cause value.

func (FetchAllGatesRequestValidationError) Error

Error satisfies the builtin error interface

func (FetchAllGatesRequestValidationError) ErrorName

ErrorName returns error name.

func (FetchAllGatesRequestValidationError) Field

Field function returns field value.

func (FetchAllGatesRequestValidationError) Key

Key function returns key value.

func (FetchAllGatesRequestValidationError) Reason

Reason function returns reason value.

type FetchAllGatesResponse

type FetchAllGatesResponse struct {
	Gates map[uint32]*Gate `` /* 152-byte string literal not displayed */
	// contains filtered or unexported fields
}

Response message for rpc `FetchAllGates`.

func (*FetchAllGatesResponse) Descriptor deprecated

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

Deprecated: Use FetchAllGatesResponse.ProtoReflect.Descriptor instead.

func (*FetchAllGatesResponse) GetGates

func (x *FetchAllGatesResponse) GetGates() map[uint32]*Gate

func (*FetchAllGatesResponse) ProtoMessage

func (*FetchAllGatesResponse) ProtoMessage()

func (*FetchAllGatesResponse) ProtoReflect added in v0.8.4

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

func (*FetchAllGatesResponse) Reset

func (x *FetchAllGatesResponse) Reset()

func (*FetchAllGatesResponse) String

func (x *FetchAllGatesResponse) String() string

func (*FetchAllGatesResponse) Validate

func (m *FetchAllGatesResponse) Validate() error

Validate checks the field values on FetchAllGatesResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type FetchAllGatesResponseValidationError

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

FetchAllGatesResponseValidationError is the validation error returned by FetchAllGatesResponse.Validate if the designated constraints aren't met.

func (FetchAllGatesResponseValidationError) Cause

Cause function returns cause value.

func (FetchAllGatesResponseValidationError) Error

Error satisfies the builtin error interface

func (FetchAllGatesResponseValidationError) ErrorName

ErrorName returns error name.

func (FetchAllGatesResponseValidationError) Field

Field function returns field value.

func (FetchAllGatesResponseValidationError) Key

Key function returns key value.

func (FetchAllGatesResponseValidationError) Reason

Reason function returns reason value.

type FindNearestGateRequest

type FindNearestGateRequest struct {
	X           float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
	Y           float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
	Z           float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"`
	MaxDistance float32 `protobuf:"fixed32,4,opt,name=max_distance,json=maxDistance,proto3" json:"max_distance,omitempty"`
	// contains filtered or unexported fields
}

Request message for rpc `FindNearestGate`.

func (*FindNearestGateRequest) Descriptor deprecated

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

Deprecated: Use FindNearestGateRequest.ProtoReflect.Descriptor instead.

func (*FindNearestGateRequest) GetMaxDistance

func (x *FindNearestGateRequest) GetMaxDistance() float32

func (*FindNearestGateRequest) GetX

func (x *FindNearestGateRequest) GetX() float32

func (*FindNearestGateRequest) GetY

func (x *FindNearestGateRequest) GetY() float32

func (*FindNearestGateRequest) GetZ

func (x *FindNearestGateRequest) GetZ() float32

func (*FindNearestGateRequest) ProtoMessage

func (*FindNearestGateRequest) ProtoMessage()

func (*FindNearestGateRequest) ProtoReflect added in v0.8.4

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

func (*FindNearestGateRequest) Reset

func (x *FindNearestGateRequest) Reset()

func (*FindNearestGateRequest) String

func (x *FindNearestGateRequest) String() string

func (*FindNearestGateRequest) Validate

func (m *FindNearestGateRequest) Validate() error

Validate checks the field values on FindNearestGateRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type FindNearestGateRequestValidationError

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

FindNearestGateRequestValidationError is the validation error returned by FindNearestGateRequest.Validate if the designated constraints aren't met.

func (FindNearestGateRequestValidationError) Cause

Cause function returns cause value.

func (FindNearestGateRequestValidationError) Error

Error satisfies the builtin error interface

func (FindNearestGateRequestValidationError) ErrorName

ErrorName returns error name.

func (FindNearestGateRequestValidationError) Field

Field function returns field value.

func (FindNearestGateRequestValidationError) Key

Key function returns key value.

func (FindNearestGateRequestValidationError) Reason

Reason function returns reason value.

type FindNearestGateResponse

type FindNearestGateResponse struct {
	Id       uint32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Distance float32 `protobuf:"fixed32,2,opt,name=distance,proto3" json:"distance,omitempty"`
	// contains filtered or unexported fields
}

Response message for rpc `FindNearestGate`.

func (*FindNearestGateResponse) Descriptor deprecated

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

Deprecated: Use FindNearestGateResponse.ProtoReflect.Descriptor instead.

func (*FindNearestGateResponse) GetDistance

func (x *FindNearestGateResponse) GetDistance() float32

func (*FindNearestGateResponse) GetId

func (x *FindNearestGateResponse) GetId() uint32

func (*FindNearestGateResponse) ProtoMessage

func (*FindNearestGateResponse) ProtoMessage()

func (*FindNearestGateResponse) ProtoReflect added in v0.8.4

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

func (*FindNearestGateResponse) Reset

func (x *FindNearestGateResponse) Reset()

func (*FindNearestGateResponse) String

func (x *FindNearestGateResponse) String() string

func (*FindNearestGateResponse) Validate

func (m *FindNearestGateResponse) Validate() error

Validate checks the field values on FindNearestGateResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type FindNearestGateResponseValidationError

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

FindNearestGateResponseValidationError is the validation error returned by FindNearestGateResponse.Validate if the designated constraints aren't met.

func (FindNearestGateResponseValidationError) Cause

Cause function returns cause value.

func (FindNearestGateResponseValidationError) Error

Error satisfies the builtin error interface

func (FindNearestGateResponseValidationError) ErrorName

ErrorName returns error name.

func (FindNearestGateResponseValidationError) Field

Field function returns field value.

func (FindNearestGateResponseValidationError) Key

Key function returns key value.

func (FindNearestGateResponseValidationError) Reason

Reason function returns reason value.

type Gate

type Gate struct {
	Name        string                   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	GateObjects []*objects.MovableObject `protobuf:"bytes,2,rep,name=gate_objects,json=gateObjects,proto3" json:"gate_objects,omitempty"`
	Spot        *spots.Spot              `protobuf:"bytes,3,opt,name=spot,proto3" json:"spot,omitempty"`
	Opened      bool                     `protobuf:"varint,4,opt,name=opened,proto3" json:"opened,omitempty"`
	Locked      bool                     `protobuf:"varint,5,opt,name=locked,proto3" json:"locked,omitempty"`
	// contains filtered or unexported fields
}

func (*Gate) Descriptor deprecated

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

Deprecated: Use Gate.ProtoReflect.Descriptor instead.

func (*Gate) GetGateObjects

func (x *Gate) GetGateObjects() []*objects.MovableObject

func (*Gate) GetLocked

func (x *Gate) GetLocked() bool

func (*Gate) GetName

func (x *Gate) GetName() string

func (*Gate) GetOpened

func (x *Gate) GetOpened() bool

func (*Gate) GetSpot

func (x *Gate) GetSpot() *spots.Spot

func (*Gate) ProtoMessage

func (*Gate) ProtoMessage()

func (*Gate) ProtoReflect added in v0.8.4

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

func (*Gate) Reset

func (x *Gate) Reset()

func (*Gate) String

func (x *Gate) String() string

func (*Gate) Validate

func (m *Gate) Validate() error

Validate checks the field values on Gate with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GateValidationError

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

GateValidationError is the validation error returned by Gate.Validate if the designated constraints aren't met.

func (GateValidationError) Cause

func (e GateValidationError) Cause() error

Cause function returns cause value.

func (GateValidationError) Error

func (e GateValidationError) Error() string

Error satisfies the builtin error interface

func (GateValidationError) ErrorName

func (e GateValidationError) ErrorName() string

ErrorName returns error name.

func (GateValidationError) Field

func (e GateValidationError) Field() string

Field function returns field value.

func (GateValidationError) Key

func (e GateValidationError) Key() bool

Key function returns key value.

func (GateValidationError) Reason

func (e GateValidationError) Reason() string

Reason function returns reason value.

type GetGateRequest

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

Request message for rpc `GetGate`.

func (*GetGateRequest) Descriptor deprecated

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

Deprecated: Use GetGateRequest.ProtoReflect.Descriptor instead.

func (*GetGateRequest) GetId

func (x *GetGateRequest) GetId() uint32

func (*GetGateRequest) ProtoMessage

func (*GetGateRequest) ProtoMessage()

func (*GetGateRequest) ProtoReflect added in v0.8.4

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

func (*GetGateRequest) Reset

func (x *GetGateRequest) Reset()

func (*GetGateRequest) String

func (x *GetGateRequest) String() string

func (*GetGateRequest) Validate

func (m *GetGateRequest) Validate() error

Validate checks the field values on GetGateRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetGateRequestValidationError

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

GetGateRequestValidationError is the validation error returned by GetGateRequest.Validate if the designated constraints aren't met.

func (GetGateRequestValidationError) Cause

Cause function returns cause value.

func (GetGateRequestValidationError) Error

Error satisfies the builtin error interface

func (GetGateRequestValidationError) ErrorName

func (e GetGateRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetGateRequestValidationError) Field

Field function returns field value.

func (GetGateRequestValidationError) Key

Key function returns key value.

func (GetGateRequestValidationError) Reason

Reason function returns reason value.

type GetGateResponse

type GetGateResponse struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// List of objects to move on gate close/open. Every object should have only 2 states: opened, closed.
	MovableObjects []*objects.MovableObject `protobuf:"bytes,2,rep,name=movable_objects,json=movableObjects,proto3" json:"movable_objects,omitempty"`
	Spot           *spots.Spot              `protobuf:"bytes,3,opt,name=spot,proto3" json:"spot,omitempty"`
	Opened         bool                     `protobuf:"varint,4,opt,name=opened,proto3" json:"opened,omitempty"`
	Locked         bool                     `protobuf:"varint,5,opt,name=locked,proto3" json:"locked,omitempty"`
	// contains filtered or unexported fields
}

Response message for rpc `GetGate`.

func (*GetGateResponse) Descriptor deprecated

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

Deprecated: Use GetGateResponse.ProtoReflect.Descriptor instead.

func (*GetGateResponse) GetLocked

func (x *GetGateResponse) GetLocked() bool

func (*GetGateResponse) GetMovableObjects

func (x *GetGateResponse) GetMovableObjects() []*objects.MovableObject

func (*GetGateResponse) GetName

func (x *GetGateResponse) GetName() string

func (*GetGateResponse) GetOpened

func (x *GetGateResponse) GetOpened() bool

func (*GetGateResponse) GetSpot

func (x *GetGateResponse) GetSpot() *spots.Spot

func (*GetGateResponse) ProtoMessage

func (*GetGateResponse) ProtoMessage()

func (*GetGateResponse) ProtoReflect added in v0.8.4

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

func (*GetGateResponse) Reset

func (x *GetGateResponse) Reset()

func (*GetGateResponse) String

func (x *GetGateResponse) String() string

func (*GetGateResponse) Validate

func (m *GetGateResponse) Validate() error

Validate checks the field values on GetGateResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetGateResponseValidationError

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

GetGateResponseValidationError is the validation error returned by GetGateResponse.Validate if the designated constraints aren't met.

func (GetGateResponseValidationError) Cause

Cause function returns cause value.

func (GetGateResponseValidationError) Error

Error satisfies the builtin error interface

func (GetGateResponseValidationError) ErrorName

func (e GetGateResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetGateResponseValidationError) Field

Field function returns field value.

func (GetGateResponseValidationError) Key

Key function returns key value.

func (GetGateResponseValidationError) Reason

Reason function returns reason value.

type LockRequest

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

Request message for rpc `Lock`.

func (*LockRequest) Descriptor deprecated

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

Deprecated: Use LockRequest.ProtoReflect.Descriptor instead.

func (*LockRequest) GetId

func (x *LockRequest) GetId() uint32

func (*LockRequest) ProtoMessage

func (*LockRequest) ProtoMessage()

func (*LockRequest) ProtoReflect added in v0.8.4

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

func (*LockRequest) Reset

func (x *LockRequest) Reset()

func (*LockRequest) String

func (x *LockRequest) String() string

func (*LockRequest) Validate

func (m *LockRequest) Validate() error

Validate checks the field values on LockRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type LockRequestValidationError

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

LockRequestValidationError is the validation error returned by LockRequest.Validate if the designated constraints aren't met.

func (LockRequestValidationError) Cause

Cause function returns cause value.

func (LockRequestValidationError) Error

Error satisfies the builtin error interface

func (LockRequestValidationError) ErrorName

func (e LockRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LockRequestValidationError) Field

Field function returns field value.

func (LockRequestValidationError) Key

Key function returns key value.

func (LockRequestValidationError) Reason

Reason function returns reason value.

type LockResponse

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

Response message for rpc `Lock`.

func (*LockResponse) Descriptor deprecated

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

Deprecated: Use LockResponse.ProtoReflect.Descriptor instead.

func (*LockResponse) ProtoMessage

func (*LockResponse) ProtoMessage()

func (*LockResponse) ProtoReflect added in v0.8.4

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

func (*LockResponse) Reset

func (x *LockResponse) Reset()

func (*LockResponse) String

func (x *LockResponse) String() string

func (*LockResponse) Validate

func (m *LockResponse) Validate() error

Validate checks the field values on LockResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type LockResponseValidationError

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

LockResponseValidationError is the validation error returned by LockResponse.Validate if the designated constraints aren't met.

func (LockResponseValidationError) Cause

Cause function returns cause value.

func (LockResponseValidationError) Error

Error satisfies the builtin error interface

func (LockResponseValidationError) ErrorName

func (e LockResponseValidationError) ErrorName() string

ErrorName returns error name.

func (LockResponseValidationError) Field

Field function returns field value.

func (LockResponseValidationError) Key

Key function returns key value.

func (LockResponseValidationError) Reason

Reason function returns reason value.

type MruVGatesServiceClient

type MruVGatesServiceClient interface {
	// Create a gate or a moving objects objects group.
	CreateGate(ctx context.Context, in *CreateGateRequest, opts ...grpc.CallOption) (*CreateGateResponse, error)
	// Get a gate or a moving objects objects group.
	GetGate(ctx context.Context, in *GetGateRequest, opts ...grpc.CallOption) (*GetGateResponse, error)
	// Update a gate or a moving objects objects group.
	UpdateGate(ctx context.Context, in *UpdateGateRequest, opts ...grpc.CallOption) (*UpdateGateResponse, error)
	// Delete a gate or a moving objects objects group.
	DeleteGate(ctx context.Context, in *DeleteGateRequest, opts ...grpc.CallOption) (*DeleteGateResponse, error)
	// Lock a gate. Locked gate cannot be opened.
	Lock(ctx context.Context, in *LockRequest, opts ...grpc.CallOption) (*LockResponse, error)
	// Unload a gate, so it can be open.
	Unlock(ctx context.Context, in *UnlockRequest, opts ...grpc.CallOption) (*UnlockResponse, error)
	// Opens a gate.
	Open(ctx context.Context, in *OpenRequest, opts ...grpc.CallOption) (*OpenResponse, error)
	// Close a gate.
	Close(ctx context.Context, in *CloseRequest, opts ...grpc.CallOption) (*CloseResponse, error)
	// Find gate that is closest to a specific position.
	FindNearestGate(ctx context.Context, in *FindNearestGateRequest, opts ...grpc.CallOption) (*FindNearestGateResponse, error)
	//
	FetchAll(ctx context.Context, in *FetchAllGatesRequest, opts ...grpc.CallOption) (MruVGatesService_FetchAllClient, error)
}

MruVGatesServiceClient is the client API for MruVGatesService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type MruVGatesServiceServer

type MruVGatesServiceServer interface {
	// Create a gate or a moving objects objects group.
	CreateGate(context.Context, *CreateGateRequest) (*CreateGateResponse, error)
	// Get a gate or a moving objects objects group.
	GetGate(context.Context, *GetGateRequest) (*GetGateResponse, error)
	// Update a gate or a moving objects objects group.
	UpdateGate(context.Context, *UpdateGateRequest) (*UpdateGateResponse, error)
	// Delete a gate or a moving objects objects group.
	DeleteGate(context.Context, *DeleteGateRequest) (*DeleteGateResponse, error)
	// Lock a gate. Locked gate cannot be opened.
	Lock(context.Context, *LockRequest) (*LockResponse, error)
	// Unload a gate, so it can be open.
	Unlock(context.Context, *UnlockRequest) (*UnlockResponse, error)
	// Opens a gate.
	Open(context.Context, *OpenRequest) (*OpenResponse, error)
	// Close a gate.
	Close(context.Context, *CloseRequest) (*CloseResponse, error)
	// Find gate that is closest to a specific position.
	FindNearestGate(context.Context, *FindNearestGateRequest) (*FindNearestGateResponse, error)
	//
	FetchAll(*FetchAllGatesRequest, MruVGatesService_FetchAllServer) error
}

MruVGatesServiceServer is the server API for MruVGatesService service.

type MruVGatesService_FetchAllClient

type MruVGatesService_FetchAllClient interface {
	Recv() (*FetchAllGatesResponse, error)
	grpc.ClientStream
}

type MruVGatesService_FetchAllServer

type MruVGatesService_FetchAllServer interface {
	Send(*FetchAllGatesResponse) error
	grpc.ServerStream
}

type OpenRequest

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

Request message for rpc `Open`.

func (*OpenRequest) Descriptor deprecated

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

Deprecated: Use OpenRequest.ProtoReflect.Descriptor instead.

func (*OpenRequest) GetId

func (x *OpenRequest) GetId() uint32

func (*OpenRequest) ProtoMessage

func (*OpenRequest) ProtoMessage()

func (*OpenRequest) ProtoReflect added in v0.8.4

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

func (*OpenRequest) Reset

func (x *OpenRequest) Reset()

func (*OpenRequest) String

func (x *OpenRequest) String() string

func (*OpenRequest) Validate

func (m *OpenRequest) Validate() error

Validate checks the field values on OpenRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type OpenRequestValidationError

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

OpenRequestValidationError is the validation error returned by OpenRequest.Validate if the designated constraints aren't met.

func (OpenRequestValidationError) Cause

Cause function returns cause value.

func (OpenRequestValidationError) Error

Error satisfies the builtin error interface

func (OpenRequestValidationError) ErrorName

func (e OpenRequestValidationError) ErrorName() string

ErrorName returns error name.

func (OpenRequestValidationError) Field

Field function returns field value.

func (OpenRequestValidationError) Key

Key function returns key value.

func (OpenRequestValidationError) Reason

Reason function returns reason value.

type OpenResponse

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

Response message for rpc `Open`.

func (*OpenResponse) Descriptor deprecated

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

Deprecated: Use OpenResponse.ProtoReflect.Descriptor instead.

func (*OpenResponse) ProtoMessage

func (*OpenResponse) ProtoMessage()

func (*OpenResponse) ProtoReflect added in v0.8.4

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

func (*OpenResponse) Reset

func (x *OpenResponse) Reset()

func (*OpenResponse) String

func (x *OpenResponse) String() string

func (*OpenResponse) Validate

func (m *OpenResponse) Validate() error

Validate checks the field values on OpenResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type OpenResponseValidationError

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

OpenResponseValidationError is the validation error returned by OpenResponse.Validate if the designated constraints aren't met.

func (OpenResponseValidationError) Cause

Cause function returns cause value.

func (OpenResponseValidationError) Error

Error satisfies the builtin error interface

func (OpenResponseValidationError) ErrorName

func (e OpenResponseValidationError) ErrorName() string

ErrorName returns error name.

func (OpenResponseValidationError) Field

Field function returns field value.

func (OpenResponseValidationError) Key

Key function returns key value.

func (OpenResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedMruVGatesServiceServer

type UnimplementedMruVGatesServiceServer struct {
}

UnimplementedMruVGatesServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedMruVGatesServiceServer) Close

func (*UnimplementedMruVGatesServiceServer) CreateGate

func (*UnimplementedMruVGatesServiceServer) DeleteGate

func (*UnimplementedMruVGatesServiceServer) FetchAll

func (*UnimplementedMruVGatesServiceServer) FindNearestGate

func (*UnimplementedMruVGatesServiceServer) GetGate

func (*UnimplementedMruVGatesServiceServer) Lock

func (*UnimplementedMruVGatesServiceServer) Open

func (*UnimplementedMruVGatesServiceServer) Unlock

func (*UnimplementedMruVGatesServiceServer) UpdateGate

type UnlockRequest

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

Request message for rpc `Unlock`.

func (*UnlockRequest) Descriptor deprecated

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

Deprecated: Use UnlockRequest.ProtoReflect.Descriptor instead.

func (*UnlockRequest) GetId

func (x *UnlockRequest) GetId() uint32

func (*UnlockRequest) ProtoMessage

func (*UnlockRequest) ProtoMessage()

func (*UnlockRequest) ProtoReflect added in v0.8.4

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

func (*UnlockRequest) Reset

func (x *UnlockRequest) Reset()

func (*UnlockRequest) String

func (x *UnlockRequest) String() string

func (*UnlockRequest) Validate

func (m *UnlockRequest) Validate() error

Validate checks the field values on UnlockRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UnlockRequestValidationError

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

UnlockRequestValidationError is the validation error returned by UnlockRequest.Validate if the designated constraints aren't met.

func (UnlockRequestValidationError) Cause

Cause function returns cause value.

func (UnlockRequestValidationError) Error

Error satisfies the builtin error interface

func (UnlockRequestValidationError) ErrorName

func (e UnlockRequestValidationError) ErrorName() string

ErrorName returns error name.

func (UnlockRequestValidationError) Field

Field function returns field value.

func (UnlockRequestValidationError) Key

Key function returns key value.

func (UnlockRequestValidationError) Reason

Reason function returns reason value.

type UnlockResponse

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

Response message for rpc `Unlock`.

func (*UnlockResponse) Descriptor deprecated

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

Deprecated: Use UnlockResponse.ProtoReflect.Descriptor instead.

func (*UnlockResponse) ProtoMessage

func (*UnlockResponse) ProtoMessage()

func (*UnlockResponse) ProtoReflect added in v0.8.4

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

func (*UnlockResponse) Reset

func (x *UnlockResponse) Reset()

func (*UnlockResponse) String

func (x *UnlockResponse) String() string

func (*UnlockResponse) Validate

func (m *UnlockResponse) Validate() error

Validate checks the field values on UnlockResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UnlockResponseValidationError

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

UnlockResponseValidationError is the validation error returned by UnlockResponse.Validate if the designated constraints aren't met.

func (UnlockResponseValidationError) Cause

Cause function returns cause value.

func (UnlockResponseValidationError) Error

Error satisfies the builtin error interface

func (UnlockResponseValidationError) ErrorName

func (e UnlockResponseValidationError) ErrorName() string

ErrorName returns error name.

func (UnlockResponseValidationError) Field

Field function returns field value.

func (UnlockResponseValidationError) Key

Key function returns key value.

func (UnlockResponseValidationError) Reason

Reason function returns reason value.

type UpdateGateRequest

type UpdateGateRequest struct {
	Id                 uint32   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name               string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	SpotId             uint32   `protobuf:"varint,3,opt,name=spot_id,json=spotId,proto3" json:"spot_id,omitempty"`
	GateMovableObjects []uint32 `protobuf:"varint,4,rep,packed,name=gate_movable_objects,json=gateMovableObjects,proto3" json:"gate_movable_objects,omitempty"`
	// contains filtered or unexported fields
}

Request message for rpc `UpdateGate`.

func (*UpdateGateRequest) Descriptor deprecated

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

Deprecated: Use UpdateGateRequest.ProtoReflect.Descriptor instead.

func (*UpdateGateRequest) GetGateMovableObjects

func (x *UpdateGateRequest) GetGateMovableObjects() []uint32

func (*UpdateGateRequest) GetId

func (x *UpdateGateRequest) GetId() uint32

func (*UpdateGateRequest) GetName

func (x *UpdateGateRequest) GetName() string

func (*UpdateGateRequest) GetSpotId

func (x *UpdateGateRequest) GetSpotId() uint32

func (*UpdateGateRequest) ProtoMessage

func (*UpdateGateRequest) ProtoMessage()

func (*UpdateGateRequest) ProtoReflect added in v0.8.4

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

func (*UpdateGateRequest) Reset

func (x *UpdateGateRequest) Reset()

func (*UpdateGateRequest) String

func (x *UpdateGateRequest) String() string

func (*UpdateGateRequest) Validate

func (m *UpdateGateRequest) Validate() error

Validate checks the field values on UpdateGateRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UpdateGateRequestValidationError

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

UpdateGateRequestValidationError is the validation error returned by UpdateGateRequest.Validate if the designated constraints aren't met.

func (UpdateGateRequestValidationError) Cause

Cause function returns cause value.

func (UpdateGateRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateGateRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateGateRequestValidationError) Field

Field function returns field value.

func (UpdateGateRequestValidationError) Key

Key function returns key value.

func (UpdateGateRequestValidationError) Reason

Reason function returns reason value.

type UpdateGateResponse

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

Response message for rpc `UpdateGate`.

func (*UpdateGateResponse) Descriptor deprecated

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

Deprecated: Use UpdateGateResponse.ProtoReflect.Descriptor instead.

func (*UpdateGateResponse) ProtoMessage

func (*UpdateGateResponse) ProtoMessage()

func (*UpdateGateResponse) ProtoReflect added in v0.8.4

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

func (*UpdateGateResponse) Reset

func (x *UpdateGateResponse) Reset()

func (*UpdateGateResponse) String

func (x *UpdateGateResponse) String() string

func (*UpdateGateResponse) Validate

func (m *UpdateGateResponse) Validate() error

Validate checks the field values on UpdateGateResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UpdateGateResponseValidationError

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

UpdateGateResponseValidationError is the validation error returned by UpdateGateResponse.Validate if the designated constraints aren't met.

func (UpdateGateResponseValidationError) Cause

Cause function returns cause value.

func (UpdateGateResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateGateResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateGateResponseValidationError) Field

Field function returns field value.

func (UpdateGateResponseValidationError) Key

Key function returns key value.

func (UpdateGateResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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