entrances

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: 28 Imported by: 2

Documentation

Overview

Package entrances is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_entrances_entrances_proto protoreflect.FileDescriptor

Functions

func RegisterMruVEntrancesServiceHandler

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

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

func RegisterMruVEntrancesServiceHandlerClient

func RegisterMruVEntrancesServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MruVEntrancesServiceClient) error

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

func RegisterMruVEntrancesServiceHandlerFromEndpoint

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

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

func RegisterMruVEntrancesServiceHandlerServer

func RegisterMruVEntrancesServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MruVEntrancesServiceServer) error

RegisterMruVEntrancesServiceHandlerServer registers the http handlers for service MruVEntrancesService to "mux". UnaryRPC :call MruVEntrancesServiceServer 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 RegisterMruVEntrancesServiceHandlerFromEndpoint instead.

func RegisterMruVEntrancesServiceServer

func RegisterMruVEntrancesServiceServer(s *grpc.Server, srv MruVEntrancesServiceServer)

Types

type CreateEntranceRequest

type CreateEntranceRequest struct {
	Name string      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Out  *spots.Spot `protobuf:"bytes,2,opt,name=out,proto3" json:"out,omitempty"`
	In   *spots.Spot `protobuf:"bytes,3,opt,name=in,proto3" json:"in,omitempty"`
	// contains filtered or unexported fields
}

Request message for rpc `CreateEntrance`.

func (*CreateEntranceRequest) Descriptor deprecated

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

Deprecated: Use CreateEntranceRequest.ProtoReflect.Descriptor instead.

func (*CreateEntranceRequest) GetIn

func (x *CreateEntranceRequest) GetIn() *spots.Spot

func (*CreateEntranceRequest) GetName

func (x *CreateEntranceRequest) GetName() string

func (*CreateEntranceRequest) GetOut

func (x *CreateEntranceRequest) GetOut() *spots.Spot

func (*CreateEntranceRequest) ProtoMessage

func (*CreateEntranceRequest) ProtoMessage()

func (*CreateEntranceRequest) ProtoReflect added in v0.8.4

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

func (*CreateEntranceRequest) Reset

func (x *CreateEntranceRequest) Reset()

func (*CreateEntranceRequest) String

func (x *CreateEntranceRequest) String() string

func (*CreateEntranceRequest) Validate

func (m *CreateEntranceRequest) Validate() error

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

type CreateEntranceRequestValidationError

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

CreateEntranceRequestValidationError is the validation error returned by CreateEntranceRequest.Validate if the designated constraints aren't met.

func (CreateEntranceRequestValidationError) Cause

Cause function returns cause value.

func (CreateEntranceRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateEntranceRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateEntranceRequestValidationError) Field

Field function returns field value.

func (CreateEntranceRequestValidationError) Key

Key function returns key value.

func (CreateEntranceRequestValidationError) Reason

Reason function returns reason value.

type CreateEntranceResponse

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

Response message for rpc `CreateEntrance`.

func (*CreateEntranceResponse) Descriptor deprecated

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

Deprecated: Use CreateEntranceResponse.ProtoReflect.Descriptor instead.

func (*CreateEntranceResponse) GetId

func (x *CreateEntranceResponse) GetId() uint32

func (*CreateEntranceResponse) ProtoMessage

func (*CreateEntranceResponse) ProtoMessage()

func (*CreateEntranceResponse) ProtoReflect added in v0.8.4

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

func (*CreateEntranceResponse) Reset

func (x *CreateEntranceResponse) Reset()

func (*CreateEntranceResponse) String

func (x *CreateEntranceResponse) String() string

func (*CreateEntranceResponse) Validate

func (m *CreateEntranceResponse) Validate() error

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

type CreateEntranceResponseValidationError

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

CreateEntranceResponseValidationError is the validation error returned by CreateEntranceResponse.Validate if the designated constraints aren't met.

func (CreateEntranceResponseValidationError) Cause

Cause function returns cause value.

func (CreateEntranceResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateEntranceResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateEntranceResponseValidationError) Field

Field function returns field value.

func (CreateEntranceResponseValidationError) Key

Key function returns key value.

func (CreateEntranceResponseValidationError) Reason

Reason function returns reason value.

type DeleteEntranceRequest

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

Request message for rpc `DeleteEntrance`.

func (*DeleteEntranceRequest) Descriptor deprecated

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

Deprecated: Use DeleteEntranceRequest.ProtoReflect.Descriptor instead.

func (*DeleteEntranceRequest) GetId

func (x *DeleteEntranceRequest) GetId() uint32

func (*DeleteEntranceRequest) ProtoMessage

func (*DeleteEntranceRequest) ProtoMessage()

func (*DeleteEntranceRequest) ProtoReflect added in v0.8.4

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

func (*DeleteEntranceRequest) Reset

func (x *DeleteEntranceRequest) Reset()

func (*DeleteEntranceRequest) String

func (x *DeleteEntranceRequest) String() string

func (*DeleteEntranceRequest) Validate

func (m *DeleteEntranceRequest) Validate() error

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

type DeleteEntranceRequestValidationError

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

DeleteEntranceRequestValidationError is the validation error returned by DeleteEntranceRequest.Validate if the designated constraints aren't met.

func (DeleteEntranceRequestValidationError) Cause

Cause function returns cause value.

func (DeleteEntranceRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteEntranceRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteEntranceRequestValidationError) Field

Field function returns field value.

func (DeleteEntranceRequestValidationError) Key

Key function returns key value.

func (DeleteEntranceRequestValidationError) Reason

Reason function returns reason value.

type DeleteEntranceResponse

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

Response message for rpc `DeleteEntrance`.

func (*DeleteEntranceResponse) Descriptor deprecated

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

Deprecated: Use DeleteEntranceResponse.ProtoReflect.Descriptor instead.

func (*DeleteEntranceResponse) ProtoMessage

func (*DeleteEntranceResponse) ProtoMessage()

func (*DeleteEntranceResponse) ProtoReflect added in v0.8.4

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

func (*DeleteEntranceResponse) Reset

func (x *DeleteEntranceResponse) Reset()

func (*DeleteEntranceResponse) String

func (x *DeleteEntranceResponse) String() string

func (*DeleteEntranceResponse) Validate

func (m *DeleteEntranceResponse) Validate() error

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

type DeleteEntranceResponseValidationError

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

DeleteEntranceResponseValidationError is the validation error returned by DeleteEntranceResponse.Validate if the designated constraints aren't met.

func (DeleteEntranceResponseValidationError) Cause

Cause function returns cause value.

func (DeleteEntranceResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteEntranceResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteEntranceResponseValidationError) Field

Field function returns field value.

func (DeleteEntranceResponseValidationError) Key

Key function returns key value.

func (DeleteEntranceResponseValidationError) Reason

Reason function returns reason value.

type EnterRequest

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

Request message for rpc `Enter`.

func (*EnterRequest) Descriptor deprecated

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

Deprecated: Use EnterRequest.ProtoReflect.Descriptor instead.

func (*EnterRequest) GetId

func (x *EnterRequest) GetId() uint32

func (*EnterRequest) ProtoMessage

func (*EnterRequest) ProtoMessage()

func (*EnterRequest) ProtoReflect added in v0.8.4

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

func (*EnterRequest) Reset

func (x *EnterRequest) Reset()

func (*EnterRequest) String

func (x *EnterRequest) String() string

func (*EnterRequest) Validate

func (m *EnterRequest) Validate() error

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

type EnterRequestValidationError

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

EnterRequestValidationError is the validation error returned by EnterRequest.Validate if the designated constraints aren't met.

func (EnterRequestValidationError) Cause

Cause function returns cause value.

func (EnterRequestValidationError) Error

Error satisfies the builtin error interface

func (EnterRequestValidationError) ErrorName

func (e EnterRequestValidationError) ErrorName() string

ErrorName returns error name.

func (EnterRequestValidationError) Field

Field function returns field value.

func (EnterRequestValidationError) Key

Key function returns key value.

func (EnterRequestValidationError) Reason

Reason function returns reason value.

type EnterResponse

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

Response message for rpc `Enter`.

func (*EnterResponse) Descriptor deprecated

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

Deprecated: Use EnterResponse.ProtoReflect.Descriptor instead.

func (*EnterResponse) ProtoMessage

func (*EnterResponse) ProtoMessage()

func (*EnterResponse) ProtoReflect added in v0.8.4

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

func (*EnterResponse) Reset

func (x *EnterResponse) Reset()

func (*EnterResponse) String

func (x *EnterResponse) String() string

func (*EnterResponse) Validate

func (m *EnterResponse) Validate() error

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

type EnterResponseValidationError

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

EnterResponseValidationError is the validation error returned by EnterResponse.Validate if the designated constraints aren't met.

func (EnterResponseValidationError) Cause

Cause function returns cause value.

func (EnterResponseValidationError) Error

Error satisfies the builtin error interface

func (EnterResponseValidationError) ErrorName

func (e EnterResponseValidationError) ErrorName() string

ErrorName returns error name.

func (EnterResponseValidationError) Field

Field function returns field value.

func (EnterResponseValidationError) Key

Key function returns key value.

func (EnterResponseValidationError) Reason

Reason function returns reason value.

type Entrance

type Entrance struct {
	Name string      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Out  *spots.Spot `protobuf:"bytes,2,opt,name=out,proto3" json:"out,omitempty"`
	In   *spots.Spot `protobuf:"bytes,3,opt,name=in,proto3" json:"in,omitempty"`
	// contains filtered or unexported fields
}

func (*Entrance) Descriptor deprecated

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

Deprecated: Use Entrance.ProtoReflect.Descriptor instead.

func (*Entrance) GetIn

func (x *Entrance) GetIn() *spots.Spot

func (*Entrance) GetName

func (x *Entrance) GetName() string

func (*Entrance) GetOut

func (x *Entrance) GetOut() *spots.Spot

func (*Entrance) ProtoMessage

func (*Entrance) ProtoMessage()

func (*Entrance) ProtoReflect added in v0.8.4

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

func (*Entrance) Reset

func (x *Entrance) Reset()

func (*Entrance) String

func (x *Entrance) String() string

func (*Entrance) Validate

func (m *Entrance) Validate() error

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

type EntranceValidationError

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

EntranceValidationError is the validation error returned by Entrance.Validate if the designated constraints aren't met.

func (EntranceValidationError) Cause

func (e EntranceValidationError) Cause() error

Cause function returns cause value.

func (EntranceValidationError) Error

func (e EntranceValidationError) Error() string

Error satisfies the builtin error interface

func (EntranceValidationError) ErrorName

func (e EntranceValidationError) ErrorName() string

ErrorName returns error name.

func (EntranceValidationError) Field

func (e EntranceValidationError) Field() string

Field function returns field value.

func (EntranceValidationError) Key

func (e EntranceValidationError) Key() bool

Key function returns key value.

func (EntranceValidationError) Reason

func (e EntranceValidationError) Reason() string

Reason function returns reason value.

type ExitRequest

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

Request message for rpc `Exit`.

func (*ExitRequest) Descriptor deprecated

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

Deprecated: Use ExitRequest.ProtoReflect.Descriptor instead.

func (*ExitRequest) GetId

func (x *ExitRequest) GetId() uint32

func (*ExitRequest) ProtoMessage

func (*ExitRequest) ProtoMessage()

func (*ExitRequest) ProtoReflect added in v0.8.4

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

func (*ExitRequest) Reset

func (x *ExitRequest) Reset()

func (*ExitRequest) String

func (x *ExitRequest) String() string

func (*ExitRequest) Validate

func (m *ExitRequest) Validate() error

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

type ExitRequestValidationError

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

ExitRequestValidationError is the validation error returned by ExitRequest.Validate if the designated constraints aren't met.

func (ExitRequestValidationError) Cause

Cause function returns cause value.

func (ExitRequestValidationError) Error

Error satisfies the builtin error interface

func (ExitRequestValidationError) ErrorName

func (e ExitRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ExitRequestValidationError) Field

Field function returns field value.

func (ExitRequestValidationError) Key

Key function returns key value.

func (ExitRequestValidationError) Reason

Reason function returns reason value.

type ExitResponse

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

Response message for rpc `Exit`.

func (*ExitResponse) Descriptor deprecated

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

Deprecated: Use ExitResponse.ProtoReflect.Descriptor instead.

func (*ExitResponse) ProtoMessage

func (*ExitResponse) ProtoMessage()

func (*ExitResponse) ProtoReflect added in v0.8.4

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

func (*ExitResponse) Reset

func (x *ExitResponse) Reset()

func (*ExitResponse) String

func (x *ExitResponse) String() string

func (*ExitResponse) Validate

func (m *ExitResponse) Validate() error

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

type ExitResponseValidationError

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

ExitResponseValidationError is the validation error returned by ExitResponse.Validate if the designated constraints aren't met.

func (ExitResponseValidationError) Cause

Cause function returns cause value.

func (ExitResponseValidationError) Error

Error satisfies the builtin error interface

func (ExitResponseValidationError) ErrorName

func (e ExitResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ExitResponseValidationError) Field

Field function returns field value.

func (ExitResponseValidationError) Key

Key function returns key value.

func (ExitResponseValidationError) Reason

Reason function returns reason value.

type FetchAllEntrancesRequest

type FetchAllEntrancesRequest 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 `FetchAllEntrances`.

func (*FetchAllEntrancesRequest) Descriptor deprecated

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

Deprecated: Use FetchAllEntrancesRequest.ProtoReflect.Descriptor instead.

func (*FetchAllEntrancesRequest) GetChunkSize

func (x *FetchAllEntrancesRequest) GetChunkSize() uint32

func (*FetchAllEntrancesRequest) ProtoMessage

func (*FetchAllEntrancesRequest) ProtoMessage()

func (*FetchAllEntrancesRequest) ProtoReflect added in v0.8.4

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

func (*FetchAllEntrancesRequest) Reset

func (x *FetchAllEntrancesRequest) Reset()

func (*FetchAllEntrancesRequest) String

func (x *FetchAllEntrancesRequest) String() string

func (*FetchAllEntrancesRequest) Validate

func (m *FetchAllEntrancesRequest) Validate() error

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

type FetchAllEntrancesRequestValidationError

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

FetchAllEntrancesRequestValidationError is the validation error returned by FetchAllEntrancesRequest.Validate if the designated constraints aren't met.

func (FetchAllEntrancesRequestValidationError) Cause

Cause function returns cause value.

func (FetchAllEntrancesRequestValidationError) Error

Error satisfies the builtin error interface

func (FetchAllEntrancesRequestValidationError) ErrorName

ErrorName returns error name.

func (FetchAllEntrancesRequestValidationError) Field

Field function returns field value.

func (FetchAllEntrancesRequestValidationError) Key

Key function returns key value.

func (FetchAllEntrancesRequestValidationError) Reason

Reason function returns reason value.

type FetchAllEntrancesResponse

type FetchAllEntrancesResponse struct {
	Entrances map[uint32]*Entrance `` /* 160-byte string literal not displayed */
	// contains filtered or unexported fields
}

Response message for rpc `FetchAllEntrances`.

func (*FetchAllEntrancesResponse) Descriptor deprecated

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

Deprecated: Use FetchAllEntrancesResponse.ProtoReflect.Descriptor instead.

func (*FetchAllEntrancesResponse) GetEntrances

func (x *FetchAllEntrancesResponse) GetEntrances() map[uint32]*Entrance

func (*FetchAllEntrancesResponse) ProtoMessage

func (*FetchAllEntrancesResponse) ProtoMessage()

func (*FetchAllEntrancesResponse) ProtoReflect added in v0.8.4

func (*FetchAllEntrancesResponse) Reset

func (x *FetchAllEntrancesResponse) Reset()

func (*FetchAllEntrancesResponse) String

func (x *FetchAllEntrancesResponse) String() string

func (*FetchAllEntrancesResponse) Validate

func (m *FetchAllEntrancesResponse) Validate() error

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

type FetchAllEntrancesResponseValidationError

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

FetchAllEntrancesResponseValidationError is the validation error returned by FetchAllEntrancesResponse.Validate if the designated constraints aren't met.

func (FetchAllEntrancesResponseValidationError) Cause

Cause function returns cause value.

func (FetchAllEntrancesResponseValidationError) Error

Error satisfies the builtin error interface

func (FetchAllEntrancesResponseValidationError) ErrorName

ErrorName returns error name.

func (FetchAllEntrancesResponseValidationError) Field

Field function returns field value.

func (FetchAllEntrancesResponseValidationError) Key

Key function returns key value.

func (FetchAllEntrancesResponseValidationError) Reason

Reason function returns reason value.

type FindNearestEntranceRequest

type FindNearestEntranceRequest 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 `FindNearestEntrance`.

func (*FindNearestEntranceRequest) Descriptor deprecated

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

Deprecated: Use FindNearestEntranceRequest.ProtoReflect.Descriptor instead.

func (*FindNearestEntranceRequest) GetMaxDistance

func (x *FindNearestEntranceRequest) GetMaxDistance() float32

func (*FindNearestEntranceRequest) GetX

func (*FindNearestEntranceRequest) GetY

func (*FindNearestEntranceRequest) GetZ

func (*FindNearestEntranceRequest) ProtoMessage

func (*FindNearestEntranceRequest) ProtoMessage()

func (*FindNearestEntranceRequest) ProtoReflect added in v0.8.4

func (*FindNearestEntranceRequest) Reset

func (x *FindNearestEntranceRequest) Reset()

func (*FindNearestEntranceRequest) String

func (x *FindNearestEntranceRequest) String() string

func (*FindNearestEntranceRequest) Validate

func (m *FindNearestEntranceRequest) Validate() error

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

type FindNearestEntranceRequestValidationError

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

FindNearestEntranceRequestValidationError is the validation error returned by FindNearestEntranceRequest.Validate if the designated constraints aren't met.

func (FindNearestEntranceRequestValidationError) Cause

Cause function returns cause value.

func (FindNearestEntranceRequestValidationError) Error

Error satisfies the builtin error interface

func (FindNearestEntranceRequestValidationError) ErrorName

ErrorName returns error name.

func (FindNearestEntranceRequestValidationError) Field

Field function returns field value.

func (FindNearestEntranceRequestValidationError) Key

Key function returns key value.

func (FindNearestEntranceRequestValidationError) Reason

Reason function returns reason value.

type FindNearestEntranceResponse

type FindNearestEntranceResponse 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"`
	// Is found entrance position is in spot (out spot otherwise)
	Inside bool `protobuf:"varint,3,opt,name=inside,proto3" json:"inside,omitempty"`
	// contains filtered or unexported fields
}

Response message for rpc `FindNearestEntrance`.

func (*FindNearestEntranceResponse) Descriptor deprecated

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

Deprecated: Use FindNearestEntranceResponse.ProtoReflect.Descriptor instead.

func (*FindNearestEntranceResponse) GetDistance

func (x *FindNearestEntranceResponse) GetDistance() float32

func (*FindNearestEntranceResponse) GetId

func (*FindNearestEntranceResponse) GetInside

func (x *FindNearestEntranceResponse) GetInside() bool

func (*FindNearestEntranceResponse) ProtoMessage

func (*FindNearestEntranceResponse) ProtoMessage()

func (*FindNearestEntranceResponse) ProtoReflect added in v0.8.4

func (*FindNearestEntranceResponse) Reset

func (x *FindNearestEntranceResponse) Reset()

func (*FindNearestEntranceResponse) String

func (x *FindNearestEntranceResponse) String() string

func (*FindNearestEntranceResponse) Validate

func (m *FindNearestEntranceResponse) Validate() error

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

type FindNearestEntranceResponseValidationError

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

FindNearestEntranceResponseValidationError is the validation error returned by FindNearestEntranceResponse.Validate if the designated constraints aren't met.

func (FindNearestEntranceResponseValidationError) Cause

Cause function returns cause value.

func (FindNearestEntranceResponseValidationError) Error

Error satisfies the builtin error interface

func (FindNearestEntranceResponseValidationError) ErrorName

ErrorName returns error name.

func (FindNearestEntranceResponseValidationError) Field

Field function returns field value.

func (FindNearestEntranceResponseValidationError) Key

Key function returns key value.

func (FindNearestEntranceResponseValidationError) Reason

Reason function returns reason value.

type GetEntranceRequest

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

Request message for rpc `GetEntrance`.

func (*GetEntranceRequest) Descriptor deprecated

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

Deprecated: Use GetEntranceRequest.ProtoReflect.Descriptor instead.

func (*GetEntranceRequest) GetId

func (x *GetEntranceRequest) GetId() uint32

func (*GetEntranceRequest) ProtoMessage

func (*GetEntranceRequest) ProtoMessage()

func (*GetEntranceRequest) ProtoReflect added in v0.8.4

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

func (*GetEntranceRequest) Reset

func (x *GetEntranceRequest) Reset()

func (*GetEntranceRequest) String

func (x *GetEntranceRequest) String() string

func (*GetEntranceRequest) Validate

func (m *GetEntranceRequest) Validate() error

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

type GetEntranceRequestValidationError

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

GetEntranceRequestValidationError is the validation error returned by GetEntranceRequest.Validate if the designated constraints aren't met.

func (GetEntranceRequestValidationError) Cause

Cause function returns cause value.

func (GetEntranceRequestValidationError) Error

Error satisfies the builtin error interface

func (GetEntranceRequestValidationError) ErrorName

ErrorName returns error name.

func (GetEntranceRequestValidationError) Field

Field function returns field value.

func (GetEntranceRequestValidationError) Key

Key function returns key value.

func (GetEntranceRequestValidationError) Reason

Reason function returns reason value.

type GetEntranceResponse

type GetEntranceResponse struct {
	Name    string      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	InSpot  *spots.Spot `protobuf:"bytes,2,opt,name=in_spot,json=inSpot,proto3" json:"in_spot,omitempty"`
	OutSpot *spots.Spot `protobuf:"bytes,3,opt,name=out_spot,json=outSpot,proto3" json:"out_spot,omitempty"`
	// contains filtered or unexported fields
}

Response message for rpc `GetEntrance`.

func (*GetEntranceResponse) Descriptor deprecated

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

Deprecated: Use GetEntranceResponse.ProtoReflect.Descriptor instead.

func (*GetEntranceResponse) GetInSpot

func (x *GetEntranceResponse) GetInSpot() *spots.Spot

func (*GetEntranceResponse) GetName

func (x *GetEntranceResponse) GetName() string

func (*GetEntranceResponse) GetOutSpot

func (x *GetEntranceResponse) GetOutSpot() *spots.Spot

func (*GetEntranceResponse) ProtoMessage

func (*GetEntranceResponse) ProtoMessage()

func (*GetEntranceResponse) ProtoReflect added in v0.8.4

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

func (*GetEntranceResponse) Reset

func (x *GetEntranceResponse) Reset()

func (*GetEntranceResponse) String

func (x *GetEntranceResponse) String() string

func (*GetEntranceResponse) Validate

func (m *GetEntranceResponse) Validate() error

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

type GetEntranceResponseValidationError

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

GetEntranceResponseValidationError is the validation error returned by GetEntranceResponse.Validate if the designated constraints aren't met.

func (GetEntranceResponseValidationError) Cause

Cause function returns cause value.

func (GetEntranceResponseValidationError) Error

Error satisfies the builtin error interface

func (GetEntranceResponseValidationError) ErrorName

ErrorName returns error name.

func (GetEntranceResponseValidationError) Field

Field function returns field value.

func (GetEntranceResponseValidationError) Key

Key function returns key value.

func (GetEntranceResponseValidationError) 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 MruVEntrancesServiceClient

type MruVEntrancesServiceClient interface {
	// Create an entrance to building or teleport to location.
	CreateEntrance(ctx context.Context, in *CreateEntranceRequest, opts ...grpc.CallOption) (*CreateEntranceResponse, error)
	// Get an entrance to building or a teleport to location.
	GetEntrance(ctx context.Context, in *GetEntranceRequest, opts ...grpc.CallOption) (*GetEntranceResponse, error)
	// Update an entrance to building or a teleport to location.
	UpdateEntrance(ctx context.Context, in *UpdateEntranceRequest, opts ...grpc.CallOption) (*UpdateEntranceResponse, error)
	// Delete an entrance to building or a teleport to location.
	DeleteEntrance(ctx context.Context, in *DeleteEntranceRequest, opts ...grpc.CallOption) (*DeleteEntranceResponse, error)
	// Lock entrance.
	Lock(ctx context.Context, in *LockRequest, opts ...grpc.CallOption) (*LockResponse, error)
	// Unload entrance.
	Unlock(ctx context.Context, in *UnlockRequest, opts ...grpc.CallOption) (*UnlockResponse, error)
	// Find gate that is closest to a specific position.
	FindNearestEntrance(ctx context.Context, in *FindNearestEntranceRequest, opts ...grpc.CallOption) (*FindNearestEntranceResponse, error)
	// Enter an entrance (player teleport from in spot position to out spot position).
	Enter(ctx context.Context, in *EnterRequest, opts ...grpc.CallOption) (*EnterResponse, error)
	// Exit from entrance (player teleport from out spot position to in spot position).
	Exit(ctx context.Context, in *ExitRequest, opts ...grpc.CallOption) (*ExitResponse, error)
	//
	FetchAll(ctx context.Context, in *FetchAllEntrancesRequest, opts ...grpc.CallOption) (MruVEntrancesService_FetchAllClient, error)
}

MruVEntrancesServiceClient is the client API for MruVEntrancesService service.

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

type MruVEntrancesServiceServer

type MruVEntrancesServiceServer interface {
	// Create an entrance to building or teleport to location.
	CreateEntrance(context.Context, *CreateEntranceRequest) (*CreateEntranceResponse, error)
	// Get an entrance to building or a teleport to location.
	GetEntrance(context.Context, *GetEntranceRequest) (*GetEntranceResponse, error)
	// Update an entrance to building or a teleport to location.
	UpdateEntrance(context.Context, *UpdateEntranceRequest) (*UpdateEntranceResponse, error)
	// Delete an entrance to building or a teleport to location.
	DeleteEntrance(context.Context, *DeleteEntranceRequest) (*DeleteEntranceResponse, error)
	// Lock entrance.
	Lock(context.Context, *LockRequest) (*LockResponse, error)
	// Unload entrance.
	Unlock(context.Context, *UnlockRequest) (*UnlockResponse, error)
	// Find gate that is closest to a specific position.
	FindNearestEntrance(context.Context, *FindNearestEntranceRequest) (*FindNearestEntranceResponse, error)
	// Enter an entrance (player teleport from in spot position to out spot position).
	Enter(context.Context, *EnterRequest) (*EnterResponse, error)
	// Exit from entrance (player teleport from out spot position to in spot position).
	Exit(context.Context, *ExitRequest) (*ExitResponse, error)
	//
	FetchAll(*FetchAllEntrancesRequest, MruVEntrancesService_FetchAllServer) error
}

MruVEntrancesServiceServer is the server API for MruVEntrancesService service.

type MruVEntrancesService_FetchAllClient

type MruVEntrancesService_FetchAllClient interface {
	Recv() (*FetchAllEntrancesResponse, error)
	grpc.ClientStream
}

type MruVEntrancesService_FetchAllServer

type MruVEntrancesService_FetchAllServer interface {
	Send(*FetchAllEntrancesResponse) error
	grpc.ServerStream
}

type UnimplementedMruVEntrancesServiceServer

type UnimplementedMruVEntrancesServiceServer struct {
}

UnimplementedMruVEntrancesServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedMruVEntrancesServiceServer) CreateEntrance

func (*UnimplementedMruVEntrancesServiceServer) DeleteEntrance

func (*UnimplementedMruVEntrancesServiceServer) Enter

func (*UnimplementedMruVEntrancesServiceServer) Exit

func (*UnimplementedMruVEntrancesServiceServer) FindNearestEntrance

func (*UnimplementedMruVEntrancesServiceServer) GetEntrance

func (*UnimplementedMruVEntrancesServiceServer) Lock

func (*UnimplementedMruVEntrancesServiceServer) Unlock

func (*UnimplementedMruVEntrancesServiceServer) UpdateEntrance

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 UpdateEntranceRequest

type UpdateEntranceRequest struct {
	Id        uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	InSpotId  uint32 `protobuf:"varint,2,opt,name=in_spot_id,json=inSpotId,proto3" json:"in_spot_id,omitempty"`
	OutSpotId uint32 `protobuf:"varint,3,opt,name=out_spot_id,json=outSpotId,proto3" json:"out_spot_id,omitempty"`
	// contains filtered or unexported fields
}

Request message for rpc `UpdateEntrance`.

func (*UpdateEntranceRequest) Descriptor deprecated

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

Deprecated: Use UpdateEntranceRequest.ProtoReflect.Descriptor instead.

func (*UpdateEntranceRequest) GetId

func (x *UpdateEntranceRequest) GetId() uint32

func (*UpdateEntranceRequest) GetInSpotId

func (x *UpdateEntranceRequest) GetInSpotId() uint32

func (*UpdateEntranceRequest) GetOutSpotId

func (x *UpdateEntranceRequest) GetOutSpotId() uint32

func (*UpdateEntranceRequest) ProtoMessage

func (*UpdateEntranceRequest) ProtoMessage()

func (*UpdateEntranceRequest) ProtoReflect added in v0.8.4

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

func (*UpdateEntranceRequest) Reset

func (x *UpdateEntranceRequest) Reset()

func (*UpdateEntranceRequest) String

func (x *UpdateEntranceRequest) String() string

func (*UpdateEntranceRequest) Validate

func (m *UpdateEntranceRequest) Validate() error

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

type UpdateEntranceRequestValidationError

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

UpdateEntranceRequestValidationError is the validation error returned by UpdateEntranceRequest.Validate if the designated constraints aren't met.

func (UpdateEntranceRequestValidationError) Cause

Cause function returns cause value.

func (UpdateEntranceRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateEntranceRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateEntranceRequestValidationError) Field

Field function returns field value.

func (UpdateEntranceRequestValidationError) Key

Key function returns key value.

func (UpdateEntranceRequestValidationError) Reason

Reason function returns reason value.

type UpdateEntranceResponse

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

Response message for rpc `UpdateEntrance`.

func (*UpdateEntranceResponse) Descriptor deprecated

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

Deprecated: Use UpdateEntranceResponse.ProtoReflect.Descriptor instead.

func (*UpdateEntranceResponse) ProtoMessage

func (*UpdateEntranceResponse) ProtoMessage()

func (*UpdateEntranceResponse) ProtoReflect added in v0.8.4

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

func (*UpdateEntranceResponse) Reset

func (x *UpdateEntranceResponse) Reset()

func (*UpdateEntranceResponse) String

func (x *UpdateEntranceResponse) String() string

func (*UpdateEntranceResponse) Validate

func (m *UpdateEntranceResponse) Validate() error

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

type UpdateEntranceResponseValidationError

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

UpdateEntranceResponseValidationError is the validation error returned by UpdateEntranceResponse.Validate if the designated constraints aren't met.

func (UpdateEntranceResponseValidationError) Cause

Cause function returns cause value.

func (UpdateEntranceResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateEntranceResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateEntranceResponseValidationError) Field

Field function returns field value.

func (UpdateEntranceResponseValidationError) Key

Key function returns key value.

func (UpdateEntranceResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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