elevators

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

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_elevators_elevators_proto protoreflect.FileDescriptor

Functions

func RegisterMruVElevatorsServiceHandler

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

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

func RegisterMruVElevatorsServiceHandlerClient

func RegisterMruVElevatorsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MruVElevatorsServiceClient) error

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

func RegisterMruVElevatorsServiceHandlerFromEndpoint

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

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

func RegisterMruVElevatorsServiceHandlerServer

func RegisterMruVElevatorsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MruVElevatorsServiceServer) error

RegisterMruVElevatorsServiceHandlerServer registers the http handlers for service MruVElevatorsService to "mux". UnaryRPC :call MruVElevatorsServiceServer 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 RegisterMruVElevatorsServiceHandlerFromEndpoint instead.

func RegisterMruVElevatorsServiceServer

func RegisterMruVElevatorsServiceServer(s *grpc.Server, srv MruVElevatorsServiceServer)

Types

type CreateElevatorRequest

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

Request message for rpc `CreateElevator`.

func (*CreateElevatorRequest) Descriptor deprecated

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

Deprecated: Use CreateElevatorRequest.ProtoReflect.Descriptor instead.

func (*CreateElevatorRequest) ProtoMessage

func (*CreateElevatorRequest) ProtoMessage()

func (*CreateElevatorRequest) ProtoReflect added in v0.8.4

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

func (*CreateElevatorRequest) Reset

func (x *CreateElevatorRequest) Reset()

func (*CreateElevatorRequest) String

func (x *CreateElevatorRequest) String() string

func (*CreateElevatorRequest) Validate

func (m *CreateElevatorRequest) Validate() error

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

type CreateElevatorRequestValidationError

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

CreateElevatorRequestValidationError is the validation error returned by CreateElevatorRequest.Validate if the designated constraints aren't met.

func (CreateElevatorRequestValidationError) Cause

Cause function returns cause value.

func (CreateElevatorRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateElevatorRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateElevatorRequestValidationError) Field

Field function returns field value.

func (CreateElevatorRequestValidationError) Key

Key function returns key value.

func (CreateElevatorRequestValidationError) Reason

Reason function returns reason value.

type CreateElevatorResponse

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

Response message for rpc `CreateElevator`.

func (*CreateElevatorResponse) Descriptor deprecated

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

Deprecated: Use CreateElevatorResponse.ProtoReflect.Descriptor instead.

func (*CreateElevatorResponse) GetId

func (x *CreateElevatorResponse) GetId() uint32

func (*CreateElevatorResponse) ProtoMessage

func (*CreateElevatorResponse) ProtoMessage()

func (*CreateElevatorResponse) ProtoReflect added in v0.8.4

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

func (*CreateElevatorResponse) Reset

func (x *CreateElevatorResponse) Reset()

func (*CreateElevatorResponse) String

func (x *CreateElevatorResponse) String() string

func (*CreateElevatorResponse) Validate

func (m *CreateElevatorResponse) Validate() error

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

type CreateElevatorResponseValidationError

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

CreateElevatorResponseValidationError is the validation error returned by CreateElevatorResponse.Validate if the designated constraints aren't met.

func (CreateElevatorResponseValidationError) Cause

Cause function returns cause value.

func (CreateElevatorResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateElevatorResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateElevatorResponseValidationError) Field

Field function returns field value.

func (CreateElevatorResponseValidationError) Key

Key function returns key value.

func (CreateElevatorResponseValidationError) Reason

Reason function returns reason value.

type DeleteElevatorRequest

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

Request message for rpc `DeleteElevator`.

func (*DeleteElevatorRequest) Descriptor deprecated

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

Deprecated: Use DeleteElevatorRequest.ProtoReflect.Descriptor instead.

func (*DeleteElevatorRequest) GetId

func (x *DeleteElevatorRequest) GetId() uint32

func (*DeleteElevatorRequest) ProtoMessage

func (*DeleteElevatorRequest) ProtoMessage()

func (*DeleteElevatorRequest) ProtoReflect added in v0.8.4

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

func (*DeleteElevatorRequest) Reset

func (x *DeleteElevatorRequest) Reset()

func (*DeleteElevatorRequest) String

func (x *DeleteElevatorRequest) String() string

func (*DeleteElevatorRequest) Validate

func (m *DeleteElevatorRequest) Validate() error

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

type DeleteElevatorRequestValidationError

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

DeleteElevatorRequestValidationError is the validation error returned by DeleteElevatorRequest.Validate if the designated constraints aren't met.

func (DeleteElevatorRequestValidationError) Cause

Cause function returns cause value.

func (DeleteElevatorRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteElevatorRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteElevatorRequestValidationError) Field

Field function returns field value.

func (DeleteElevatorRequestValidationError) Key

Key function returns key value.

func (DeleteElevatorRequestValidationError) Reason

Reason function returns reason value.

type DeleteElevatorResponse

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

Response message for rpc `DeleteElevator`.

func (*DeleteElevatorResponse) Descriptor deprecated

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

Deprecated: Use DeleteElevatorResponse.ProtoReflect.Descriptor instead.

func (*DeleteElevatorResponse) ProtoMessage

func (*DeleteElevatorResponse) ProtoMessage()

func (*DeleteElevatorResponse) ProtoReflect added in v0.8.4

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

func (*DeleteElevatorResponse) Reset

func (x *DeleteElevatorResponse) Reset()

func (*DeleteElevatorResponse) String

func (x *DeleteElevatorResponse) String() string

func (*DeleteElevatorResponse) Validate

func (m *DeleteElevatorResponse) Validate() error

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

type DeleteElevatorResponseValidationError

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

DeleteElevatorResponseValidationError is the validation error returned by DeleteElevatorResponse.Validate if the designated constraints aren't met.

func (DeleteElevatorResponseValidationError) Cause

Cause function returns cause value.

func (DeleteElevatorResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteElevatorResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteElevatorResponseValidationError) Field

Field function returns field value.

func (DeleteElevatorResponseValidationError) Key

Key function returns key value.

func (DeleteElevatorResponseValidationError) Reason

Reason function returns reason value.

type GetElevatorFloorsRequest

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

Request message for rpc `GetElevatorFloors`.

func (*GetElevatorFloorsRequest) Descriptor deprecated

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

Deprecated: Use GetElevatorFloorsRequest.ProtoReflect.Descriptor instead.

func (*GetElevatorFloorsRequest) GetId

func (x *GetElevatorFloorsRequest) GetId() uint32

func (*GetElevatorFloorsRequest) ProtoMessage

func (*GetElevatorFloorsRequest) ProtoMessage()

func (*GetElevatorFloorsRequest) ProtoReflect added in v0.8.4

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

func (*GetElevatorFloorsRequest) Reset

func (x *GetElevatorFloorsRequest) Reset()

func (*GetElevatorFloorsRequest) String

func (x *GetElevatorFloorsRequest) String() string

func (*GetElevatorFloorsRequest) Validate

func (m *GetElevatorFloorsRequest) Validate() error

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

type GetElevatorFloorsRequestValidationError

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

GetElevatorFloorsRequestValidationError is the validation error returned by GetElevatorFloorsRequest.Validate if the designated constraints aren't met.

func (GetElevatorFloorsRequestValidationError) Cause

Cause function returns cause value.

func (GetElevatorFloorsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetElevatorFloorsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetElevatorFloorsRequestValidationError) Field

Field function returns field value.

func (GetElevatorFloorsRequestValidationError) Key

Key function returns key value.

func (GetElevatorFloorsRequestValidationError) Reason

Reason function returns reason value.

type GetElevatorFloorsResponse

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

Response message for rpc `GetElevatorFloors`.

func (*GetElevatorFloorsResponse) Descriptor deprecated

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

Deprecated: Use GetElevatorFloorsResponse.ProtoReflect.Descriptor instead.

func (*GetElevatorFloorsResponse) ProtoMessage

func (*GetElevatorFloorsResponse) ProtoMessage()

func (*GetElevatorFloorsResponse) ProtoReflect added in v0.8.4

func (*GetElevatorFloorsResponse) Reset

func (x *GetElevatorFloorsResponse) Reset()

func (*GetElevatorFloorsResponse) String

func (x *GetElevatorFloorsResponse) String() string

func (*GetElevatorFloorsResponse) Validate

func (m *GetElevatorFloorsResponse) Validate() error

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

type GetElevatorFloorsResponseValidationError

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

GetElevatorFloorsResponseValidationError is the validation error returned by GetElevatorFloorsResponse.Validate if the designated constraints aren't met.

func (GetElevatorFloorsResponseValidationError) Cause

Cause function returns cause value.

func (GetElevatorFloorsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetElevatorFloorsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetElevatorFloorsResponseValidationError) Field

Field function returns field value.

func (GetElevatorFloorsResponseValidationError) Key

Key function returns key value.

func (GetElevatorFloorsResponseValidationError) Reason

Reason function returns reason value.

type GetElevatorRequest

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

Request message for rpc `GetElevator`.

func (*GetElevatorRequest) Descriptor deprecated

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

Deprecated: Use GetElevatorRequest.ProtoReflect.Descriptor instead.

func (*GetElevatorRequest) GetId

func (x *GetElevatorRequest) GetId() uint32

func (*GetElevatorRequest) ProtoMessage

func (*GetElevatorRequest) ProtoMessage()

func (*GetElevatorRequest) ProtoReflect added in v0.8.4

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

func (*GetElevatorRequest) Reset

func (x *GetElevatorRequest) Reset()

func (*GetElevatorRequest) String

func (x *GetElevatorRequest) String() string

func (*GetElevatorRequest) Validate

func (m *GetElevatorRequest) Validate() error

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

type GetElevatorRequestValidationError

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

GetElevatorRequestValidationError is the validation error returned by GetElevatorRequest.Validate if the designated constraints aren't met.

func (GetElevatorRequestValidationError) Cause

Cause function returns cause value.

func (GetElevatorRequestValidationError) Error

Error satisfies the builtin error interface

func (GetElevatorRequestValidationError) ErrorName

ErrorName returns error name.

func (GetElevatorRequestValidationError) Field

Field function returns field value.

func (GetElevatorRequestValidationError) Key

Key function returns key value.

func (GetElevatorRequestValidationError) Reason

Reason function returns reason value.

type GetElevatorResponse

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

Response message for rpc `GetElevator`.

func (*GetElevatorResponse) Descriptor deprecated

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

Deprecated: Use GetElevatorResponse.ProtoReflect.Descriptor instead.

func (*GetElevatorResponse) ProtoMessage

func (*GetElevatorResponse) ProtoMessage()

func (*GetElevatorResponse) ProtoReflect added in v0.8.4

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

func (*GetElevatorResponse) Reset

func (x *GetElevatorResponse) Reset()

func (*GetElevatorResponse) String

func (x *GetElevatorResponse) String() string

func (*GetElevatorResponse) Validate

func (m *GetElevatorResponse) Validate() error

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

type GetElevatorResponseValidationError

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

GetElevatorResponseValidationError is the validation error returned by GetElevatorResponse.Validate if the designated constraints aren't met.

func (GetElevatorResponseValidationError) Cause

Cause function returns cause value.

func (GetElevatorResponseValidationError) Error

Error satisfies the builtin error interface

func (GetElevatorResponseValidationError) ErrorName

ErrorName returns error name.

func (GetElevatorResponseValidationError) Field

Field function returns field value.

func (GetElevatorResponseValidationError) Key

Key function returns key value.

func (GetElevatorResponseValidationError) Reason

Reason function returns reason value.

type MruVElevatorsServiceClient

type MruVElevatorsServiceClient interface {
	// Create an elevator.
	CreateElevator(ctx context.Context, in *CreateElevatorRequest, opts ...grpc.CallOption) (*CreateElevatorResponse, error)
	// Get an elevator.
	GetElevator(ctx context.Context, in *GetElevatorRequest, opts ...grpc.CallOption) (*GetElevatorResponse, error)
	// Update an elevator.
	UpdateElevator(ctx context.Context, in *UpdateElevatorRequest, opts ...grpc.CallOption) (*UpdateElevatorResponse, error)
	// Delete an elevator.
	DeleteElevator(ctx context.Context, in *DeleteElevatorRequest, opts ...grpc.CallOption) (*DeleteElevatorResponse, error)
	// Get available elevator floors.
	GetElevatorFloors(ctx context.Context, in *GetElevatorFloorsRequest, opts ...grpc.CallOption) (*GetElevatorFloorsResponse, error)
}

MruVElevatorsServiceClient is the client API for MruVElevatorsService service.

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

type MruVElevatorsServiceServer

type MruVElevatorsServiceServer interface {
	// Create an elevator.
	CreateElevator(context.Context, *CreateElevatorRequest) (*CreateElevatorResponse, error)
	// Get an elevator.
	GetElevator(context.Context, *GetElevatorRequest) (*GetElevatorResponse, error)
	// Update an elevator.
	UpdateElevator(context.Context, *UpdateElevatorRequest) (*UpdateElevatorResponse, error)
	// Delete an elevator.
	DeleteElevator(context.Context, *DeleteElevatorRequest) (*DeleteElevatorResponse, error)
	// Get available elevator floors.
	GetElevatorFloors(context.Context, *GetElevatorFloorsRequest) (*GetElevatorFloorsResponse, error)
}

MruVElevatorsServiceServer is the server API for MruVElevatorsService service.

type UnimplementedMruVElevatorsServiceServer

type UnimplementedMruVElevatorsServiceServer struct {
}

UnimplementedMruVElevatorsServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedMruVElevatorsServiceServer) CreateElevator

func (*UnimplementedMruVElevatorsServiceServer) DeleteElevator

func (*UnimplementedMruVElevatorsServiceServer) GetElevator

func (*UnimplementedMruVElevatorsServiceServer) GetElevatorFloors

func (*UnimplementedMruVElevatorsServiceServer) UpdateElevator

type UpdateElevatorRequest

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

Request message for rpc `UpdateElevator`.

func (*UpdateElevatorRequest) Descriptor deprecated

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

Deprecated: Use UpdateElevatorRequest.ProtoReflect.Descriptor instead.

func (*UpdateElevatorRequest) GetId

func (x *UpdateElevatorRequest) GetId() uint32

func (*UpdateElevatorRequest) ProtoMessage

func (*UpdateElevatorRequest) ProtoMessage()

func (*UpdateElevatorRequest) ProtoReflect added in v0.8.4

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

func (*UpdateElevatorRequest) Reset

func (x *UpdateElevatorRequest) Reset()

func (*UpdateElevatorRequest) String

func (x *UpdateElevatorRequest) String() string

func (*UpdateElevatorRequest) Validate

func (m *UpdateElevatorRequest) Validate() error

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

type UpdateElevatorRequestValidationError

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

UpdateElevatorRequestValidationError is the validation error returned by UpdateElevatorRequest.Validate if the designated constraints aren't met.

func (UpdateElevatorRequestValidationError) Cause

Cause function returns cause value.

func (UpdateElevatorRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateElevatorRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateElevatorRequestValidationError) Field

Field function returns field value.

func (UpdateElevatorRequestValidationError) Key

Key function returns key value.

func (UpdateElevatorRequestValidationError) Reason

Reason function returns reason value.

type UpdateElevatorResponse

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

Response message for rpc `UpdateElevator`.

func (*UpdateElevatorResponse) Descriptor deprecated

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

Deprecated: Use UpdateElevatorResponse.ProtoReflect.Descriptor instead.

func (*UpdateElevatorResponse) ProtoMessage

func (*UpdateElevatorResponse) ProtoMessage()

func (*UpdateElevatorResponse) ProtoReflect added in v0.8.4

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

func (*UpdateElevatorResponse) Reset

func (x *UpdateElevatorResponse) Reset()

func (*UpdateElevatorResponse) String

func (x *UpdateElevatorResponse) String() string

func (*UpdateElevatorResponse) Validate

func (m *UpdateElevatorResponse) Validate() error

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

type UpdateElevatorResponseValidationError

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

UpdateElevatorResponseValidationError is the validation error returned by UpdateElevatorResponse.Validate if the designated constraints aren't met.

func (UpdateElevatorResponseValidationError) Cause

Cause function returns cause value.

func (UpdateElevatorResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateElevatorResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateElevatorResponseValidationError) Field

Field function returns field value.

func (UpdateElevatorResponseValidationError) Key

Key function returns key value.

func (UpdateElevatorResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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