Documentation ¶
Overview ¶
Package elevators is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterMruVElevatorsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMruVElevatorsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MruVElevatorsServiceClient) error
- func RegisterMruVElevatorsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMruVElevatorsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MruVElevatorsServiceServer) error
- func RegisterMruVElevatorsServiceServer(s *grpc.Server, srv MruVElevatorsServiceServer)
- type CreateElevatorRequest
- func (*CreateElevatorRequest) Descriptor() ([]byte, []int)deprecated
- func (*CreateElevatorRequest) ProtoMessage()
- func (x *CreateElevatorRequest) ProtoReflect() protoreflect.Message
- func (x *CreateElevatorRequest) Reset()
- func (x *CreateElevatorRequest) String() string
- func (m *CreateElevatorRequest) Validate() error
- type CreateElevatorRequestValidationError
- func (e CreateElevatorRequestValidationError) Cause() error
- func (e CreateElevatorRequestValidationError) Error() string
- func (e CreateElevatorRequestValidationError) ErrorName() string
- func (e CreateElevatorRequestValidationError) Field() string
- func (e CreateElevatorRequestValidationError) Key() bool
- func (e CreateElevatorRequestValidationError) Reason() string
- type CreateElevatorResponse
- func (*CreateElevatorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateElevatorResponse) GetId() uint32
- func (*CreateElevatorResponse) ProtoMessage()
- func (x *CreateElevatorResponse) ProtoReflect() protoreflect.Message
- func (x *CreateElevatorResponse) Reset()
- func (x *CreateElevatorResponse) String() string
- func (m *CreateElevatorResponse) Validate() error
- type CreateElevatorResponseValidationError
- func (e CreateElevatorResponseValidationError) Cause() error
- func (e CreateElevatorResponseValidationError) Error() string
- func (e CreateElevatorResponseValidationError) ErrorName() string
- func (e CreateElevatorResponseValidationError) Field() string
- func (e CreateElevatorResponseValidationError) Key() bool
- func (e CreateElevatorResponseValidationError) Reason() string
- type DeleteElevatorRequest
- func (*DeleteElevatorRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteElevatorRequest) GetId() uint32
- func (*DeleteElevatorRequest) ProtoMessage()
- func (x *DeleteElevatorRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteElevatorRequest) Reset()
- func (x *DeleteElevatorRequest) String() string
- func (m *DeleteElevatorRequest) Validate() error
- type DeleteElevatorRequestValidationError
- func (e DeleteElevatorRequestValidationError) Cause() error
- func (e DeleteElevatorRequestValidationError) Error() string
- func (e DeleteElevatorRequestValidationError) ErrorName() string
- func (e DeleteElevatorRequestValidationError) Field() string
- func (e DeleteElevatorRequestValidationError) Key() bool
- func (e DeleteElevatorRequestValidationError) Reason() string
- type DeleteElevatorResponse
- func (*DeleteElevatorResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteElevatorResponse) ProtoMessage()
- func (x *DeleteElevatorResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteElevatorResponse) Reset()
- func (x *DeleteElevatorResponse) String() string
- func (m *DeleteElevatorResponse) Validate() error
- type DeleteElevatorResponseValidationError
- func (e DeleteElevatorResponseValidationError) Cause() error
- func (e DeleteElevatorResponseValidationError) Error() string
- func (e DeleteElevatorResponseValidationError) ErrorName() string
- func (e DeleteElevatorResponseValidationError) Field() string
- func (e DeleteElevatorResponseValidationError) Key() bool
- func (e DeleteElevatorResponseValidationError) Reason() string
- type GetElevatorFloorsRequest
- func (*GetElevatorFloorsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetElevatorFloorsRequest) GetId() uint32
- func (*GetElevatorFloorsRequest) ProtoMessage()
- func (x *GetElevatorFloorsRequest) ProtoReflect() protoreflect.Message
- func (x *GetElevatorFloorsRequest) Reset()
- func (x *GetElevatorFloorsRequest) String() string
- func (m *GetElevatorFloorsRequest) Validate() error
- type GetElevatorFloorsRequestValidationError
- func (e GetElevatorFloorsRequestValidationError) Cause() error
- func (e GetElevatorFloorsRequestValidationError) Error() string
- func (e GetElevatorFloorsRequestValidationError) ErrorName() string
- func (e GetElevatorFloorsRequestValidationError) Field() string
- func (e GetElevatorFloorsRequestValidationError) Key() bool
- func (e GetElevatorFloorsRequestValidationError) Reason() string
- type GetElevatorFloorsResponse
- func (*GetElevatorFloorsResponse) Descriptor() ([]byte, []int)deprecated
- func (*GetElevatorFloorsResponse) ProtoMessage()
- func (x *GetElevatorFloorsResponse) ProtoReflect() protoreflect.Message
- func (x *GetElevatorFloorsResponse) Reset()
- func (x *GetElevatorFloorsResponse) String() string
- func (m *GetElevatorFloorsResponse) Validate() error
- type GetElevatorFloorsResponseValidationError
- func (e GetElevatorFloorsResponseValidationError) Cause() error
- func (e GetElevatorFloorsResponseValidationError) Error() string
- func (e GetElevatorFloorsResponseValidationError) ErrorName() string
- func (e GetElevatorFloorsResponseValidationError) Field() string
- func (e GetElevatorFloorsResponseValidationError) Key() bool
- func (e GetElevatorFloorsResponseValidationError) Reason() string
- type GetElevatorRequest
- func (*GetElevatorRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetElevatorRequest) GetId() uint32
- func (*GetElevatorRequest) ProtoMessage()
- func (x *GetElevatorRequest) ProtoReflect() protoreflect.Message
- func (x *GetElevatorRequest) Reset()
- func (x *GetElevatorRequest) String() string
- func (m *GetElevatorRequest) Validate() error
- type GetElevatorRequestValidationError
- func (e GetElevatorRequestValidationError) Cause() error
- func (e GetElevatorRequestValidationError) Error() string
- func (e GetElevatorRequestValidationError) ErrorName() string
- func (e GetElevatorRequestValidationError) Field() string
- func (e GetElevatorRequestValidationError) Key() bool
- func (e GetElevatorRequestValidationError) Reason() string
- type GetElevatorResponse
- func (*GetElevatorResponse) Descriptor() ([]byte, []int)deprecated
- func (*GetElevatorResponse) ProtoMessage()
- func (x *GetElevatorResponse) ProtoReflect() protoreflect.Message
- func (x *GetElevatorResponse) Reset()
- func (x *GetElevatorResponse) String() string
- func (m *GetElevatorResponse) Validate() error
- type GetElevatorResponseValidationError
- func (e GetElevatorResponseValidationError) Cause() error
- func (e GetElevatorResponseValidationError) Error() string
- func (e GetElevatorResponseValidationError) ErrorName() string
- func (e GetElevatorResponseValidationError) Field() string
- func (e GetElevatorResponseValidationError) Key() bool
- func (e GetElevatorResponseValidationError) Reason() string
- type MruVElevatorsServiceClient
- type MruVElevatorsServiceServer
- type UnimplementedMruVElevatorsServiceServer
- func (*UnimplementedMruVElevatorsServiceServer) CreateElevator(context.Context, *CreateElevatorRequest) (*CreateElevatorResponse, error)
- func (*UnimplementedMruVElevatorsServiceServer) DeleteElevator(context.Context, *DeleteElevatorRequest) (*DeleteElevatorResponse, error)
- func (*UnimplementedMruVElevatorsServiceServer) GetElevator(context.Context, *GetElevatorRequest) (*GetElevatorResponse, error)
- func (*UnimplementedMruVElevatorsServiceServer) GetElevatorFloors(context.Context, *GetElevatorFloorsRequest) (*GetElevatorFloorsResponse, error)
- func (*UnimplementedMruVElevatorsServiceServer) UpdateElevator(context.Context, *UpdateElevatorRequest) (*UpdateElevatorResponse, error)
- type UpdateElevatorRequest
- func (*UpdateElevatorRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateElevatorRequest) GetId() uint32
- func (*UpdateElevatorRequest) ProtoMessage()
- func (x *UpdateElevatorRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateElevatorRequest) Reset()
- func (x *UpdateElevatorRequest) String() string
- func (m *UpdateElevatorRequest) Validate() error
- type UpdateElevatorRequestValidationError
- func (e UpdateElevatorRequestValidationError) Cause() error
- func (e UpdateElevatorRequestValidationError) Error() string
- func (e UpdateElevatorRequestValidationError) ErrorName() string
- func (e UpdateElevatorRequestValidationError) Field() string
- func (e UpdateElevatorRequestValidationError) Key() bool
- func (e UpdateElevatorRequestValidationError) Reason() string
- type UpdateElevatorResponse
- func (*UpdateElevatorResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateElevatorResponse) ProtoMessage()
- func (x *UpdateElevatorResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateElevatorResponse) Reset()
- func (x *UpdateElevatorResponse) String() string
- func (m *UpdateElevatorResponse) Validate() error
- type UpdateElevatorResponseValidationError
- func (e UpdateElevatorResponseValidationError) Cause() error
- func (e UpdateElevatorResponseValidationError) Error() string
- func (e UpdateElevatorResponseValidationError) ErrorName() string
- func (e UpdateElevatorResponseValidationError) Field() string
- func (e UpdateElevatorResponseValidationError) Key() bool
- func (e UpdateElevatorResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
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 ¶
func (e CreateElevatorRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateElevatorRequestValidationError) Error ¶
func (e CreateElevatorRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateElevatorRequestValidationError) ErrorName ¶
func (e CreateElevatorRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateElevatorRequestValidationError) Field ¶
func (e CreateElevatorRequestValidationError) Field() string
Field function returns field value.
func (CreateElevatorRequestValidationError) Key ¶
func (e CreateElevatorRequestValidationError) Key() bool
Key function returns key value.
func (CreateElevatorRequestValidationError) Reason ¶
func (e CreateElevatorRequestValidationError) Reason() string
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 ¶
func (e CreateElevatorResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateElevatorResponseValidationError) Error ¶
func (e CreateElevatorResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateElevatorResponseValidationError) ErrorName ¶
func (e CreateElevatorResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateElevatorResponseValidationError) Field ¶
func (e CreateElevatorResponseValidationError) Field() string
Field function returns field value.
func (CreateElevatorResponseValidationError) Key ¶
func (e CreateElevatorResponseValidationError) Key() bool
Key function returns key value.
func (CreateElevatorResponseValidationError) Reason ¶
func (e CreateElevatorResponseValidationError) Reason() string
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 ¶
func (e DeleteElevatorRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteElevatorRequestValidationError) Error ¶
func (e DeleteElevatorRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteElevatorRequestValidationError) ErrorName ¶
func (e DeleteElevatorRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteElevatorRequestValidationError) Field ¶
func (e DeleteElevatorRequestValidationError) Field() string
Field function returns field value.
func (DeleteElevatorRequestValidationError) Key ¶
func (e DeleteElevatorRequestValidationError) Key() bool
Key function returns key value.
func (DeleteElevatorRequestValidationError) Reason ¶
func (e DeleteElevatorRequestValidationError) Reason() string
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 ¶
func (e DeleteElevatorResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteElevatorResponseValidationError) Error ¶
func (e DeleteElevatorResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteElevatorResponseValidationError) ErrorName ¶
func (e DeleteElevatorResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteElevatorResponseValidationError) Field ¶
func (e DeleteElevatorResponseValidationError) Field() string
Field function returns field value.
func (DeleteElevatorResponseValidationError) Key ¶
func (e DeleteElevatorResponseValidationError) Key() bool
Key function returns key value.
func (DeleteElevatorResponseValidationError) Reason ¶
func (e DeleteElevatorResponseValidationError) Reason() string
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 ¶
func (e GetElevatorFloorsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetElevatorFloorsRequestValidationError) Error ¶
func (e GetElevatorFloorsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetElevatorFloorsRequestValidationError) ErrorName ¶
func (e GetElevatorFloorsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetElevatorFloorsRequestValidationError) Field ¶
func (e GetElevatorFloorsRequestValidationError) Field() string
Field function returns field value.
func (GetElevatorFloorsRequestValidationError) Key ¶
func (e GetElevatorFloorsRequestValidationError) Key() bool
Key function returns key value.
func (GetElevatorFloorsRequestValidationError) Reason ¶
func (e GetElevatorFloorsRequestValidationError) Reason() string
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 (x *GetElevatorFloorsResponse) ProtoReflect() protoreflect.Message
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 ¶
func (e GetElevatorFloorsResponseValidationError) Cause() error
Cause function returns cause value.
func (GetElevatorFloorsResponseValidationError) Error ¶
func (e GetElevatorFloorsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetElevatorFloorsResponseValidationError) ErrorName ¶
func (e GetElevatorFloorsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetElevatorFloorsResponseValidationError) Field ¶
func (e GetElevatorFloorsResponseValidationError) Field() string
Field function returns field value.
func (GetElevatorFloorsResponseValidationError) Key ¶
func (e GetElevatorFloorsResponseValidationError) Key() bool
Key function returns key value.
func (GetElevatorFloorsResponseValidationError) Reason ¶
func (e GetElevatorFloorsResponseValidationError) Reason() string
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 ¶
func (e GetElevatorRequestValidationError) Cause() error
Cause function returns cause value.
func (GetElevatorRequestValidationError) Error ¶
func (e GetElevatorRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetElevatorRequestValidationError) ErrorName ¶
func (e GetElevatorRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetElevatorRequestValidationError) Field ¶
func (e GetElevatorRequestValidationError) Field() string
Field function returns field value.
func (GetElevatorRequestValidationError) Key ¶
func (e GetElevatorRequestValidationError) Key() bool
Key function returns key value.
func (GetElevatorRequestValidationError) Reason ¶
func (e GetElevatorRequestValidationError) Reason() string
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 ¶
func (e GetElevatorResponseValidationError) Cause() error
Cause function returns cause value.
func (GetElevatorResponseValidationError) Error ¶
func (e GetElevatorResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetElevatorResponseValidationError) ErrorName ¶
func (e GetElevatorResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetElevatorResponseValidationError) Field ¶
func (e GetElevatorResponseValidationError) Field() string
Field function returns field value.
func (GetElevatorResponseValidationError) Key ¶
func (e GetElevatorResponseValidationError) Key() bool
Key function returns key value.
func (GetElevatorResponseValidationError) Reason ¶
func (e GetElevatorResponseValidationError) Reason() string
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.
func NewMruVElevatorsServiceClient ¶
func NewMruVElevatorsServiceClient(cc grpc.ClientConnInterface) MruVElevatorsServiceClient
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) CreateElevator(context.Context, *CreateElevatorRequest) (*CreateElevatorResponse, error)
func (*UnimplementedMruVElevatorsServiceServer) DeleteElevator ¶
func (*UnimplementedMruVElevatorsServiceServer) DeleteElevator(context.Context, *DeleteElevatorRequest) (*DeleteElevatorResponse, error)
func (*UnimplementedMruVElevatorsServiceServer) GetElevator ¶
func (*UnimplementedMruVElevatorsServiceServer) GetElevator(context.Context, *GetElevatorRequest) (*GetElevatorResponse, error)
func (*UnimplementedMruVElevatorsServiceServer) GetElevatorFloors ¶
func (*UnimplementedMruVElevatorsServiceServer) GetElevatorFloors(context.Context, *GetElevatorFloorsRequest) (*GetElevatorFloorsResponse, error)
func (*UnimplementedMruVElevatorsServiceServer) UpdateElevator ¶
func (*UnimplementedMruVElevatorsServiceServer) UpdateElevator(context.Context, *UpdateElevatorRequest) (*UpdateElevatorResponse, error)
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 ¶
func (e UpdateElevatorRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateElevatorRequestValidationError) Error ¶
func (e UpdateElevatorRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateElevatorRequestValidationError) ErrorName ¶
func (e UpdateElevatorRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateElevatorRequestValidationError) Field ¶
func (e UpdateElevatorRequestValidationError) Field() string
Field function returns field value.
func (UpdateElevatorRequestValidationError) Key ¶
func (e UpdateElevatorRequestValidationError) Key() bool
Key function returns key value.
func (UpdateElevatorRequestValidationError) Reason ¶
func (e UpdateElevatorRequestValidationError) Reason() string
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 ¶
func (e UpdateElevatorResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateElevatorResponseValidationError) Error ¶
func (e UpdateElevatorResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateElevatorResponseValidationError) ErrorName ¶
func (e UpdateElevatorResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateElevatorResponseValidationError) Field ¶
func (e UpdateElevatorResponseValidationError) Field() string
Field function returns field value.
func (UpdateElevatorResponseValidationError) Key ¶
func (e UpdateElevatorResponseValidationError) Key() bool
Key function returns key value.
func (UpdateElevatorResponseValidationError) Reason ¶
func (e UpdateElevatorResponseValidationError) Reason() string
Reason function returns reason value.