Documentation ¶
Overview ¶
Package gates is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterMruVGatesServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMruVGatesServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MruVGatesServiceClient) error
- func RegisterMruVGatesServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMruVGatesServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MruVGatesServiceServer) error
- func RegisterMruVGatesServiceServer(s *grpc.Server, srv MruVGatesServiceServer)
- type CloseRequest
- func (*CloseRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CloseRequest) GetId() uint32
- func (*CloseRequest) ProtoMessage()
- func (x *CloseRequest) ProtoReflect() protoreflect.Message
- func (x *CloseRequest) Reset()
- func (x *CloseRequest) String() string
- func (m *CloseRequest) Validate() error
- type CloseRequestValidationError
- func (e CloseRequestValidationError) Cause() error
- func (e CloseRequestValidationError) Error() string
- func (e CloseRequestValidationError) ErrorName() string
- func (e CloseRequestValidationError) Field() string
- func (e CloseRequestValidationError) Key() bool
- func (e CloseRequestValidationError) Reason() string
- type CloseResponse
- type CloseResponseValidationError
- func (e CloseResponseValidationError) Cause() error
- func (e CloseResponseValidationError) Error() string
- func (e CloseResponseValidationError) ErrorName() string
- func (e CloseResponseValidationError) Field() string
- func (e CloseResponseValidationError) Key() bool
- func (e CloseResponseValidationError) Reason() string
- type CreateGateRequest
- func (*CreateGateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateGateRequest) GetGateObjects() []*objects.MovableObject
- func (x *CreateGateRequest) GetName() string
- func (x *CreateGateRequest) GetSpot() *spots.Spot
- func (*CreateGateRequest) ProtoMessage()
- func (x *CreateGateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateGateRequest) Reset()
- func (x *CreateGateRequest) String() string
- func (m *CreateGateRequest) Validate() error
- type CreateGateRequestValidationError
- func (e CreateGateRequestValidationError) Cause() error
- func (e CreateGateRequestValidationError) Error() string
- func (e CreateGateRequestValidationError) ErrorName() string
- func (e CreateGateRequestValidationError) Field() string
- func (e CreateGateRequestValidationError) Key() bool
- func (e CreateGateRequestValidationError) Reason() string
- type CreateGateResponse
- func (*CreateGateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateGateResponse) GetId() uint32
- func (*CreateGateResponse) ProtoMessage()
- func (x *CreateGateResponse) ProtoReflect() protoreflect.Message
- func (x *CreateGateResponse) Reset()
- func (x *CreateGateResponse) String() string
- func (m *CreateGateResponse) Validate() error
- type CreateGateResponseValidationError
- func (e CreateGateResponseValidationError) Cause() error
- func (e CreateGateResponseValidationError) Error() string
- func (e CreateGateResponseValidationError) ErrorName() string
- func (e CreateGateResponseValidationError) Field() string
- func (e CreateGateResponseValidationError) Key() bool
- func (e CreateGateResponseValidationError) Reason() string
- type DeleteGateRequest
- func (*DeleteGateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteGateRequest) GetId() uint32
- func (*DeleteGateRequest) ProtoMessage()
- func (x *DeleteGateRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteGateRequest) Reset()
- func (x *DeleteGateRequest) String() string
- func (m *DeleteGateRequest) Validate() error
- type DeleteGateRequestValidationError
- func (e DeleteGateRequestValidationError) Cause() error
- func (e DeleteGateRequestValidationError) Error() string
- func (e DeleteGateRequestValidationError) ErrorName() string
- func (e DeleteGateRequestValidationError) Field() string
- func (e DeleteGateRequestValidationError) Key() bool
- func (e DeleteGateRequestValidationError) Reason() string
- type DeleteGateResponse
- func (*DeleteGateResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteGateResponse) ProtoMessage()
- func (x *DeleteGateResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteGateResponse) Reset()
- func (x *DeleteGateResponse) String() string
- func (m *DeleteGateResponse) Validate() error
- type DeleteGateResponseValidationError
- func (e DeleteGateResponseValidationError) Cause() error
- func (e DeleteGateResponseValidationError) Error() string
- func (e DeleteGateResponseValidationError) ErrorName() string
- func (e DeleteGateResponseValidationError) Field() string
- func (e DeleteGateResponseValidationError) Key() bool
- func (e DeleteGateResponseValidationError) Reason() string
- type FetchAllGatesRequest
- func (*FetchAllGatesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FetchAllGatesRequest) GetChunkSize() uint32
- func (*FetchAllGatesRequest) ProtoMessage()
- func (x *FetchAllGatesRequest) ProtoReflect() protoreflect.Message
- func (x *FetchAllGatesRequest) Reset()
- func (x *FetchAllGatesRequest) String() string
- func (m *FetchAllGatesRequest) Validate() error
- type FetchAllGatesRequestValidationError
- func (e FetchAllGatesRequestValidationError) Cause() error
- func (e FetchAllGatesRequestValidationError) Error() string
- func (e FetchAllGatesRequestValidationError) ErrorName() string
- func (e FetchAllGatesRequestValidationError) Field() string
- func (e FetchAllGatesRequestValidationError) Key() bool
- func (e FetchAllGatesRequestValidationError) Reason() string
- type FetchAllGatesResponse
- func (*FetchAllGatesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FetchAllGatesResponse) GetGates() map[uint32]*Gate
- func (*FetchAllGatesResponse) ProtoMessage()
- func (x *FetchAllGatesResponse) ProtoReflect() protoreflect.Message
- func (x *FetchAllGatesResponse) Reset()
- func (x *FetchAllGatesResponse) String() string
- func (m *FetchAllGatesResponse) Validate() error
- type FetchAllGatesResponseValidationError
- func (e FetchAllGatesResponseValidationError) Cause() error
- func (e FetchAllGatesResponseValidationError) Error() string
- func (e FetchAllGatesResponseValidationError) ErrorName() string
- func (e FetchAllGatesResponseValidationError) Field() string
- func (e FetchAllGatesResponseValidationError) Key() bool
- func (e FetchAllGatesResponseValidationError) Reason() string
- type FindNearestGateRequest
- func (*FindNearestGateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FindNearestGateRequest) GetMaxDistance() float32
- func (x *FindNearestGateRequest) GetX() float32
- func (x *FindNearestGateRequest) GetY() float32
- func (x *FindNearestGateRequest) GetZ() float32
- func (*FindNearestGateRequest) ProtoMessage()
- func (x *FindNearestGateRequest) ProtoReflect() protoreflect.Message
- func (x *FindNearestGateRequest) Reset()
- func (x *FindNearestGateRequest) String() string
- func (m *FindNearestGateRequest) Validate() error
- type FindNearestGateRequestValidationError
- func (e FindNearestGateRequestValidationError) Cause() error
- func (e FindNearestGateRequestValidationError) Error() string
- func (e FindNearestGateRequestValidationError) ErrorName() string
- func (e FindNearestGateRequestValidationError) Field() string
- func (e FindNearestGateRequestValidationError) Key() bool
- func (e FindNearestGateRequestValidationError) Reason() string
- type FindNearestGateResponse
- func (*FindNearestGateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FindNearestGateResponse) GetDistance() float32
- func (x *FindNearestGateResponse) GetId() uint32
- func (*FindNearestGateResponse) ProtoMessage()
- func (x *FindNearestGateResponse) ProtoReflect() protoreflect.Message
- func (x *FindNearestGateResponse) Reset()
- func (x *FindNearestGateResponse) String() string
- func (m *FindNearestGateResponse) Validate() error
- type FindNearestGateResponseValidationError
- func (e FindNearestGateResponseValidationError) Cause() error
- func (e FindNearestGateResponseValidationError) Error() string
- func (e FindNearestGateResponseValidationError) ErrorName() string
- func (e FindNearestGateResponseValidationError) Field() string
- func (e FindNearestGateResponseValidationError) Key() bool
- func (e FindNearestGateResponseValidationError) Reason() string
- type Gate
- func (*Gate) Descriptor() ([]byte, []int)deprecated
- func (x *Gate) GetGateObjects() []*objects.MovableObject
- func (x *Gate) GetLocked() bool
- func (x *Gate) GetName() string
- func (x *Gate) GetOpened() bool
- func (x *Gate) GetSpot() *spots.Spot
- func (*Gate) ProtoMessage()
- func (x *Gate) ProtoReflect() protoreflect.Message
- func (x *Gate) Reset()
- func (x *Gate) String() string
- func (m *Gate) Validate() error
- type GateValidationError
- type GetGateRequest
- func (*GetGateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetGateRequest) GetId() uint32
- func (*GetGateRequest) ProtoMessage()
- func (x *GetGateRequest) ProtoReflect() protoreflect.Message
- func (x *GetGateRequest) Reset()
- func (x *GetGateRequest) String() string
- func (m *GetGateRequest) Validate() error
- type GetGateRequestValidationError
- func (e GetGateRequestValidationError) Cause() error
- func (e GetGateRequestValidationError) Error() string
- func (e GetGateRequestValidationError) ErrorName() string
- func (e GetGateRequestValidationError) Field() string
- func (e GetGateRequestValidationError) Key() bool
- func (e GetGateRequestValidationError) Reason() string
- type GetGateResponse
- func (*GetGateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetGateResponse) GetLocked() bool
- func (x *GetGateResponse) GetMovableObjects() []*objects.MovableObject
- func (x *GetGateResponse) GetName() string
- func (x *GetGateResponse) GetOpened() bool
- func (x *GetGateResponse) GetSpot() *spots.Spot
- func (*GetGateResponse) ProtoMessage()
- func (x *GetGateResponse) ProtoReflect() protoreflect.Message
- func (x *GetGateResponse) Reset()
- func (x *GetGateResponse) String() string
- func (m *GetGateResponse) Validate() error
- type GetGateResponseValidationError
- func (e GetGateResponseValidationError) Cause() error
- func (e GetGateResponseValidationError) Error() string
- func (e GetGateResponseValidationError) ErrorName() string
- func (e GetGateResponseValidationError) Field() string
- func (e GetGateResponseValidationError) Key() bool
- func (e GetGateResponseValidationError) Reason() string
- type LockRequest
- type LockRequestValidationError
- func (e LockRequestValidationError) Cause() error
- func (e LockRequestValidationError) Error() string
- func (e LockRequestValidationError) ErrorName() string
- func (e LockRequestValidationError) Field() string
- func (e LockRequestValidationError) Key() bool
- func (e LockRequestValidationError) Reason() string
- type LockResponse
- type LockResponseValidationError
- func (e LockResponseValidationError) Cause() error
- func (e LockResponseValidationError) Error() string
- func (e LockResponseValidationError) ErrorName() string
- func (e LockResponseValidationError) Field() string
- func (e LockResponseValidationError) Key() bool
- func (e LockResponseValidationError) Reason() string
- type MruVGatesServiceClient
- type MruVGatesServiceServer
- type MruVGatesService_FetchAllClient
- type MruVGatesService_FetchAllServer
- type OpenRequest
- type OpenRequestValidationError
- func (e OpenRequestValidationError) Cause() error
- func (e OpenRequestValidationError) Error() string
- func (e OpenRequestValidationError) ErrorName() string
- func (e OpenRequestValidationError) Field() string
- func (e OpenRequestValidationError) Key() bool
- func (e OpenRequestValidationError) Reason() string
- type OpenResponse
- type OpenResponseValidationError
- func (e OpenResponseValidationError) Cause() error
- func (e OpenResponseValidationError) Error() string
- func (e OpenResponseValidationError) ErrorName() string
- func (e OpenResponseValidationError) Field() string
- func (e OpenResponseValidationError) Key() bool
- func (e OpenResponseValidationError) Reason() string
- type UnimplementedMruVGatesServiceServer
- func (*UnimplementedMruVGatesServiceServer) Close(context.Context, *CloseRequest) (*CloseResponse, error)
- func (*UnimplementedMruVGatesServiceServer) CreateGate(context.Context, *CreateGateRequest) (*CreateGateResponse, error)
- func (*UnimplementedMruVGatesServiceServer) DeleteGate(context.Context, *DeleteGateRequest) (*DeleteGateResponse, error)
- func (*UnimplementedMruVGatesServiceServer) FetchAll(*FetchAllGatesRequest, MruVGatesService_FetchAllServer) error
- func (*UnimplementedMruVGatesServiceServer) FindNearestGate(context.Context, *FindNearestGateRequest) (*FindNearestGateResponse, error)
- func (*UnimplementedMruVGatesServiceServer) GetGate(context.Context, *GetGateRequest) (*GetGateResponse, error)
- func (*UnimplementedMruVGatesServiceServer) Lock(context.Context, *LockRequest) (*LockResponse, error)
- func (*UnimplementedMruVGatesServiceServer) Open(context.Context, *OpenRequest) (*OpenResponse, error)
- func (*UnimplementedMruVGatesServiceServer) Unlock(context.Context, *UnlockRequest) (*UnlockResponse, error)
- func (*UnimplementedMruVGatesServiceServer) UpdateGate(context.Context, *UpdateGateRequest) (*UpdateGateResponse, error)
- type UnlockRequest
- func (*UnlockRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnlockRequest) GetId() uint32
- func (*UnlockRequest) ProtoMessage()
- func (x *UnlockRequest) ProtoReflect() protoreflect.Message
- func (x *UnlockRequest) Reset()
- func (x *UnlockRequest) String() string
- func (m *UnlockRequest) Validate() error
- type UnlockRequestValidationError
- func (e UnlockRequestValidationError) Cause() error
- func (e UnlockRequestValidationError) Error() string
- func (e UnlockRequestValidationError) ErrorName() string
- func (e UnlockRequestValidationError) Field() string
- func (e UnlockRequestValidationError) Key() bool
- func (e UnlockRequestValidationError) Reason() string
- type UnlockResponse
- type UnlockResponseValidationError
- func (e UnlockResponseValidationError) Cause() error
- func (e UnlockResponseValidationError) Error() string
- func (e UnlockResponseValidationError) ErrorName() string
- func (e UnlockResponseValidationError) Field() string
- func (e UnlockResponseValidationError) Key() bool
- func (e UnlockResponseValidationError) Reason() string
- type UpdateGateRequest
- func (*UpdateGateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateGateRequest) GetGateMovableObjects() []uint32
- func (x *UpdateGateRequest) GetId() uint32
- func (x *UpdateGateRequest) GetName() string
- func (x *UpdateGateRequest) GetSpotId() uint32
- func (*UpdateGateRequest) ProtoMessage()
- func (x *UpdateGateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateGateRequest) Reset()
- func (x *UpdateGateRequest) String() string
- func (m *UpdateGateRequest) Validate() error
- type UpdateGateRequestValidationError
- func (e UpdateGateRequestValidationError) Cause() error
- func (e UpdateGateRequestValidationError) Error() string
- func (e UpdateGateRequestValidationError) ErrorName() string
- func (e UpdateGateRequestValidationError) Field() string
- func (e UpdateGateRequestValidationError) Key() bool
- func (e UpdateGateRequestValidationError) Reason() string
- type UpdateGateResponse
- func (*UpdateGateResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateGateResponse) ProtoMessage()
- func (x *UpdateGateResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateGateResponse) Reset()
- func (x *UpdateGateResponse) String() string
- func (m *UpdateGateResponse) Validate() error
- type UpdateGateResponseValidationError
- func (e UpdateGateResponseValidationError) Cause() error
- func (e UpdateGateResponseValidationError) Error() string
- func (e UpdateGateResponseValidationError) ErrorName() string
- func (e UpdateGateResponseValidationError) Field() string
- func (e UpdateGateResponseValidationError) Key() bool
- func (e UpdateGateResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
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 ¶
func (e CloseRequestValidationError) Cause() error
Cause function returns cause value.
func (CloseRequestValidationError) Error ¶
func (e CloseRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CloseRequestValidationError) ErrorName ¶
func (e CloseRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CloseRequestValidationError) Field ¶
func (e CloseRequestValidationError) Field() string
Field function returns field value.
func (CloseRequestValidationError) Key ¶
func (e CloseRequestValidationError) Key() bool
Key function returns key value.
func (CloseRequestValidationError) Reason ¶
func (e CloseRequestValidationError) Reason() string
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 ¶
func (e CloseResponseValidationError) Cause() error
Cause function returns cause value.
func (CloseResponseValidationError) Error ¶
func (e CloseResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CloseResponseValidationError) ErrorName ¶
func (e CloseResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CloseResponseValidationError) Field ¶
func (e CloseResponseValidationError) Field() string
Field function returns field value.
func (CloseResponseValidationError) Key ¶
func (e CloseResponseValidationError) Key() bool
Key function returns key value.
func (CloseResponseValidationError) Reason ¶
func (e CloseResponseValidationError) Reason() string
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 ¶
func (e CreateGateRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateGateRequestValidationError) Error ¶
func (e CreateGateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateGateRequestValidationError) ErrorName ¶
func (e CreateGateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateGateRequestValidationError) Field ¶
func (e CreateGateRequestValidationError) Field() string
Field function returns field value.
func (CreateGateRequestValidationError) Key ¶
func (e CreateGateRequestValidationError) Key() bool
Key function returns key value.
func (CreateGateRequestValidationError) Reason ¶
func (e CreateGateRequestValidationError) Reason() string
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 ¶
func (e CreateGateResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateGateResponseValidationError) Error ¶
func (e CreateGateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateGateResponseValidationError) ErrorName ¶
func (e CreateGateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateGateResponseValidationError) Field ¶
func (e CreateGateResponseValidationError) Field() string
Field function returns field value.
func (CreateGateResponseValidationError) Key ¶
func (e CreateGateResponseValidationError) Key() bool
Key function returns key value.
func (CreateGateResponseValidationError) Reason ¶
func (e CreateGateResponseValidationError) Reason() string
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 ¶
func (e DeleteGateRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteGateRequestValidationError) Error ¶
func (e DeleteGateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteGateRequestValidationError) ErrorName ¶
func (e DeleteGateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteGateRequestValidationError) Field ¶
func (e DeleteGateRequestValidationError) Field() string
Field function returns field value.
func (DeleteGateRequestValidationError) Key ¶
func (e DeleteGateRequestValidationError) Key() bool
Key function returns key value.
func (DeleteGateRequestValidationError) Reason ¶
func (e DeleteGateRequestValidationError) Reason() string
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 ¶
func (e DeleteGateResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteGateResponseValidationError) Error ¶
func (e DeleteGateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteGateResponseValidationError) ErrorName ¶
func (e DeleteGateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteGateResponseValidationError) Field ¶
func (e DeleteGateResponseValidationError) Field() string
Field function returns field value.
func (DeleteGateResponseValidationError) Key ¶
func (e DeleteGateResponseValidationError) Key() bool
Key function returns key value.
func (DeleteGateResponseValidationError) Reason ¶
func (e DeleteGateResponseValidationError) Reason() string
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 ¶
func (e FetchAllGatesRequestValidationError) Cause() error
Cause function returns cause value.
func (FetchAllGatesRequestValidationError) Error ¶
func (e FetchAllGatesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (FetchAllGatesRequestValidationError) ErrorName ¶
func (e FetchAllGatesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (FetchAllGatesRequestValidationError) Field ¶
func (e FetchAllGatesRequestValidationError) Field() string
Field function returns field value.
func (FetchAllGatesRequestValidationError) Key ¶
func (e FetchAllGatesRequestValidationError) Key() bool
Key function returns key value.
func (FetchAllGatesRequestValidationError) Reason ¶
func (e FetchAllGatesRequestValidationError) Reason() string
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 ¶
func (e FetchAllGatesResponseValidationError) Cause() error
Cause function returns cause value.
func (FetchAllGatesResponseValidationError) Error ¶
func (e FetchAllGatesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (FetchAllGatesResponseValidationError) ErrorName ¶
func (e FetchAllGatesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (FetchAllGatesResponseValidationError) Field ¶
func (e FetchAllGatesResponseValidationError) Field() string
Field function returns field value.
func (FetchAllGatesResponseValidationError) Key ¶
func (e FetchAllGatesResponseValidationError) Key() bool
Key function returns key value.
func (FetchAllGatesResponseValidationError) Reason ¶
func (e FetchAllGatesResponseValidationError) Reason() string
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 ¶
func (e FindNearestGateRequestValidationError) Cause() error
Cause function returns cause value.
func (FindNearestGateRequestValidationError) Error ¶
func (e FindNearestGateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (FindNearestGateRequestValidationError) ErrorName ¶
func (e FindNearestGateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (FindNearestGateRequestValidationError) Field ¶
func (e FindNearestGateRequestValidationError) Field() string
Field function returns field value.
func (FindNearestGateRequestValidationError) Key ¶
func (e FindNearestGateRequestValidationError) Key() bool
Key function returns key value.
func (FindNearestGateRequestValidationError) Reason ¶
func (e FindNearestGateRequestValidationError) Reason() string
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 ¶
func (e FindNearestGateResponseValidationError) Cause() error
Cause function returns cause value.
func (FindNearestGateResponseValidationError) Error ¶
func (e FindNearestGateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (FindNearestGateResponseValidationError) ErrorName ¶
func (e FindNearestGateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (FindNearestGateResponseValidationError) Field ¶
func (e FindNearestGateResponseValidationError) Field() string
Field function returns field value.
func (FindNearestGateResponseValidationError) Key ¶
func (e FindNearestGateResponseValidationError) Key() bool
Key function returns key value.
func (FindNearestGateResponseValidationError) Reason ¶
func (e FindNearestGateResponseValidationError) Reason() string
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) GetGateObjects ¶
func (x *Gate) GetGateObjects() []*objects.MovableObject
func (*Gate) ProtoMessage ¶
func (*Gate) ProtoMessage()
func (*Gate) ProtoReflect ¶ added in v0.8.4
func (x *Gate) ProtoReflect() protoreflect.Message
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 ¶
func (e GetGateRequestValidationError) Cause() error
Cause function returns cause value.
func (GetGateRequestValidationError) Error ¶
func (e GetGateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetGateRequestValidationError) ErrorName ¶
func (e GetGateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetGateRequestValidationError) Field ¶
func (e GetGateRequestValidationError) Field() string
Field function returns field value.
func (GetGateRequestValidationError) Key ¶
func (e GetGateRequestValidationError) Key() bool
Key function returns key value.
func (GetGateRequestValidationError) Reason ¶
func (e GetGateRequestValidationError) Reason() string
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 ¶
func (e GetGateResponseValidationError) Cause() error
Cause function returns cause value.
func (GetGateResponseValidationError) Error ¶
func (e GetGateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetGateResponseValidationError) ErrorName ¶
func (e GetGateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetGateResponseValidationError) Field ¶
func (e GetGateResponseValidationError) Field() string
Field function returns field value.
func (GetGateResponseValidationError) Key ¶
func (e GetGateResponseValidationError) Key() bool
Key function returns key value.
func (GetGateResponseValidationError) Reason ¶
func (e GetGateResponseValidationError) Reason() string
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 ¶
func (e LockRequestValidationError) Cause() error
Cause function returns cause value.
func (LockRequestValidationError) Error ¶
func (e LockRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LockRequestValidationError) ErrorName ¶
func (e LockRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LockRequestValidationError) Field ¶
func (e LockRequestValidationError) Field() string
Field function returns field value.
func (LockRequestValidationError) Key ¶
func (e LockRequestValidationError) Key() bool
Key function returns key value.
func (LockRequestValidationError) Reason ¶
func (e LockRequestValidationError) Reason() string
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 ¶
func (e LockResponseValidationError) Cause() error
Cause function returns cause value.
func (LockResponseValidationError) Error ¶
func (e LockResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LockResponseValidationError) ErrorName ¶
func (e LockResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LockResponseValidationError) Field ¶
func (e LockResponseValidationError) Field() string
Field function returns field value.
func (LockResponseValidationError) Key ¶
func (e LockResponseValidationError) Key() bool
Key function returns key value.
func (LockResponseValidationError) Reason ¶
func (e LockResponseValidationError) Reason() string
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.
func NewMruVGatesServiceClient ¶
func NewMruVGatesServiceClient(cc grpc.ClientConnInterface) MruVGatesServiceClient
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 ¶
func (e OpenRequestValidationError) Cause() error
Cause function returns cause value.
func (OpenRequestValidationError) Error ¶
func (e OpenRequestValidationError) Error() string
Error satisfies the builtin error interface
func (OpenRequestValidationError) ErrorName ¶
func (e OpenRequestValidationError) ErrorName() string
ErrorName returns error name.
func (OpenRequestValidationError) Field ¶
func (e OpenRequestValidationError) Field() string
Field function returns field value.
func (OpenRequestValidationError) Key ¶
func (e OpenRequestValidationError) Key() bool
Key function returns key value.
func (OpenRequestValidationError) Reason ¶
func (e OpenRequestValidationError) Reason() string
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 ¶
func (e OpenResponseValidationError) Cause() error
Cause function returns cause value.
func (OpenResponseValidationError) Error ¶
func (e OpenResponseValidationError) Error() string
Error satisfies the builtin error interface
func (OpenResponseValidationError) ErrorName ¶
func (e OpenResponseValidationError) ErrorName() string
ErrorName returns error name.
func (OpenResponseValidationError) Field ¶
func (e OpenResponseValidationError) Field() string
Field function returns field value.
func (OpenResponseValidationError) Key ¶
func (e OpenResponseValidationError) Key() bool
Key function returns key value.
func (OpenResponseValidationError) Reason ¶
func (e OpenResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedMruVGatesServiceServer ¶
type UnimplementedMruVGatesServiceServer struct { }
UnimplementedMruVGatesServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedMruVGatesServiceServer) Close ¶
func (*UnimplementedMruVGatesServiceServer) Close(context.Context, *CloseRequest) (*CloseResponse, error)
func (*UnimplementedMruVGatesServiceServer) CreateGate ¶
func (*UnimplementedMruVGatesServiceServer) CreateGate(context.Context, *CreateGateRequest) (*CreateGateResponse, error)
func (*UnimplementedMruVGatesServiceServer) DeleteGate ¶
func (*UnimplementedMruVGatesServiceServer) DeleteGate(context.Context, *DeleteGateRequest) (*DeleteGateResponse, error)
func (*UnimplementedMruVGatesServiceServer) FetchAll ¶
func (*UnimplementedMruVGatesServiceServer) FetchAll(*FetchAllGatesRequest, MruVGatesService_FetchAllServer) error
func (*UnimplementedMruVGatesServiceServer) FindNearestGate ¶
func (*UnimplementedMruVGatesServiceServer) FindNearestGate(context.Context, *FindNearestGateRequest) (*FindNearestGateResponse, error)
func (*UnimplementedMruVGatesServiceServer) GetGate ¶
func (*UnimplementedMruVGatesServiceServer) GetGate(context.Context, *GetGateRequest) (*GetGateResponse, error)
func (*UnimplementedMruVGatesServiceServer) Lock ¶
func (*UnimplementedMruVGatesServiceServer) Lock(context.Context, *LockRequest) (*LockResponse, error)
func (*UnimplementedMruVGatesServiceServer) Open ¶
func (*UnimplementedMruVGatesServiceServer) Open(context.Context, *OpenRequest) (*OpenResponse, error)
func (*UnimplementedMruVGatesServiceServer) Unlock ¶
func (*UnimplementedMruVGatesServiceServer) Unlock(context.Context, *UnlockRequest) (*UnlockResponse, error)
func (*UnimplementedMruVGatesServiceServer) UpdateGate ¶
func (*UnimplementedMruVGatesServiceServer) UpdateGate(context.Context, *UpdateGateRequest) (*UpdateGateResponse, error)
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 ¶
func (e UnlockRequestValidationError) Cause() error
Cause function returns cause value.
func (UnlockRequestValidationError) Error ¶
func (e UnlockRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UnlockRequestValidationError) ErrorName ¶
func (e UnlockRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UnlockRequestValidationError) Field ¶
func (e UnlockRequestValidationError) Field() string
Field function returns field value.
func (UnlockRequestValidationError) Key ¶
func (e UnlockRequestValidationError) Key() bool
Key function returns key value.
func (UnlockRequestValidationError) Reason ¶
func (e UnlockRequestValidationError) Reason() string
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 ¶
func (e UnlockResponseValidationError) Cause() error
Cause function returns cause value.
func (UnlockResponseValidationError) Error ¶
func (e UnlockResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UnlockResponseValidationError) ErrorName ¶
func (e UnlockResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UnlockResponseValidationError) Field ¶
func (e UnlockResponseValidationError) Field() string
Field function returns field value.
func (UnlockResponseValidationError) Key ¶
func (e UnlockResponseValidationError) Key() bool
Key function returns key value.
func (UnlockResponseValidationError) Reason ¶
func (e UnlockResponseValidationError) Reason() string
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 ¶
func (e UpdateGateRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateGateRequestValidationError) Error ¶
func (e UpdateGateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateGateRequestValidationError) ErrorName ¶
func (e UpdateGateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateGateRequestValidationError) Field ¶
func (e UpdateGateRequestValidationError) Field() string
Field function returns field value.
func (UpdateGateRequestValidationError) Key ¶
func (e UpdateGateRequestValidationError) Key() bool
Key function returns key value.
func (UpdateGateRequestValidationError) Reason ¶
func (e UpdateGateRequestValidationError) Reason() string
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 ¶
func (e UpdateGateResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateGateResponseValidationError) Error ¶
func (e UpdateGateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateGateResponseValidationError) ErrorName ¶
func (e UpdateGateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateGateResponseValidationError) Field ¶
func (e UpdateGateResponseValidationError) Field() string
Field function returns field value.
func (UpdateGateResponseValidationError) Key ¶
func (e UpdateGateResponseValidationError) Key() bool
Key function returns key value.
func (UpdateGateResponseValidationError) Reason ¶
func (e UpdateGateResponseValidationError) Reason() string
Reason function returns reason value.