spots

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

Documentation

Overview

Package spots is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
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

Cause function returns cause value.

func (CreateSpotRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateSpotRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateSpotRequestValidationError) Field

Field function returns field value.

func (CreateSpotRequestValidationError) Key

Key function returns key value.

func (CreateSpotRequestValidationError) Reason

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

Cause function returns cause value.

func (CreateSpotResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateSpotResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateSpotResponseValidationError) Field

Field function returns field value.

func (CreateSpotResponseValidationError) Key

Key function returns key value.

func (CreateSpotResponseValidationError) Reason

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

Cause function returns cause value.

func (DeleteSpotRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteSpotRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteSpotRequestValidationError) Field

Field function returns field value.

func (DeleteSpotRequestValidationError) Key

Key function returns key value.

func (DeleteSpotRequestValidationError) Reason

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

Cause function returns cause value.

func (DeleteSpotResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteSpotResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteSpotResponseValidationError) Field

Field function returns field value.

func (DeleteSpotResponseValidationError) Key

Key function returns key value.

func (DeleteSpotResponseValidationError) Reason

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

Cause function returns cause value.

func (FetchAllSpotsRequestValidationError) Error

Error satisfies the builtin error interface

func (FetchAllSpotsRequestValidationError) ErrorName

ErrorName returns error name.

func (FetchAllSpotsRequestValidationError) Field

Field function returns field value.

func (FetchAllSpotsRequestValidationError) Key

Key function returns key value.

func (FetchAllSpotsRequestValidationError) Reason

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

Cause function returns cause value.

func (FetchAllSpotsResponseValidationError) Error

Error satisfies the builtin error interface

func (FetchAllSpotsResponseValidationError) ErrorName

ErrorName returns error name.

func (FetchAllSpotsResponseValidationError) Field

Field function returns field value.

func (FetchAllSpotsResponseValidationError) Key

Key function returns key value.

func (FetchAllSpotsResponseValidationError) Reason

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

Cause function returns cause value.

func (GetSpotRequestValidationError) Error

Error satisfies the builtin error interface

func (GetSpotRequestValidationError) ErrorName

func (e GetSpotRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetSpotRequestValidationError) Field

Field function returns field value.

func (GetSpotRequestValidationError) Key

Key function returns key value.

func (GetSpotRequestValidationError) Reason

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

Cause function returns cause value.

func (GetSpotResponseValidationError) Error

Error satisfies the builtin error interface

func (GetSpotResponseValidationError) ErrorName

func (e GetSpotResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetSpotResponseValidationError) Field

Field function returns field value.

func (GetSpotResponseValidationError) Key

Key function returns key value.

func (GetSpotResponseValidationError) Reason

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Spot.ProtoReflect.Descriptor instead.

func (*Spot) GetIcon

func (x *Spot) GetIcon() int32

func (*Spot) GetInt

func (x *Spot) GetInt() int32

func (*Spot) GetMarker

func (x *Spot) GetMarker() int32

func (*Spot) GetMessage

func (x *Spot) GetMessage() string

func (*Spot) GetName

func (x *Spot) GetName() string

func (*Spot) GetVw

func (x *Spot) GetVw() int32

func (*Spot) GetX

func (x *Spot) GetX() float32

func (*Spot) GetY

func (x *Spot) GetY() float32

func (*Spot) GetZ

func (x *Spot) GetZ() float32

func (*Spot) ProtoMessage

func (*Spot) ProtoMessage()

func (*Spot) ProtoReflect added in v0.8.4

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

func (*Spot) Reset

func (x *Spot) Reset()

func (*Spot) String

func (x *Spot) String() string

func (*Spot) Validate

func (m *Spot) Validate() error

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

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) DeleteSpot

func (*UnimplementedMruVSpotsServiceServer) FetchAll

func (*UnimplementedMruVSpotsServiceServer) GetSpot

func (*UnimplementedMruVSpotsServiceServer) UpdateSpot

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

Cause function returns cause value.

func (UpdateSpotRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateSpotRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateSpotRequestValidationError) Field

Field function returns field value.

func (UpdateSpotRequestValidationError) Key

Key function returns key value.

func (UpdateSpotRequestValidationError) Reason

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

Cause function returns cause value.

func (UpdateSpotResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateSpotResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateSpotResponseValidationError) Field

Field function returns field value.

func (UpdateSpotResponseValidationError) Key

Key function returns key value.

func (UpdateSpotResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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