vehicles

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 vehicles is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

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

Cause function returns cause value.

func (CreateVehicleRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateVehicleRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateVehicleRequestValidationError) Field

Field function returns field value.

func (CreateVehicleRequestValidationError) Key

Key function returns key value.

func (CreateVehicleRequestValidationError) Reason

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

Cause function returns cause value.

func (CreateVehicleResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateVehicleResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateVehicleResponseValidationError) Field

Field function returns field value.

func (CreateVehicleResponseValidationError) Key

Key function returns key value.

func (CreateVehicleResponseValidationError) Reason

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

Cause function returns cause value.

func (DeleteVehicleRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteVehicleRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteVehicleRequestValidationError) Field

Field function returns field value.

func (DeleteVehicleRequestValidationError) Key

Key function returns key value.

func (DeleteVehicleRequestValidationError) Reason

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

Cause function returns cause value.

func (DeleteVehicleResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteVehicleResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteVehicleResponseValidationError) Field

Field function returns field value.

func (DeleteVehicleResponseValidationError) Key

Key function returns key value.

func (DeleteVehicleResponseValidationError) Reason

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

Cause function returns cause value.

func (GetVehicleRequestValidationError) Error

Error satisfies the builtin error interface

func (GetVehicleRequestValidationError) ErrorName

ErrorName returns error name.

func (GetVehicleRequestValidationError) Field

Field function returns field value.

func (GetVehicleRequestValidationError) Key

Key function returns key value.

func (GetVehicleRequestValidationError) Reason

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

Cause function returns cause value.

func (GetVehicleResponseValidationError) Error

Error satisfies the builtin error interface

func (GetVehicleResponseValidationError) ErrorName

ErrorName returns error name.

func (GetVehicleResponseValidationError) Field

Field function returns field value.

func (GetVehicleResponseValidationError) Key

Key function returns key value.

func (GetVehicleResponseValidationError) Reason

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.

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

func (*UnimplementedMruVVehiclesServiceServer) GetVehicle

func (*UnimplementedMruVVehiclesServiceServer) UpdateVehicle

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

Cause function returns cause value.

func (UpdateVehicleRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateVehicleRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateVehicleRequestValidationError) Field

Field function returns field value.

func (UpdateVehicleRequestValidationError) Key

Key function returns key value.

func (UpdateVehicleRequestValidationError) Reason

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

Cause function returns cause value.

func (UpdateVehicleResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateVehicleResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateVehicleResponseValidationError) Field

Field function returns field value.

func (UpdateVehicleResponseValidationError) Key

Key function returns key value.

func (UpdateVehicleResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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