Documentation ¶
Overview ¶
Package vehicles is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterMruVVehiclesServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMruVVehiclesServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MruVVehiclesServiceClient) error
- func RegisterMruVVehiclesServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMruVVehiclesServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MruVVehiclesServiceServer) error
- func RegisterMruVVehiclesServiceServer(s *grpc.Server, srv MruVVehiclesServiceServer)
- type CreateVehicleRequest
- func (*CreateVehicleRequest) Descriptor() ([]byte, []int)deprecated
- func (*CreateVehicleRequest) ProtoMessage()
- func (x *CreateVehicleRequest) ProtoReflect() protoreflect.Message
- func (x *CreateVehicleRequest) Reset()
- func (x *CreateVehicleRequest) String() string
- func (m *CreateVehicleRequest) Validate() error
- type CreateVehicleRequestValidationError
- func (e CreateVehicleRequestValidationError) Cause() error
- func (e CreateVehicleRequestValidationError) Error() string
- func (e CreateVehicleRequestValidationError) ErrorName() string
- func (e CreateVehicleRequestValidationError) Field() string
- func (e CreateVehicleRequestValidationError) Key() bool
- func (e CreateVehicleRequestValidationError) Reason() string
- type CreateVehicleResponse
- func (*CreateVehicleResponse) Descriptor() ([]byte, []int)deprecated
- func (*CreateVehicleResponse) ProtoMessage()
- func (x *CreateVehicleResponse) ProtoReflect() protoreflect.Message
- func (x *CreateVehicleResponse) Reset()
- func (x *CreateVehicleResponse) String() string
- func (m *CreateVehicleResponse) Validate() error
- type CreateVehicleResponseValidationError
- func (e CreateVehicleResponseValidationError) Cause() error
- func (e CreateVehicleResponseValidationError) Error() string
- func (e CreateVehicleResponseValidationError) ErrorName() string
- func (e CreateVehicleResponseValidationError) Field() string
- func (e CreateVehicleResponseValidationError) Key() bool
- func (e CreateVehicleResponseValidationError) Reason() string
- type DeleteVehicleRequest
- func (*DeleteVehicleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteVehicleRequest) GetId() uint32
- func (*DeleteVehicleRequest) ProtoMessage()
- func (x *DeleteVehicleRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteVehicleRequest) Reset()
- func (x *DeleteVehicleRequest) String() string
- func (m *DeleteVehicleRequest) Validate() error
- type DeleteVehicleRequestValidationError
- func (e DeleteVehicleRequestValidationError) Cause() error
- func (e DeleteVehicleRequestValidationError) Error() string
- func (e DeleteVehicleRequestValidationError) ErrorName() string
- func (e DeleteVehicleRequestValidationError) Field() string
- func (e DeleteVehicleRequestValidationError) Key() bool
- func (e DeleteVehicleRequestValidationError) Reason() string
- type DeleteVehicleResponse
- func (*DeleteVehicleResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteVehicleResponse) ProtoMessage()
- func (x *DeleteVehicleResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteVehicleResponse) Reset()
- func (x *DeleteVehicleResponse) String() string
- func (m *DeleteVehicleResponse) Validate() error
- type DeleteVehicleResponseValidationError
- func (e DeleteVehicleResponseValidationError) Cause() error
- func (e DeleteVehicleResponseValidationError) Error() string
- func (e DeleteVehicleResponseValidationError) ErrorName() string
- func (e DeleteVehicleResponseValidationError) Field() string
- func (e DeleteVehicleResponseValidationError) Key() bool
- func (e DeleteVehicleResponseValidationError) Reason() string
- type GetVehicleRequest
- func (*GetVehicleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetVehicleRequest) GetId() uint32
- func (*GetVehicleRequest) ProtoMessage()
- func (x *GetVehicleRequest) ProtoReflect() protoreflect.Message
- func (x *GetVehicleRequest) Reset()
- func (x *GetVehicleRequest) String() string
- func (m *GetVehicleRequest) Validate() error
- type GetVehicleRequestValidationError
- func (e GetVehicleRequestValidationError) Cause() error
- func (e GetVehicleRequestValidationError) Error() string
- func (e GetVehicleRequestValidationError) ErrorName() string
- func (e GetVehicleRequestValidationError) Field() string
- func (e GetVehicleRequestValidationError) Key() bool
- func (e GetVehicleRequestValidationError) Reason() string
- type GetVehicleResponse
- func (*GetVehicleResponse) Descriptor() ([]byte, []int)deprecated
- func (*GetVehicleResponse) ProtoMessage()
- func (x *GetVehicleResponse) ProtoReflect() protoreflect.Message
- func (x *GetVehicleResponse) Reset()
- func (x *GetVehicleResponse) String() string
- func (m *GetVehicleResponse) Validate() error
- type GetVehicleResponseValidationError
- func (e GetVehicleResponseValidationError) Cause() error
- func (e GetVehicleResponseValidationError) Error() string
- func (e GetVehicleResponseValidationError) ErrorName() string
- func (e GetVehicleResponseValidationError) Field() string
- func (e GetVehicleResponseValidationError) Key() bool
- func (e GetVehicleResponseValidationError) Reason() string
- type MruVVehiclesServiceClient
- type MruVVehiclesServiceServer
- type UnimplementedMruVVehiclesServiceServer
- func (*UnimplementedMruVVehiclesServiceServer) CreateVehicle(context.Context, *CreateVehicleRequest) (*CreateVehicleResponse, error)
- func (*UnimplementedMruVVehiclesServiceServer) DeleteVehicle(context.Context, *DeleteVehicleRequest) (*DeleteVehicleResponse, error)
- func (*UnimplementedMruVVehiclesServiceServer) GetVehicle(context.Context, *GetVehicleRequest) (*GetVehicleResponse, error)
- func (*UnimplementedMruVVehiclesServiceServer) UpdateVehicle(context.Context, *UpdateVehicleRequest) (*UpdateVehicleResponse, error)
- type UpdateVehicleRequest
- func (*UpdateVehicleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateVehicleRequest) GetId() uint32
- func (*UpdateVehicleRequest) ProtoMessage()
- func (x *UpdateVehicleRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateVehicleRequest) Reset()
- func (x *UpdateVehicleRequest) String() string
- func (m *UpdateVehicleRequest) Validate() error
- type UpdateVehicleRequestValidationError
- func (e UpdateVehicleRequestValidationError) Cause() error
- func (e UpdateVehicleRequestValidationError) Error() string
- func (e UpdateVehicleRequestValidationError) ErrorName() string
- func (e UpdateVehicleRequestValidationError) Field() string
- func (e UpdateVehicleRequestValidationError) Key() bool
- func (e UpdateVehicleRequestValidationError) Reason() string
- type UpdateVehicleResponse
- func (*UpdateVehicleResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateVehicleResponse) ProtoMessage()
- func (x *UpdateVehicleResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateVehicleResponse) Reset()
- func (x *UpdateVehicleResponse) String() string
- func (m *UpdateVehicleResponse) Validate() error
- type UpdateVehicleResponseValidationError
- func (e UpdateVehicleResponseValidationError) Cause() error
- func (e UpdateVehicleResponseValidationError) Error() string
- func (e UpdateVehicleResponseValidationError) ErrorName() string
- func (e UpdateVehicleResponseValidationError) Field() string
- func (e UpdateVehicleResponseValidationError) Key() bool
- func (e UpdateVehicleResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_vehicles_vehicles_proto protoreflect.FileDescriptor
Functions ¶
func RegisterMruVVehiclesServiceHandler ¶
func RegisterMruVVehiclesServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterMruVVehiclesServiceHandler registers the http handlers for service MruVVehiclesService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMruVVehiclesServiceHandlerClient ¶
func RegisterMruVVehiclesServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MruVVehiclesServiceClient) error
RegisterMruVVehiclesServiceHandlerClient registers the http handlers for service MruVVehiclesService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MruVVehiclesServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MruVVehiclesServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MruVVehiclesServiceClient" to call the correct interceptors.
func RegisterMruVVehiclesServiceHandlerFromEndpoint ¶
func RegisterMruVVehiclesServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterMruVVehiclesServiceHandlerFromEndpoint is same as RegisterMruVVehiclesServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterMruVVehiclesServiceHandlerServer ¶
func RegisterMruVVehiclesServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MruVVehiclesServiceServer) error
RegisterMruVVehiclesServiceHandlerServer registers the http handlers for service MruVVehiclesService to "mux". UnaryRPC :call MruVVehiclesServiceServer 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 RegisterMruVVehiclesServiceHandlerFromEndpoint instead.
func RegisterMruVVehiclesServiceServer ¶
func RegisterMruVVehiclesServiceServer(s *grpc.Server, srv MruVVehiclesServiceServer)
Types ¶
type CreateVehicleRequest ¶
type CreateVehicleRequest struct {
// contains filtered or unexported fields
}
Request message for rpc `CreateVehicle`.
func (*CreateVehicleRequest) Descriptor
deprecated
func (*CreateVehicleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateVehicleRequest.ProtoReflect.Descriptor instead.
func (*CreateVehicleRequest) ProtoMessage ¶
func (*CreateVehicleRequest) ProtoMessage()
func (*CreateVehicleRequest) ProtoReflect ¶ added in v0.8.4
func (x *CreateVehicleRequest) ProtoReflect() protoreflect.Message
func (*CreateVehicleRequest) Reset ¶
func (x *CreateVehicleRequest) Reset()
func (*CreateVehicleRequest) String ¶
func (x *CreateVehicleRequest) String() string
func (*CreateVehicleRequest) Validate ¶
func (m *CreateVehicleRequest) Validate() error
Validate checks the field values on CreateVehicleRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateVehicleRequestValidationError ¶
type CreateVehicleRequestValidationError struct {
// contains filtered or unexported fields
}
CreateVehicleRequestValidationError is the validation error returned by CreateVehicleRequest.Validate if the designated constraints aren't met.
func (CreateVehicleRequestValidationError) Cause ¶
func (e CreateVehicleRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateVehicleRequestValidationError) Error ¶
func (e CreateVehicleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateVehicleRequestValidationError) ErrorName ¶
func (e CreateVehicleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateVehicleRequestValidationError) Field ¶
func (e CreateVehicleRequestValidationError) Field() string
Field function returns field value.
func (CreateVehicleRequestValidationError) Key ¶
func (e CreateVehicleRequestValidationError) Key() bool
Key function returns key value.
func (CreateVehicleRequestValidationError) Reason ¶
func (e CreateVehicleRequestValidationError) Reason() string
Reason function returns reason value.
type CreateVehicleResponse ¶
type CreateVehicleResponse struct {
// contains filtered or unexported fields
}
Response message for rpc `CreateVehicle`.
func (*CreateVehicleResponse) Descriptor
deprecated
func (*CreateVehicleResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateVehicleResponse.ProtoReflect.Descriptor instead.
func (*CreateVehicleResponse) ProtoMessage ¶
func (*CreateVehicleResponse) ProtoMessage()
func (*CreateVehicleResponse) ProtoReflect ¶ added in v0.8.4
func (x *CreateVehicleResponse) ProtoReflect() protoreflect.Message
func (*CreateVehicleResponse) Reset ¶
func (x *CreateVehicleResponse) Reset()
func (*CreateVehicleResponse) String ¶
func (x *CreateVehicleResponse) String() string
func (*CreateVehicleResponse) Validate ¶
func (m *CreateVehicleResponse) Validate() error
Validate checks the field values on CreateVehicleResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateVehicleResponseValidationError ¶
type CreateVehicleResponseValidationError struct {
// contains filtered or unexported fields
}
CreateVehicleResponseValidationError is the validation error returned by CreateVehicleResponse.Validate if the designated constraints aren't met.
func (CreateVehicleResponseValidationError) Cause ¶
func (e CreateVehicleResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateVehicleResponseValidationError) Error ¶
func (e CreateVehicleResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateVehicleResponseValidationError) ErrorName ¶
func (e CreateVehicleResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateVehicleResponseValidationError) Field ¶
func (e CreateVehicleResponseValidationError) Field() string
Field function returns field value.
func (CreateVehicleResponseValidationError) Key ¶
func (e CreateVehicleResponseValidationError) Key() bool
Key function returns key value.
func (CreateVehicleResponseValidationError) Reason ¶
func (e CreateVehicleResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteVehicleRequest ¶
type DeleteVehicleRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
Request message for rpc `DeleteVehicle`.
func (*DeleteVehicleRequest) Descriptor
deprecated
func (*DeleteVehicleRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteVehicleRequest.ProtoReflect.Descriptor instead.
func (*DeleteVehicleRequest) GetId ¶
func (x *DeleteVehicleRequest) GetId() uint32
func (*DeleteVehicleRequest) ProtoMessage ¶
func (*DeleteVehicleRequest) ProtoMessage()
func (*DeleteVehicleRequest) ProtoReflect ¶ added in v0.8.4
func (x *DeleteVehicleRequest) ProtoReflect() protoreflect.Message
func (*DeleteVehicleRequest) Reset ¶
func (x *DeleteVehicleRequest) Reset()
func (*DeleteVehicleRequest) String ¶
func (x *DeleteVehicleRequest) String() string
func (*DeleteVehicleRequest) Validate ¶
func (m *DeleteVehicleRequest) Validate() error
Validate checks the field values on DeleteVehicleRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DeleteVehicleRequestValidationError ¶
type DeleteVehicleRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteVehicleRequestValidationError is the validation error returned by DeleteVehicleRequest.Validate if the designated constraints aren't met.
func (DeleteVehicleRequestValidationError) Cause ¶
func (e DeleteVehicleRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteVehicleRequestValidationError) Error ¶
func (e DeleteVehicleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteVehicleRequestValidationError) ErrorName ¶
func (e DeleteVehicleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteVehicleRequestValidationError) Field ¶
func (e DeleteVehicleRequestValidationError) Field() string
Field function returns field value.
func (DeleteVehicleRequestValidationError) Key ¶
func (e DeleteVehicleRequestValidationError) Key() bool
Key function returns key value.
func (DeleteVehicleRequestValidationError) Reason ¶
func (e DeleteVehicleRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteVehicleResponse ¶
type DeleteVehicleResponse struct {
// contains filtered or unexported fields
}
Response message for rpc `DeleteVehicle`.
func (*DeleteVehicleResponse) Descriptor
deprecated
func (*DeleteVehicleResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteVehicleResponse.ProtoReflect.Descriptor instead.
func (*DeleteVehicleResponse) ProtoMessage ¶
func (*DeleteVehicleResponse) ProtoMessage()
func (*DeleteVehicleResponse) ProtoReflect ¶ added in v0.8.4
func (x *DeleteVehicleResponse) ProtoReflect() protoreflect.Message
func (*DeleteVehicleResponse) Reset ¶
func (x *DeleteVehicleResponse) Reset()
func (*DeleteVehicleResponse) String ¶
func (x *DeleteVehicleResponse) String() string
func (*DeleteVehicleResponse) Validate ¶
func (m *DeleteVehicleResponse) Validate() error
Validate checks the field values on DeleteVehicleResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DeleteVehicleResponseValidationError ¶
type DeleteVehicleResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteVehicleResponseValidationError is the validation error returned by DeleteVehicleResponse.Validate if the designated constraints aren't met.
func (DeleteVehicleResponseValidationError) Cause ¶
func (e DeleteVehicleResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteVehicleResponseValidationError) Error ¶
func (e DeleteVehicleResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteVehicleResponseValidationError) ErrorName ¶
func (e DeleteVehicleResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteVehicleResponseValidationError) Field ¶
func (e DeleteVehicleResponseValidationError) Field() string
Field function returns field value.
func (DeleteVehicleResponseValidationError) Key ¶
func (e DeleteVehicleResponseValidationError) Key() bool
Key function returns key value.
func (DeleteVehicleResponseValidationError) Reason ¶
func (e DeleteVehicleResponseValidationError) Reason() string
Reason function returns reason value.
type GetVehicleRequest ¶
type GetVehicleRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
Request message for rpc `GetVehicle`.
func (*GetVehicleRequest) Descriptor
deprecated
func (*GetVehicleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetVehicleRequest.ProtoReflect.Descriptor instead.
func (*GetVehicleRequest) GetId ¶
func (x *GetVehicleRequest) GetId() uint32
func (*GetVehicleRequest) ProtoMessage ¶
func (*GetVehicleRequest) ProtoMessage()
func (*GetVehicleRequest) ProtoReflect ¶ added in v0.8.4
func (x *GetVehicleRequest) ProtoReflect() protoreflect.Message
func (*GetVehicleRequest) Reset ¶
func (x *GetVehicleRequest) Reset()
func (*GetVehicleRequest) String ¶
func (x *GetVehicleRequest) String() string
func (*GetVehicleRequest) Validate ¶
func (m *GetVehicleRequest) Validate() error
Validate checks the field values on GetVehicleRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetVehicleRequestValidationError ¶
type GetVehicleRequestValidationError struct {
// contains filtered or unexported fields
}
GetVehicleRequestValidationError is the validation error returned by GetVehicleRequest.Validate if the designated constraints aren't met.
func (GetVehicleRequestValidationError) Cause ¶
func (e GetVehicleRequestValidationError) Cause() error
Cause function returns cause value.
func (GetVehicleRequestValidationError) Error ¶
func (e GetVehicleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetVehicleRequestValidationError) ErrorName ¶
func (e GetVehicleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetVehicleRequestValidationError) Field ¶
func (e GetVehicleRequestValidationError) Field() string
Field function returns field value.
func (GetVehicleRequestValidationError) Key ¶
func (e GetVehicleRequestValidationError) Key() bool
Key function returns key value.
func (GetVehicleRequestValidationError) Reason ¶
func (e GetVehicleRequestValidationError) Reason() string
Reason function returns reason value.
type GetVehicleResponse ¶
type GetVehicleResponse struct {
// contains filtered or unexported fields
}
Response message for rpc `GetVehicle`.
func (*GetVehicleResponse) Descriptor
deprecated
func (*GetVehicleResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetVehicleResponse.ProtoReflect.Descriptor instead.
func (*GetVehicleResponse) ProtoMessage ¶
func (*GetVehicleResponse) ProtoMessage()
func (*GetVehicleResponse) ProtoReflect ¶ added in v0.8.4
func (x *GetVehicleResponse) ProtoReflect() protoreflect.Message
func (*GetVehicleResponse) Reset ¶
func (x *GetVehicleResponse) Reset()
func (*GetVehicleResponse) String ¶
func (x *GetVehicleResponse) String() string
func (*GetVehicleResponse) Validate ¶
func (m *GetVehicleResponse) Validate() error
Validate checks the field values on GetVehicleResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetVehicleResponseValidationError ¶
type GetVehicleResponseValidationError struct {
// contains filtered or unexported fields
}
GetVehicleResponseValidationError is the validation error returned by GetVehicleResponse.Validate if the designated constraints aren't met.
func (GetVehicleResponseValidationError) Cause ¶
func (e GetVehicleResponseValidationError) Cause() error
Cause function returns cause value.
func (GetVehicleResponseValidationError) Error ¶
func (e GetVehicleResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetVehicleResponseValidationError) ErrorName ¶
func (e GetVehicleResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetVehicleResponseValidationError) Field ¶
func (e GetVehicleResponseValidationError) Field() string
Field function returns field value.
func (GetVehicleResponseValidationError) Key ¶
func (e GetVehicleResponseValidationError) Key() bool
Key function returns key value.
func (GetVehicleResponseValidationError) Reason ¶
func (e GetVehicleResponseValidationError) Reason() string
Reason function returns reason value.
type MruVVehiclesServiceClient ¶
type MruVVehiclesServiceClient interface { // Create a vehicle. CreateVehicle(ctx context.Context, in *CreateVehicleRequest, opts ...grpc.CallOption) (*CreateVehicleResponse, error) // Get a vehicle. GetVehicle(ctx context.Context, in *GetVehicleRequest, opts ...grpc.CallOption) (*GetVehicleResponse, error) // Update a vehicle. UpdateVehicle(ctx context.Context, in *UpdateVehicleRequest, opts ...grpc.CallOption) (*UpdateVehicleResponse, error) // Delete a vehicle. DeleteVehicle(ctx context.Context, in *DeleteVehicleRequest, opts ...grpc.CallOption) (*DeleteVehicleResponse, error) }
MruVVehiclesServiceClient is the client API for MruVVehiclesService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMruVVehiclesServiceClient ¶
func NewMruVVehiclesServiceClient(cc grpc.ClientConnInterface) MruVVehiclesServiceClient
type MruVVehiclesServiceServer ¶
type MruVVehiclesServiceServer interface { // Create a vehicle. CreateVehicle(context.Context, *CreateVehicleRequest) (*CreateVehicleResponse, error) // Get a vehicle. GetVehicle(context.Context, *GetVehicleRequest) (*GetVehicleResponse, error) // Update a vehicle. UpdateVehicle(context.Context, *UpdateVehicleRequest) (*UpdateVehicleResponse, error) // Delete a vehicle. DeleteVehicle(context.Context, *DeleteVehicleRequest) (*DeleteVehicleResponse, error) }
MruVVehiclesServiceServer is the server API for MruVVehiclesService service.
type UnimplementedMruVVehiclesServiceServer ¶
type UnimplementedMruVVehiclesServiceServer struct { }
UnimplementedMruVVehiclesServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedMruVVehiclesServiceServer) CreateVehicle ¶
func (*UnimplementedMruVVehiclesServiceServer) CreateVehicle(context.Context, *CreateVehicleRequest) (*CreateVehicleResponse, error)
func (*UnimplementedMruVVehiclesServiceServer) DeleteVehicle ¶
func (*UnimplementedMruVVehiclesServiceServer) DeleteVehicle(context.Context, *DeleteVehicleRequest) (*DeleteVehicleResponse, error)
func (*UnimplementedMruVVehiclesServiceServer) GetVehicle ¶
func (*UnimplementedMruVVehiclesServiceServer) GetVehicle(context.Context, *GetVehicleRequest) (*GetVehicleResponse, error)
func (*UnimplementedMruVVehiclesServiceServer) UpdateVehicle ¶
func (*UnimplementedMruVVehiclesServiceServer) UpdateVehicle(context.Context, *UpdateVehicleRequest) (*UpdateVehicleResponse, error)
type UpdateVehicleRequest ¶
type UpdateVehicleRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
Request message for rpc `UpdateVehicle`.
func (*UpdateVehicleRequest) Descriptor
deprecated
func (*UpdateVehicleRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateVehicleRequest.ProtoReflect.Descriptor instead.
func (*UpdateVehicleRequest) GetId ¶
func (x *UpdateVehicleRequest) GetId() uint32
func (*UpdateVehicleRequest) ProtoMessage ¶
func (*UpdateVehicleRequest) ProtoMessage()
func (*UpdateVehicleRequest) ProtoReflect ¶ added in v0.8.4
func (x *UpdateVehicleRequest) ProtoReflect() protoreflect.Message
func (*UpdateVehicleRequest) Reset ¶
func (x *UpdateVehicleRequest) Reset()
func (*UpdateVehicleRequest) String ¶
func (x *UpdateVehicleRequest) String() string
func (*UpdateVehicleRequest) Validate ¶
func (m *UpdateVehicleRequest) Validate() error
Validate checks the field values on UpdateVehicleRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UpdateVehicleRequestValidationError ¶
type UpdateVehicleRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateVehicleRequestValidationError is the validation error returned by UpdateVehicleRequest.Validate if the designated constraints aren't met.
func (UpdateVehicleRequestValidationError) Cause ¶
func (e UpdateVehicleRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateVehicleRequestValidationError) Error ¶
func (e UpdateVehicleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateVehicleRequestValidationError) ErrorName ¶
func (e UpdateVehicleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateVehicleRequestValidationError) Field ¶
func (e UpdateVehicleRequestValidationError) Field() string
Field function returns field value.
func (UpdateVehicleRequestValidationError) Key ¶
func (e UpdateVehicleRequestValidationError) Key() bool
Key function returns key value.
func (UpdateVehicleRequestValidationError) Reason ¶
func (e UpdateVehicleRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateVehicleResponse ¶
type UpdateVehicleResponse struct {
// contains filtered or unexported fields
}
Response message for rpc `UpdateVehicle`.
func (*UpdateVehicleResponse) Descriptor
deprecated
func (*UpdateVehicleResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateVehicleResponse.ProtoReflect.Descriptor instead.
func (*UpdateVehicleResponse) ProtoMessage ¶
func (*UpdateVehicleResponse) ProtoMessage()
func (*UpdateVehicleResponse) ProtoReflect ¶ added in v0.8.4
func (x *UpdateVehicleResponse) ProtoReflect() protoreflect.Message
func (*UpdateVehicleResponse) Reset ¶
func (x *UpdateVehicleResponse) Reset()
func (*UpdateVehicleResponse) String ¶
func (x *UpdateVehicleResponse) String() string
func (*UpdateVehicleResponse) Validate ¶
func (m *UpdateVehicleResponse) Validate() error
Validate checks the field values on UpdateVehicleResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UpdateVehicleResponseValidationError ¶
type UpdateVehicleResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateVehicleResponseValidationError is the validation error returned by UpdateVehicleResponse.Validate if the designated constraints aren't met.
func (UpdateVehicleResponseValidationError) Cause ¶
func (e UpdateVehicleResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateVehicleResponseValidationError) Error ¶
func (e UpdateVehicleResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateVehicleResponseValidationError) ErrorName ¶
func (e UpdateVehicleResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateVehicleResponseValidationError) Field ¶
func (e UpdateVehicleResponseValidationError) Field() string
Field function returns field value.
func (UpdateVehicleResponseValidationError) Key ¶
func (e UpdateVehicleResponseValidationError) Key() bool
Key function returns key value.
func (UpdateVehicleResponseValidationError) Reason ¶
func (e UpdateVehicleResponseValidationError) Reason() string
Reason function returns reason value.