Documentation ¶
Overview ¶
Package spots is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterMruVSpotsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMruVSpotsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MruVSpotsServiceClient) error
- func RegisterMruVSpotsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMruVSpotsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MruVSpotsServiceServer) error
- func RegisterMruVSpotsServiceServer(s *grpc.Server, srv MruVSpotsServiceServer)
- type CreateSpotRequest
- func (*CreateSpotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSpotRequest) GetSpot() *Spot
- func (*CreateSpotRequest) ProtoMessage()
- func (x *CreateSpotRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSpotRequest) Reset()
- func (x *CreateSpotRequest) String() string
- func (m *CreateSpotRequest) Validate() error
- type CreateSpotRequestValidationError
- func (e CreateSpotRequestValidationError) Cause() error
- func (e CreateSpotRequestValidationError) Error() string
- func (e CreateSpotRequestValidationError) ErrorName() string
- func (e CreateSpotRequestValidationError) Field() string
- func (e CreateSpotRequestValidationError) Key() bool
- func (e CreateSpotRequestValidationError) Reason() string
- type CreateSpotResponse
- func (*CreateSpotResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSpotResponse) GetId() uint32
- func (*CreateSpotResponse) ProtoMessage()
- func (x *CreateSpotResponse) ProtoReflect() protoreflect.Message
- func (x *CreateSpotResponse) Reset()
- func (x *CreateSpotResponse) String() string
- func (m *CreateSpotResponse) Validate() error
- type CreateSpotResponseValidationError
- func (e CreateSpotResponseValidationError) Cause() error
- func (e CreateSpotResponseValidationError) Error() string
- func (e CreateSpotResponseValidationError) ErrorName() string
- func (e CreateSpotResponseValidationError) Field() string
- func (e CreateSpotResponseValidationError) Key() bool
- func (e CreateSpotResponseValidationError) Reason() string
- type DeleteSpotRequest
- func (*DeleteSpotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteSpotRequest) GetId() uint32
- func (*DeleteSpotRequest) ProtoMessage()
- func (x *DeleteSpotRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteSpotRequest) Reset()
- func (x *DeleteSpotRequest) String() string
- func (m *DeleteSpotRequest) Validate() error
- type DeleteSpotRequestValidationError
- func (e DeleteSpotRequestValidationError) Cause() error
- func (e DeleteSpotRequestValidationError) Error() string
- func (e DeleteSpotRequestValidationError) ErrorName() string
- func (e DeleteSpotRequestValidationError) Field() string
- func (e DeleteSpotRequestValidationError) Key() bool
- func (e DeleteSpotRequestValidationError) Reason() string
- type DeleteSpotResponse
- func (*DeleteSpotResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteSpotResponse) ProtoMessage()
- func (x *DeleteSpotResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteSpotResponse) Reset()
- func (x *DeleteSpotResponse) String() string
- func (m *DeleteSpotResponse) Validate() error
- type DeleteSpotResponseValidationError
- func (e DeleteSpotResponseValidationError) Cause() error
- func (e DeleteSpotResponseValidationError) Error() string
- func (e DeleteSpotResponseValidationError) ErrorName() string
- func (e DeleteSpotResponseValidationError) Field() string
- func (e DeleteSpotResponseValidationError) Key() bool
- func (e DeleteSpotResponseValidationError) Reason() string
- type FetchAllSpotsRequest
- func (*FetchAllSpotsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FetchAllSpotsRequest) GetChunkSize() uint32
- func (*FetchAllSpotsRequest) ProtoMessage()
- func (x *FetchAllSpotsRequest) ProtoReflect() protoreflect.Message
- func (x *FetchAllSpotsRequest) Reset()
- func (x *FetchAllSpotsRequest) String() string
- func (m *FetchAllSpotsRequest) Validate() error
- type FetchAllSpotsRequestValidationError
- func (e FetchAllSpotsRequestValidationError) Cause() error
- func (e FetchAllSpotsRequestValidationError) Error() string
- func (e FetchAllSpotsRequestValidationError) ErrorName() string
- func (e FetchAllSpotsRequestValidationError) Field() string
- func (e FetchAllSpotsRequestValidationError) Key() bool
- func (e FetchAllSpotsRequestValidationError) Reason() string
- type FetchAllSpotsResponse
- func (*FetchAllSpotsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FetchAllSpotsResponse) GetSpots() map[uint32]*Spot
- func (*FetchAllSpotsResponse) ProtoMessage()
- func (x *FetchAllSpotsResponse) ProtoReflect() protoreflect.Message
- func (x *FetchAllSpotsResponse) Reset()
- func (x *FetchAllSpotsResponse) String() string
- func (m *FetchAllSpotsResponse) Validate() error
- type FetchAllSpotsResponseValidationError
- func (e FetchAllSpotsResponseValidationError) Cause() error
- func (e FetchAllSpotsResponseValidationError) Error() string
- func (e FetchAllSpotsResponseValidationError) ErrorName() string
- func (e FetchAllSpotsResponseValidationError) Field() string
- func (e FetchAllSpotsResponseValidationError) Key() bool
- func (e FetchAllSpotsResponseValidationError) Reason() string
- type GetSpotRequest
- func (*GetSpotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSpotRequest) GetId() uint32
- func (*GetSpotRequest) ProtoMessage()
- func (x *GetSpotRequest) ProtoReflect() protoreflect.Message
- func (x *GetSpotRequest) Reset()
- func (x *GetSpotRequest) String() string
- func (m *GetSpotRequest) Validate() error
- type GetSpotRequestValidationError
- func (e GetSpotRequestValidationError) Cause() error
- func (e GetSpotRequestValidationError) Error() string
- func (e GetSpotRequestValidationError) ErrorName() string
- func (e GetSpotRequestValidationError) Field() string
- func (e GetSpotRequestValidationError) Key() bool
- func (e GetSpotRequestValidationError) Reason() string
- type GetSpotResponse
- func (*GetSpotResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSpotResponse) GetSpot() *Spot
- func (*GetSpotResponse) ProtoMessage()
- func (x *GetSpotResponse) ProtoReflect() protoreflect.Message
- func (x *GetSpotResponse) Reset()
- func (x *GetSpotResponse) String() string
- func (m *GetSpotResponse) Validate() error
- type GetSpotResponseValidationError
- func (e GetSpotResponseValidationError) Cause() error
- func (e GetSpotResponseValidationError) Error() string
- func (e GetSpotResponseValidationError) ErrorName() string
- func (e GetSpotResponseValidationError) Field() string
- func (e GetSpotResponseValidationError) Key() bool
- func (e GetSpotResponseValidationError) Reason() string
- type MruVSpotsServiceClient
- type MruVSpotsServiceServer
- type MruVSpotsService_FetchAllClient
- type MruVSpotsService_FetchAllServer
- type Spot
- func (*Spot) Descriptor() ([]byte, []int)deprecated
- func (x *Spot) GetIcon() int32
- func (x *Spot) GetInt() int32
- func (x *Spot) GetMarker() int32
- func (x *Spot) GetMessage() string
- func (x *Spot) GetName() string
- func (x *Spot) GetVw() int32
- func (x *Spot) GetX() float32
- func (x *Spot) GetY() float32
- func (x *Spot) GetZ() float32
- func (*Spot) ProtoMessage()
- func (x *Spot) ProtoReflect() protoreflect.Message
- func (x *Spot) Reset()
- func (x *Spot) String() string
- func (m *Spot) Validate() error
- type SpotValidationError
- type UnimplementedMruVSpotsServiceServer
- func (*UnimplementedMruVSpotsServiceServer) CreateSpot(context.Context, *CreateSpotRequest) (*CreateSpotResponse, error)
- func (*UnimplementedMruVSpotsServiceServer) DeleteSpot(context.Context, *DeleteSpotRequest) (*DeleteSpotResponse, error)
- func (*UnimplementedMruVSpotsServiceServer) FetchAll(*FetchAllSpotsRequest, MruVSpotsService_FetchAllServer) error
- func (*UnimplementedMruVSpotsServiceServer) GetSpot(context.Context, *GetSpotRequest) (*GetSpotResponse, error)
- func (*UnimplementedMruVSpotsServiceServer) UpdateSpot(context.Context, *UpdateSpotRequest) (*UpdateSpotResponse, error)
- type UpdateSpotRequest
- func (*UpdateSpotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateSpotRequest) GetId() uint32
- func (x *UpdateSpotRequest) GetSpot() *Spot
- func (*UpdateSpotRequest) ProtoMessage()
- func (x *UpdateSpotRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateSpotRequest) Reset()
- func (x *UpdateSpotRequest) String() string
- func (m *UpdateSpotRequest) Validate() error
- type UpdateSpotRequestValidationError
- func (e UpdateSpotRequestValidationError) Cause() error
- func (e UpdateSpotRequestValidationError) Error() string
- func (e UpdateSpotRequestValidationError) ErrorName() string
- func (e UpdateSpotRequestValidationError) Field() string
- func (e UpdateSpotRequestValidationError) Key() bool
- func (e UpdateSpotRequestValidationError) Reason() string
- type UpdateSpotResponse
- func (*UpdateSpotResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateSpotResponse) ProtoMessage()
- func (x *UpdateSpotResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateSpotResponse) Reset()
- func (x *UpdateSpotResponse) String() string
- func (m *UpdateSpotResponse) Validate() error
- type UpdateSpotResponseValidationError
- func (e UpdateSpotResponseValidationError) Cause() error
- func (e UpdateSpotResponseValidationError) Error() string
- func (e UpdateSpotResponseValidationError) ErrorName() string
- func (e UpdateSpotResponseValidationError) Field() string
- func (e UpdateSpotResponseValidationError) Key() bool
- func (e UpdateSpotResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_spots_spots_proto protoreflect.FileDescriptor
Functions ¶
func RegisterMruVSpotsServiceHandler ¶
func RegisterMruVSpotsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterMruVSpotsServiceHandler registers the http handlers for service MruVSpotsService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMruVSpotsServiceHandlerClient ¶
func RegisterMruVSpotsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MruVSpotsServiceClient) error
RegisterMruVSpotsServiceHandlerClient registers the http handlers for service MruVSpotsService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MruVSpotsServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MruVSpotsServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MruVSpotsServiceClient" to call the correct interceptors.
func RegisterMruVSpotsServiceHandlerFromEndpoint ¶
func RegisterMruVSpotsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterMruVSpotsServiceHandlerFromEndpoint is same as RegisterMruVSpotsServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterMruVSpotsServiceHandlerServer ¶
func RegisterMruVSpotsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MruVSpotsServiceServer) error
RegisterMruVSpotsServiceHandlerServer registers the http handlers for service MruVSpotsService to "mux". UnaryRPC :call MruVSpotsServiceServer 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 RegisterMruVSpotsServiceHandlerFromEndpoint instead.
func RegisterMruVSpotsServiceServer ¶
func RegisterMruVSpotsServiceServer(s *grpc.Server, srv MruVSpotsServiceServer)
Types ¶
type CreateSpotRequest ¶
type CreateSpotRequest struct { Spot *Spot `protobuf:"bytes,1,opt,name=spot,proto3" json:"spot,omitempty"` // contains filtered or unexported fields }
Request message for rpc `CreateSpot`.
func (*CreateSpotRequest) Descriptor
deprecated
func (*CreateSpotRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSpotRequest.ProtoReflect.Descriptor instead.
func (*CreateSpotRequest) GetSpot ¶
func (x *CreateSpotRequest) GetSpot() *Spot
func (*CreateSpotRequest) ProtoMessage ¶
func (*CreateSpotRequest) ProtoMessage()
func (*CreateSpotRequest) ProtoReflect ¶ added in v0.8.4
func (x *CreateSpotRequest) ProtoReflect() protoreflect.Message
func (*CreateSpotRequest) Reset ¶
func (x *CreateSpotRequest) Reset()
func (*CreateSpotRequest) String ¶
func (x *CreateSpotRequest) String() string
func (*CreateSpotRequest) Validate ¶
func (m *CreateSpotRequest) Validate() error
Validate checks the field values on CreateSpotRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateSpotRequestValidationError ¶
type CreateSpotRequestValidationError struct {
// contains filtered or unexported fields
}
CreateSpotRequestValidationError is the validation error returned by CreateSpotRequest.Validate if the designated constraints aren't met.
func (CreateSpotRequestValidationError) Cause ¶
func (e CreateSpotRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateSpotRequestValidationError) Error ¶
func (e CreateSpotRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateSpotRequestValidationError) ErrorName ¶
func (e CreateSpotRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateSpotRequestValidationError) Field ¶
func (e CreateSpotRequestValidationError) Field() string
Field function returns field value.
func (CreateSpotRequestValidationError) Key ¶
func (e CreateSpotRequestValidationError) Key() bool
Key function returns key value.
func (CreateSpotRequestValidationError) Reason ¶
func (e CreateSpotRequestValidationError) Reason() string
Reason function returns reason value.
type CreateSpotResponse ¶
type CreateSpotResponse struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
Response message for rpc `CreateSpot`.
func (*CreateSpotResponse) Descriptor
deprecated
func (*CreateSpotResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateSpotResponse.ProtoReflect.Descriptor instead.
func (*CreateSpotResponse) GetId ¶
func (x *CreateSpotResponse) GetId() uint32
func (*CreateSpotResponse) ProtoMessage ¶
func (*CreateSpotResponse) ProtoMessage()
func (*CreateSpotResponse) ProtoReflect ¶ added in v0.8.4
func (x *CreateSpotResponse) ProtoReflect() protoreflect.Message
func (*CreateSpotResponse) Reset ¶
func (x *CreateSpotResponse) Reset()
func (*CreateSpotResponse) String ¶
func (x *CreateSpotResponse) String() string
func (*CreateSpotResponse) Validate ¶
func (m *CreateSpotResponse) Validate() error
Validate checks the field values on CreateSpotResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateSpotResponseValidationError ¶
type CreateSpotResponseValidationError struct {
// contains filtered or unexported fields
}
CreateSpotResponseValidationError is the validation error returned by CreateSpotResponse.Validate if the designated constraints aren't met.
func (CreateSpotResponseValidationError) Cause ¶
func (e CreateSpotResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateSpotResponseValidationError) Error ¶
func (e CreateSpotResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateSpotResponseValidationError) ErrorName ¶
func (e CreateSpotResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateSpotResponseValidationError) Field ¶
func (e CreateSpotResponseValidationError) Field() string
Field function returns field value.
func (CreateSpotResponseValidationError) Key ¶
func (e CreateSpotResponseValidationError) Key() bool
Key function returns key value.
func (CreateSpotResponseValidationError) Reason ¶
func (e CreateSpotResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteSpotRequest ¶
type DeleteSpotRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
Request message for rpc `DeleteSpot`.
func (*DeleteSpotRequest) Descriptor
deprecated
func (*DeleteSpotRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSpotRequest.ProtoReflect.Descriptor instead.
func (*DeleteSpotRequest) GetId ¶
func (x *DeleteSpotRequest) GetId() uint32
func (*DeleteSpotRequest) ProtoMessage ¶
func (*DeleteSpotRequest) ProtoMessage()
func (*DeleteSpotRequest) ProtoReflect ¶ added in v0.8.4
func (x *DeleteSpotRequest) ProtoReflect() protoreflect.Message
func (*DeleteSpotRequest) Reset ¶
func (x *DeleteSpotRequest) Reset()
func (*DeleteSpotRequest) String ¶
func (x *DeleteSpotRequest) String() string
func (*DeleteSpotRequest) Validate ¶
func (m *DeleteSpotRequest) Validate() error
Validate checks the field values on DeleteSpotRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DeleteSpotRequestValidationError ¶
type DeleteSpotRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteSpotRequestValidationError is the validation error returned by DeleteSpotRequest.Validate if the designated constraints aren't met.
func (DeleteSpotRequestValidationError) Cause ¶
func (e DeleteSpotRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteSpotRequestValidationError) Error ¶
func (e DeleteSpotRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteSpotRequestValidationError) ErrorName ¶
func (e DeleteSpotRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteSpotRequestValidationError) Field ¶
func (e DeleteSpotRequestValidationError) Field() string
Field function returns field value.
func (DeleteSpotRequestValidationError) Key ¶
func (e DeleteSpotRequestValidationError) Key() bool
Key function returns key value.
func (DeleteSpotRequestValidationError) Reason ¶
func (e DeleteSpotRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteSpotResponse ¶
type DeleteSpotResponse struct {
// contains filtered or unexported fields
}
Response message for rpc `DeleteSpot`.
func (*DeleteSpotResponse) Descriptor
deprecated
func (*DeleteSpotResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSpotResponse.ProtoReflect.Descriptor instead.
func (*DeleteSpotResponse) ProtoMessage ¶
func (*DeleteSpotResponse) ProtoMessage()
func (*DeleteSpotResponse) ProtoReflect ¶ added in v0.8.4
func (x *DeleteSpotResponse) ProtoReflect() protoreflect.Message
func (*DeleteSpotResponse) Reset ¶
func (x *DeleteSpotResponse) Reset()
func (*DeleteSpotResponse) String ¶
func (x *DeleteSpotResponse) String() string
func (*DeleteSpotResponse) Validate ¶
func (m *DeleteSpotResponse) Validate() error
Validate checks the field values on DeleteSpotResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DeleteSpotResponseValidationError ¶
type DeleteSpotResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteSpotResponseValidationError is the validation error returned by DeleteSpotResponse.Validate if the designated constraints aren't met.
func (DeleteSpotResponseValidationError) Cause ¶
func (e DeleteSpotResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteSpotResponseValidationError) Error ¶
func (e DeleteSpotResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteSpotResponseValidationError) ErrorName ¶
func (e DeleteSpotResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteSpotResponseValidationError) Field ¶
func (e DeleteSpotResponseValidationError) Field() string
Field function returns field value.
func (DeleteSpotResponseValidationError) Key ¶
func (e DeleteSpotResponseValidationError) Key() bool
Key function returns key value.
func (DeleteSpotResponseValidationError) Reason ¶
func (e DeleteSpotResponseValidationError) Reason() string
Reason function returns reason value.
type FetchAllSpotsRequest ¶
type FetchAllSpotsRequest 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 `FetchAllSpots`.
func (*FetchAllSpotsRequest) Descriptor
deprecated
func (*FetchAllSpotsRequest) Descriptor() ([]byte, []int)
Deprecated: Use FetchAllSpotsRequest.ProtoReflect.Descriptor instead.
func (*FetchAllSpotsRequest) GetChunkSize ¶
func (x *FetchAllSpotsRequest) GetChunkSize() uint32
func (*FetchAllSpotsRequest) ProtoMessage ¶
func (*FetchAllSpotsRequest) ProtoMessage()
func (*FetchAllSpotsRequest) ProtoReflect ¶ added in v0.8.4
func (x *FetchAllSpotsRequest) ProtoReflect() protoreflect.Message
func (*FetchAllSpotsRequest) Reset ¶
func (x *FetchAllSpotsRequest) Reset()
func (*FetchAllSpotsRequest) String ¶
func (x *FetchAllSpotsRequest) String() string
func (*FetchAllSpotsRequest) Validate ¶
func (m *FetchAllSpotsRequest) Validate() error
Validate checks the field values on FetchAllSpotsRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type FetchAllSpotsRequestValidationError ¶
type FetchAllSpotsRequestValidationError struct {
// contains filtered or unexported fields
}
FetchAllSpotsRequestValidationError is the validation error returned by FetchAllSpotsRequest.Validate if the designated constraints aren't met.
func (FetchAllSpotsRequestValidationError) Cause ¶
func (e FetchAllSpotsRequestValidationError) Cause() error
Cause function returns cause value.
func (FetchAllSpotsRequestValidationError) Error ¶
func (e FetchAllSpotsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (FetchAllSpotsRequestValidationError) ErrorName ¶
func (e FetchAllSpotsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (FetchAllSpotsRequestValidationError) Field ¶
func (e FetchAllSpotsRequestValidationError) Field() string
Field function returns field value.
func (FetchAllSpotsRequestValidationError) Key ¶
func (e FetchAllSpotsRequestValidationError) Key() bool
Key function returns key value.
func (FetchAllSpotsRequestValidationError) Reason ¶
func (e FetchAllSpotsRequestValidationError) Reason() string
Reason function returns reason value.
type FetchAllSpotsResponse ¶
type FetchAllSpotsResponse struct { Spots map[uint32]*Spot `` /* 152-byte string literal not displayed */ // contains filtered or unexported fields }
Response message for rpc `FetchAllSpots`.
func (*FetchAllSpotsResponse) Descriptor
deprecated
func (*FetchAllSpotsResponse) Descriptor() ([]byte, []int)
Deprecated: Use FetchAllSpotsResponse.ProtoReflect.Descriptor instead.
func (*FetchAllSpotsResponse) GetSpots ¶
func (x *FetchAllSpotsResponse) GetSpots() map[uint32]*Spot
func (*FetchAllSpotsResponse) ProtoMessage ¶
func (*FetchAllSpotsResponse) ProtoMessage()
func (*FetchAllSpotsResponse) ProtoReflect ¶ added in v0.8.4
func (x *FetchAllSpotsResponse) ProtoReflect() protoreflect.Message
func (*FetchAllSpotsResponse) Reset ¶
func (x *FetchAllSpotsResponse) Reset()
func (*FetchAllSpotsResponse) String ¶
func (x *FetchAllSpotsResponse) String() string
func (*FetchAllSpotsResponse) Validate ¶
func (m *FetchAllSpotsResponse) Validate() error
Validate checks the field values on FetchAllSpotsResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type FetchAllSpotsResponseValidationError ¶
type FetchAllSpotsResponseValidationError struct {
// contains filtered or unexported fields
}
FetchAllSpotsResponseValidationError is the validation error returned by FetchAllSpotsResponse.Validate if the designated constraints aren't met.
func (FetchAllSpotsResponseValidationError) Cause ¶
func (e FetchAllSpotsResponseValidationError) Cause() error
Cause function returns cause value.
func (FetchAllSpotsResponseValidationError) Error ¶
func (e FetchAllSpotsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (FetchAllSpotsResponseValidationError) ErrorName ¶
func (e FetchAllSpotsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (FetchAllSpotsResponseValidationError) Field ¶
func (e FetchAllSpotsResponseValidationError) Field() string
Field function returns field value.
func (FetchAllSpotsResponseValidationError) Key ¶
func (e FetchAllSpotsResponseValidationError) Key() bool
Key function returns key value.
func (FetchAllSpotsResponseValidationError) Reason ¶
func (e FetchAllSpotsResponseValidationError) Reason() string
Reason function returns reason value.
type GetSpotRequest ¶
type GetSpotRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
Request message for rpc `GetSpot`.
func (*GetSpotRequest) Descriptor
deprecated
func (*GetSpotRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSpotRequest.ProtoReflect.Descriptor instead.
func (*GetSpotRequest) GetId ¶
func (x *GetSpotRequest) GetId() uint32
func (*GetSpotRequest) ProtoMessage ¶
func (*GetSpotRequest) ProtoMessage()
func (*GetSpotRequest) ProtoReflect ¶ added in v0.8.4
func (x *GetSpotRequest) ProtoReflect() protoreflect.Message
func (*GetSpotRequest) Reset ¶
func (x *GetSpotRequest) Reset()
func (*GetSpotRequest) String ¶
func (x *GetSpotRequest) String() string
func (*GetSpotRequest) Validate ¶
func (m *GetSpotRequest) Validate() error
Validate checks the field values on GetSpotRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetSpotRequestValidationError ¶
type GetSpotRequestValidationError struct {
// contains filtered or unexported fields
}
GetSpotRequestValidationError is the validation error returned by GetSpotRequest.Validate if the designated constraints aren't met.
func (GetSpotRequestValidationError) Cause ¶
func (e GetSpotRequestValidationError) Cause() error
Cause function returns cause value.
func (GetSpotRequestValidationError) Error ¶
func (e GetSpotRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetSpotRequestValidationError) ErrorName ¶
func (e GetSpotRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetSpotRequestValidationError) Field ¶
func (e GetSpotRequestValidationError) Field() string
Field function returns field value.
func (GetSpotRequestValidationError) Key ¶
func (e GetSpotRequestValidationError) Key() bool
Key function returns key value.
func (GetSpotRequestValidationError) Reason ¶
func (e GetSpotRequestValidationError) Reason() string
Reason function returns reason value.
type GetSpotResponse ¶
type GetSpotResponse struct { Spot *Spot `protobuf:"bytes,1,opt,name=spot,proto3" json:"spot,omitempty"` // contains filtered or unexported fields }
Response message for rpc `GetSpot`.
func (*GetSpotResponse) Descriptor
deprecated
func (*GetSpotResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSpotResponse.ProtoReflect.Descriptor instead.
func (*GetSpotResponse) GetSpot ¶
func (x *GetSpotResponse) GetSpot() *Spot
func (*GetSpotResponse) ProtoMessage ¶
func (*GetSpotResponse) ProtoMessage()
func (*GetSpotResponse) ProtoReflect ¶ added in v0.8.4
func (x *GetSpotResponse) ProtoReflect() protoreflect.Message
func (*GetSpotResponse) Reset ¶
func (x *GetSpotResponse) Reset()
func (*GetSpotResponse) String ¶
func (x *GetSpotResponse) String() string
func (*GetSpotResponse) Validate ¶
func (m *GetSpotResponse) Validate() error
Validate checks the field values on GetSpotResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetSpotResponseValidationError ¶
type GetSpotResponseValidationError struct {
// contains filtered or unexported fields
}
GetSpotResponseValidationError is the validation error returned by GetSpotResponse.Validate if the designated constraints aren't met.
func (GetSpotResponseValidationError) Cause ¶
func (e GetSpotResponseValidationError) Cause() error
Cause function returns cause value.
func (GetSpotResponseValidationError) Error ¶
func (e GetSpotResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetSpotResponseValidationError) ErrorName ¶
func (e GetSpotResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetSpotResponseValidationError) Field ¶
func (e GetSpotResponseValidationError) Field() string
Field function returns field value.
func (GetSpotResponseValidationError) Key ¶
func (e GetSpotResponseValidationError) Key() bool
Key function returns key value.
func (GetSpotResponseValidationError) Reason ¶
func (e GetSpotResponseValidationError) Reason() string
Reason function returns reason value.
type MruVSpotsServiceClient ¶
type MruVSpotsServiceClient interface { // Create a spot. CreateSpot(ctx context.Context, in *CreateSpotRequest, opts ...grpc.CallOption) (*CreateSpotResponse, error) // Get a spot. GetSpot(ctx context.Context, in *GetSpotRequest, opts ...grpc.CallOption) (*GetSpotResponse, error) // Update a spot. UpdateSpot(ctx context.Context, in *UpdateSpotRequest, opts ...grpc.CallOption) (*UpdateSpotResponse, error) // Delete a spot. DeleteSpot(ctx context.Context, in *DeleteSpotRequest, opts ...grpc.CallOption) (*DeleteSpotResponse, error) // Fetch all spots. FetchAll(ctx context.Context, in *FetchAllSpotsRequest, opts ...grpc.CallOption) (MruVSpotsService_FetchAllClient, error) }
MruVSpotsServiceClient is the client API for MruVSpotsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMruVSpotsServiceClient ¶
func NewMruVSpotsServiceClient(cc grpc.ClientConnInterface) MruVSpotsServiceClient
type MruVSpotsServiceServer ¶
type MruVSpotsServiceServer interface { // Create a spot. CreateSpot(context.Context, *CreateSpotRequest) (*CreateSpotResponse, error) // Get a spot. GetSpot(context.Context, *GetSpotRequest) (*GetSpotResponse, error) // Update a spot. UpdateSpot(context.Context, *UpdateSpotRequest) (*UpdateSpotResponse, error) // Delete a spot. DeleteSpot(context.Context, *DeleteSpotRequest) (*DeleteSpotResponse, error) // Fetch all spots. FetchAll(*FetchAllSpotsRequest, MruVSpotsService_FetchAllServer) error }
MruVSpotsServiceServer is the server API for MruVSpotsService service.
type MruVSpotsService_FetchAllClient ¶
type MruVSpotsService_FetchAllClient interface { Recv() (*FetchAllSpotsResponse, error) grpc.ClientStream }
type MruVSpotsService_FetchAllServer ¶
type MruVSpotsService_FetchAllServer interface { Send(*FetchAllSpotsResponse) error grpc.ServerStream }
type Spot ¶
type Spot struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Icon int32 `protobuf:"varint,3,opt,name=icon,proto3" json:"icon,omitempty"` Marker int32 `protobuf:"varint,4,opt,name=marker,proto3" json:"marker,omitempty"` X float32 `protobuf:"fixed32,5,opt,name=x,proto3" json:"x,omitempty"` Y float32 `protobuf:"fixed32,6,opt,name=y,proto3" json:"y,omitempty"` Z float32 `protobuf:"fixed32,7,opt,name=z,proto3" json:"z,omitempty"` Vw int32 `protobuf:"varint,8,opt,name=vw,proto3" json:"vw,omitempty"` Int int32 `protobuf:"varint,9,opt,name=int,proto3" json:"int,omitempty"` // contains filtered or unexported fields }
Spot.
func (*Spot) Descriptor
deprecated
func (*Spot) GetMessage ¶
func (*Spot) ProtoMessage ¶
func (*Spot) ProtoMessage()
func (*Spot) ProtoReflect ¶ added in v0.8.4
func (x *Spot) ProtoReflect() protoreflect.Message
type SpotValidationError ¶
type SpotValidationError struct {
// contains filtered or unexported fields
}
SpotValidationError is the validation error returned by Spot.Validate if the designated constraints aren't met.
func (SpotValidationError) Cause ¶
func (e SpotValidationError) Cause() error
Cause function returns cause value.
func (SpotValidationError) Error ¶
func (e SpotValidationError) Error() string
Error satisfies the builtin error interface
func (SpotValidationError) ErrorName ¶
func (e SpotValidationError) ErrorName() string
ErrorName returns error name.
func (SpotValidationError) Field ¶
func (e SpotValidationError) Field() string
Field function returns field value.
func (SpotValidationError) Key ¶
func (e SpotValidationError) Key() bool
Key function returns key value.
func (SpotValidationError) Reason ¶
func (e SpotValidationError) Reason() string
Reason function returns reason value.
type UnimplementedMruVSpotsServiceServer ¶
type UnimplementedMruVSpotsServiceServer struct { }
UnimplementedMruVSpotsServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedMruVSpotsServiceServer) CreateSpot ¶
func (*UnimplementedMruVSpotsServiceServer) CreateSpot(context.Context, *CreateSpotRequest) (*CreateSpotResponse, error)
func (*UnimplementedMruVSpotsServiceServer) DeleteSpot ¶
func (*UnimplementedMruVSpotsServiceServer) DeleteSpot(context.Context, *DeleteSpotRequest) (*DeleteSpotResponse, error)
func (*UnimplementedMruVSpotsServiceServer) FetchAll ¶
func (*UnimplementedMruVSpotsServiceServer) FetchAll(*FetchAllSpotsRequest, MruVSpotsService_FetchAllServer) error
func (*UnimplementedMruVSpotsServiceServer) GetSpot ¶
func (*UnimplementedMruVSpotsServiceServer) GetSpot(context.Context, *GetSpotRequest) (*GetSpotResponse, error)
func (*UnimplementedMruVSpotsServiceServer) UpdateSpot ¶
func (*UnimplementedMruVSpotsServiceServer) UpdateSpot(context.Context, *UpdateSpotRequest) (*UpdateSpotResponse, error)
type UpdateSpotRequest ¶
type UpdateSpotRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Spot *Spot `protobuf:"bytes,2,opt,name=spot,proto3" json:"spot,omitempty"` // contains filtered or unexported fields }
Request message for rpc `UpdateSpot`.
func (*UpdateSpotRequest) Descriptor
deprecated
func (*UpdateSpotRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSpotRequest.ProtoReflect.Descriptor instead.
func (*UpdateSpotRequest) GetId ¶
func (x *UpdateSpotRequest) GetId() uint32
func (*UpdateSpotRequest) GetSpot ¶
func (x *UpdateSpotRequest) GetSpot() *Spot
func (*UpdateSpotRequest) ProtoMessage ¶
func (*UpdateSpotRequest) ProtoMessage()
func (*UpdateSpotRequest) ProtoReflect ¶ added in v0.8.4
func (x *UpdateSpotRequest) ProtoReflect() protoreflect.Message
func (*UpdateSpotRequest) Reset ¶
func (x *UpdateSpotRequest) Reset()
func (*UpdateSpotRequest) String ¶
func (x *UpdateSpotRequest) String() string
func (*UpdateSpotRequest) Validate ¶
func (m *UpdateSpotRequest) Validate() error
Validate checks the field values on UpdateSpotRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UpdateSpotRequestValidationError ¶
type UpdateSpotRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateSpotRequestValidationError is the validation error returned by UpdateSpotRequest.Validate if the designated constraints aren't met.
func (UpdateSpotRequestValidationError) Cause ¶
func (e UpdateSpotRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateSpotRequestValidationError) Error ¶
func (e UpdateSpotRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateSpotRequestValidationError) ErrorName ¶
func (e UpdateSpotRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateSpotRequestValidationError) Field ¶
func (e UpdateSpotRequestValidationError) Field() string
Field function returns field value.
func (UpdateSpotRequestValidationError) Key ¶
func (e UpdateSpotRequestValidationError) Key() bool
Key function returns key value.
func (UpdateSpotRequestValidationError) Reason ¶
func (e UpdateSpotRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateSpotResponse ¶
type UpdateSpotResponse struct {
// contains filtered or unexported fields
}
Response message for rpc `UpdateSpot`.
func (*UpdateSpotResponse) Descriptor
deprecated
func (*UpdateSpotResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSpotResponse.ProtoReflect.Descriptor instead.
func (*UpdateSpotResponse) ProtoMessage ¶
func (*UpdateSpotResponse) ProtoMessage()
func (*UpdateSpotResponse) ProtoReflect ¶ added in v0.8.4
func (x *UpdateSpotResponse) ProtoReflect() protoreflect.Message
func (*UpdateSpotResponse) Reset ¶
func (x *UpdateSpotResponse) Reset()
func (*UpdateSpotResponse) String ¶
func (x *UpdateSpotResponse) String() string
func (*UpdateSpotResponse) Validate ¶
func (m *UpdateSpotResponse) Validate() error
Validate checks the field values on UpdateSpotResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UpdateSpotResponseValidationError ¶
type UpdateSpotResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateSpotResponseValidationError is the validation error returned by UpdateSpotResponse.Validate if the designated constraints aren't met.
func (UpdateSpotResponseValidationError) Cause ¶
func (e UpdateSpotResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateSpotResponseValidationError) Error ¶
func (e UpdateSpotResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateSpotResponseValidationError) ErrorName ¶
func (e UpdateSpotResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateSpotResponseValidationError) Field ¶
func (e UpdateSpotResponseValidationError) Field() string
Field function returns field value.
func (UpdateSpotResponseValidationError) Key ¶
func (e UpdateSpotResponseValidationError) Key() bool
Key function returns key value.
func (UpdateSpotResponseValidationError) Reason ¶
func (e UpdateSpotResponseValidationError) Reason() string
Reason function returns reason value.