Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterGizmoServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterGizmoServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client GizmoServiceClient) error
- func RegisterGizmoServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterGizmoServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server GizmoServiceServer) error
- func RegisterGizmoServiceServer(s grpc.ServiceRegistrar, srv GizmoServiceServer)
- type DoCommandRequest
- func (*DoCommandRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DoCommandRequest) GetCommand() *structpb.Struct
- func (x *DoCommandRequest) GetName() string
- func (*DoCommandRequest) ProtoMessage()
- func (x *DoCommandRequest) ProtoReflect() protoreflect.Message
- func (x *DoCommandRequest) Reset()
- func (x *DoCommandRequest) String() string
- type DoCommandResponse
- func (*DoCommandResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DoCommandResponse) GetResult() *structpb.Struct
- func (*DoCommandResponse) ProtoMessage()
- func (x *DoCommandResponse) ProtoReflect() protoreflect.Message
- func (x *DoCommandResponse) Reset()
- func (x *DoCommandResponse) String() string
- type DoOneBiDiStreamRequest
- func (*DoOneBiDiStreamRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DoOneBiDiStreamRequest) GetArg1() string
- func (x *DoOneBiDiStreamRequest) GetName() string
- func (*DoOneBiDiStreamRequest) ProtoMessage()
- func (x *DoOneBiDiStreamRequest) ProtoReflect() protoreflect.Message
- func (x *DoOneBiDiStreamRequest) Reset()
- func (x *DoOneBiDiStreamRequest) String() string
- type DoOneBiDiStreamResponse
- func (*DoOneBiDiStreamResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DoOneBiDiStreamResponse) GetRet1() bool
- func (*DoOneBiDiStreamResponse) ProtoMessage()
- func (x *DoOneBiDiStreamResponse) ProtoReflect() protoreflect.Message
- func (x *DoOneBiDiStreamResponse) Reset()
- func (x *DoOneBiDiStreamResponse) String() string
- type DoOneClientStreamRequest
- func (*DoOneClientStreamRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DoOneClientStreamRequest) GetArg1() string
- func (x *DoOneClientStreamRequest) GetName() string
- func (*DoOneClientStreamRequest) ProtoMessage()
- func (x *DoOneClientStreamRequest) ProtoReflect() protoreflect.Message
- func (x *DoOneClientStreamRequest) Reset()
- func (x *DoOneClientStreamRequest) String() string
- type DoOneClientStreamResponse
- func (*DoOneClientStreamResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DoOneClientStreamResponse) GetRet1() bool
- func (*DoOneClientStreamResponse) ProtoMessage()
- func (x *DoOneClientStreamResponse) ProtoReflect() protoreflect.Message
- func (x *DoOneClientStreamResponse) Reset()
- func (x *DoOneClientStreamResponse) String() string
- type DoOneRequest
- func (*DoOneRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DoOneRequest) GetArg1() string
- func (x *DoOneRequest) GetName() string
- func (*DoOneRequest) ProtoMessage()
- func (x *DoOneRequest) ProtoReflect() protoreflect.Message
- func (x *DoOneRequest) Reset()
- func (x *DoOneRequest) String() string
- type DoOneResponse
- type DoOneServerStreamRequest
- func (*DoOneServerStreamRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DoOneServerStreamRequest) GetArg1() string
- func (x *DoOneServerStreamRequest) GetName() string
- func (*DoOneServerStreamRequest) ProtoMessage()
- func (x *DoOneServerStreamRequest) ProtoReflect() protoreflect.Message
- func (x *DoOneServerStreamRequest) Reset()
- func (x *DoOneServerStreamRequest) String() string
- type DoOneServerStreamResponse
- func (*DoOneServerStreamResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DoOneServerStreamResponse) GetRet1() bool
- func (*DoOneServerStreamResponse) ProtoMessage()
- func (x *DoOneServerStreamResponse) ProtoReflect() protoreflect.Message
- func (x *DoOneServerStreamResponse) Reset()
- func (x *DoOneServerStreamResponse) String() string
- type DoTwoRequest
- func (*DoTwoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DoTwoRequest) GetArg1() bool
- func (x *DoTwoRequest) GetName() string
- func (*DoTwoRequest) ProtoMessage()
- func (x *DoTwoRequest) ProtoReflect() protoreflect.Message
- func (x *DoTwoRequest) Reset()
- func (x *DoTwoRequest) String() string
- type DoTwoResponse
- type GizmoServiceClient
- type GizmoServiceServer
- type GizmoService_DoOneBiDiStreamClient
- type GizmoService_DoOneBiDiStreamServer
- type GizmoService_DoOneClientStreamClient
- type GizmoService_DoOneClientStreamServer
- type GizmoService_DoOneServerStreamClient
- type GizmoService_DoOneServerStreamServer
- type UnimplementedGizmoServiceServer
- func (UnimplementedGizmoServiceServer) DoCommand(context.Context, *DoCommandRequest) (*DoCommandResponse, error)
- func (UnimplementedGizmoServiceServer) DoOne(context.Context, *DoOneRequest) (*DoOneResponse, error)
- func (UnimplementedGizmoServiceServer) DoOneBiDiStream(GizmoService_DoOneBiDiStreamServer) error
- func (UnimplementedGizmoServiceServer) DoOneClientStream(GizmoService_DoOneClientStreamServer) error
- func (UnimplementedGizmoServiceServer) DoOneServerStream(*DoOneServerStreamRequest, GizmoService_DoOneServerStreamServer) error
- func (UnimplementedGizmoServiceServer) DoTwo(context.Context, *DoTwoRequest) (*DoTwoResponse, error)
- type UnsafeGizmoServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_api_component_gizmo_v1_gizmo_proto protoreflect.FileDescriptor
var GizmoService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "acme.component.gizmo.v1.GizmoService", HandlerType: (*GizmoServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "DoOne", Handler: _GizmoService_DoOne_Handler, }, { MethodName: "DoTwo", Handler: _GizmoService_DoTwo_Handler, }, { MethodName: "DoCommand", Handler: _GizmoService_DoCommand_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "DoOneClientStream", Handler: _GizmoService_DoOneClientStream_Handler, ClientStreams: true, }, { StreamName: "DoOneServerStream", Handler: _GizmoService_DoOneServerStream_Handler, ServerStreams: true, }, { StreamName: "DoOneBiDiStream", Handler: _GizmoService_DoOneBiDiStream_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "api/component/gizmo/v1/gizmo.proto", }
GizmoService_ServiceDesc is the grpc.ServiceDesc for GizmoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGizmoServiceHandler ¶
func RegisterGizmoServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterGizmoServiceHandler registers the http handlers for service GizmoService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterGizmoServiceHandlerClient ¶
func RegisterGizmoServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client GizmoServiceClient) error
RegisterGizmoServiceHandlerClient registers the http handlers for service GizmoService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "GizmoServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "GizmoServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "GizmoServiceClient" to call the correct interceptors.
func RegisterGizmoServiceHandlerFromEndpoint ¶
func RegisterGizmoServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterGizmoServiceHandlerFromEndpoint is same as RegisterGizmoServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterGizmoServiceHandlerServer ¶
func RegisterGizmoServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server GizmoServiceServer) error
RegisterGizmoServiceHandlerServer registers the http handlers for service GizmoService to "mux". UnaryRPC :call GizmoServiceServer 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 RegisterGizmoServiceHandlerFromEndpoint instead.
func RegisterGizmoServiceServer ¶
func RegisterGizmoServiceServer(s grpc.ServiceRegistrar, srv GizmoServiceServer)
Types ¶
type DoCommandRequest ¶ added in v0.2.25
type DoCommandRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Command *structpb.Struct `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"` // contains filtered or unexported fields }
func (*DoCommandRequest) Descriptor
deprecated
added in
v0.2.25
func (*DoCommandRequest) Descriptor() ([]byte, []int)
Deprecated: Use DoCommandRequest.ProtoReflect.Descriptor instead.
func (*DoCommandRequest) GetCommand ¶ added in v0.2.25
func (x *DoCommandRequest) GetCommand() *structpb.Struct
func (*DoCommandRequest) GetName ¶ added in v0.2.25
func (x *DoCommandRequest) GetName() string
func (*DoCommandRequest) ProtoMessage ¶ added in v0.2.25
func (*DoCommandRequest) ProtoMessage()
func (*DoCommandRequest) ProtoReflect ¶ added in v0.2.25
func (x *DoCommandRequest) ProtoReflect() protoreflect.Message
func (*DoCommandRequest) Reset ¶ added in v0.2.25
func (x *DoCommandRequest) Reset()
func (*DoCommandRequest) String ¶ added in v0.2.25
func (x *DoCommandRequest) String() string
type DoCommandResponse ¶ added in v0.2.25
type DoCommandResponse struct { Result *structpb.Struct `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*DoCommandResponse) Descriptor
deprecated
added in
v0.2.25
func (*DoCommandResponse) Descriptor() ([]byte, []int)
Deprecated: Use DoCommandResponse.ProtoReflect.Descriptor instead.
func (*DoCommandResponse) GetResult ¶ added in v0.2.25
func (x *DoCommandResponse) GetResult() *structpb.Struct
func (*DoCommandResponse) ProtoMessage ¶ added in v0.2.25
func (*DoCommandResponse) ProtoMessage()
func (*DoCommandResponse) ProtoReflect ¶ added in v0.2.25
func (x *DoCommandResponse) ProtoReflect() protoreflect.Message
func (*DoCommandResponse) Reset ¶ added in v0.2.25
func (x *DoCommandResponse) Reset()
func (*DoCommandResponse) String ¶ added in v0.2.25
func (x *DoCommandResponse) String() string
type DoOneBiDiStreamRequest ¶
type DoOneBiDiStreamRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Arg1 string `protobuf:"bytes,2,opt,name=arg1,proto3" json:"arg1,omitempty"` // contains filtered or unexported fields }
func (*DoOneBiDiStreamRequest) Descriptor
deprecated
func (*DoOneBiDiStreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use DoOneBiDiStreamRequest.ProtoReflect.Descriptor instead.
func (*DoOneBiDiStreamRequest) GetArg1 ¶
func (x *DoOneBiDiStreamRequest) GetArg1() string
func (*DoOneBiDiStreamRequest) GetName ¶
func (x *DoOneBiDiStreamRequest) GetName() string
func (*DoOneBiDiStreamRequest) ProtoMessage ¶
func (*DoOneBiDiStreamRequest) ProtoMessage()
func (*DoOneBiDiStreamRequest) ProtoReflect ¶
func (x *DoOneBiDiStreamRequest) ProtoReflect() protoreflect.Message
func (*DoOneBiDiStreamRequest) Reset ¶
func (x *DoOneBiDiStreamRequest) Reset()
func (*DoOneBiDiStreamRequest) String ¶
func (x *DoOneBiDiStreamRequest) String() string
type DoOneBiDiStreamResponse ¶
type DoOneBiDiStreamResponse struct { Ret1 bool `protobuf:"varint,1,opt,name=ret1,proto3" json:"ret1,omitempty"` // contains filtered or unexported fields }
func (*DoOneBiDiStreamResponse) Descriptor
deprecated
func (*DoOneBiDiStreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use DoOneBiDiStreamResponse.ProtoReflect.Descriptor instead.
func (*DoOneBiDiStreamResponse) GetRet1 ¶
func (x *DoOneBiDiStreamResponse) GetRet1() bool
func (*DoOneBiDiStreamResponse) ProtoMessage ¶
func (*DoOneBiDiStreamResponse) ProtoMessage()
func (*DoOneBiDiStreamResponse) ProtoReflect ¶
func (x *DoOneBiDiStreamResponse) ProtoReflect() protoreflect.Message
func (*DoOneBiDiStreamResponse) Reset ¶
func (x *DoOneBiDiStreamResponse) Reset()
func (*DoOneBiDiStreamResponse) String ¶
func (x *DoOneBiDiStreamResponse) String() string
type DoOneClientStreamRequest ¶
type DoOneClientStreamRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Arg1 string `protobuf:"bytes,2,opt,name=arg1,proto3" json:"arg1,omitempty"` // contains filtered or unexported fields }
func (*DoOneClientStreamRequest) Descriptor
deprecated
func (*DoOneClientStreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use DoOneClientStreamRequest.ProtoReflect.Descriptor instead.
func (*DoOneClientStreamRequest) GetArg1 ¶
func (x *DoOneClientStreamRequest) GetArg1() string
func (*DoOneClientStreamRequest) GetName ¶
func (x *DoOneClientStreamRequest) GetName() string
func (*DoOneClientStreamRequest) ProtoMessage ¶
func (*DoOneClientStreamRequest) ProtoMessage()
func (*DoOneClientStreamRequest) ProtoReflect ¶
func (x *DoOneClientStreamRequest) ProtoReflect() protoreflect.Message
func (*DoOneClientStreamRequest) Reset ¶
func (x *DoOneClientStreamRequest) Reset()
func (*DoOneClientStreamRequest) String ¶
func (x *DoOneClientStreamRequest) String() string
type DoOneClientStreamResponse ¶
type DoOneClientStreamResponse struct { Ret1 bool `protobuf:"varint,1,opt,name=ret1,proto3" json:"ret1,omitempty"` // contains filtered or unexported fields }
func (*DoOneClientStreamResponse) Descriptor
deprecated
func (*DoOneClientStreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use DoOneClientStreamResponse.ProtoReflect.Descriptor instead.
func (*DoOneClientStreamResponse) GetRet1 ¶
func (x *DoOneClientStreamResponse) GetRet1() bool
func (*DoOneClientStreamResponse) ProtoMessage ¶
func (*DoOneClientStreamResponse) ProtoMessage()
func (*DoOneClientStreamResponse) ProtoReflect ¶
func (x *DoOneClientStreamResponse) ProtoReflect() protoreflect.Message
func (*DoOneClientStreamResponse) Reset ¶
func (x *DoOneClientStreamResponse) Reset()
func (*DoOneClientStreamResponse) String ¶
func (x *DoOneClientStreamResponse) String() string
type DoOneRequest ¶
type DoOneRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Arg1 string `protobuf:"bytes,2,opt,name=arg1,proto3" json:"arg1,omitempty"` // contains filtered or unexported fields }
func (*DoOneRequest) Descriptor
deprecated
func (*DoOneRequest) Descriptor() ([]byte, []int)
Deprecated: Use DoOneRequest.ProtoReflect.Descriptor instead.
func (*DoOneRequest) GetArg1 ¶
func (x *DoOneRequest) GetArg1() string
func (*DoOneRequest) GetName ¶
func (x *DoOneRequest) GetName() string
func (*DoOneRequest) ProtoMessage ¶
func (*DoOneRequest) ProtoMessage()
func (*DoOneRequest) ProtoReflect ¶
func (x *DoOneRequest) ProtoReflect() protoreflect.Message
func (*DoOneRequest) Reset ¶
func (x *DoOneRequest) Reset()
func (*DoOneRequest) String ¶
func (x *DoOneRequest) String() string
type DoOneResponse ¶
type DoOneResponse struct { Ret1 bool `protobuf:"varint,1,opt,name=ret1,proto3" json:"ret1,omitempty"` // contains filtered or unexported fields }
func (*DoOneResponse) Descriptor
deprecated
func (*DoOneResponse) Descriptor() ([]byte, []int)
Deprecated: Use DoOneResponse.ProtoReflect.Descriptor instead.
func (*DoOneResponse) GetRet1 ¶
func (x *DoOneResponse) GetRet1() bool
func (*DoOneResponse) ProtoMessage ¶
func (*DoOneResponse) ProtoMessage()
func (*DoOneResponse) ProtoReflect ¶
func (x *DoOneResponse) ProtoReflect() protoreflect.Message
func (*DoOneResponse) Reset ¶
func (x *DoOneResponse) Reset()
func (*DoOneResponse) String ¶
func (x *DoOneResponse) String() string
type DoOneServerStreamRequest ¶
type DoOneServerStreamRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Arg1 string `protobuf:"bytes,2,opt,name=arg1,proto3" json:"arg1,omitempty"` // contains filtered or unexported fields }
func (*DoOneServerStreamRequest) Descriptor
deprecated
func (*DoOneServerStreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use DoOneServerStreamRequest.ProtoReflect.Descriptor instead.
func (*DoOneServerStreamRequest) GetArg1 ¶
func (x *DoOneServerStreamRequest) GetArg1() string
func (*DoOneServerStreamRequest) GetName ¶
func (x *DoOneServerStreamRequest) GetName() string
func (*DoOneServerStreamRequest) ProtoMessage ¶
func (*DoOneServerStreamRequest) ProtoMessage()
func (*DoOneServerStreamRequest) ProtoReflect ¶
func (x *DoOneServerStreamRequest) ProtoReflect() protoreflect.Message
func (*DoOneServerStreamRequest) Reset ¶
func (x *DoOneServerStreamRequest) Reset()
func (*DoOneServerStreamRequest) String ¶
func (x *DoOneServerStreamRequest) String() string
type DoOneServerStreamResponse ¶
type DoOneServerStreamResponse struct { Ret1 bool `protobuf:"varint,1,opt,name=ret1,proto3" json:"ret1,omitempty"` // contains filtered or unexported fields }
func (*DoOneServerStreamResponse) Descriptor
deprecated
func (*DoOneServerStreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use DoOneServerStreamResponse.ProtoReflect.Descriptor instead.
func (*DoOneServerStreamResponse) GetRet1 ¶
func (x *DoOneServerStreamResponse) GetRet1() bool
func (*DoOneServerStreamResponse) ProtoMessage ¶
func (*DoOneServerStreamResponse) ProtoMessage()
func (*DoOneServerStreamResponse) ProtoReflect ¶
func (x *DoOneServerStreamResponse) ProtoReflect() protoreflect.Message
func (*DoOneServerStreamResponse) Reset ¶
func (x *DoOneServerStreamResponse) Reset()
func (*DoOneServerStreamResponse) String ¶
func (x *DoOneServerStreamResponse) String() string
type DoTwoRequest ¶
type DoTwoRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Arg1 bool `protobuf:"varint,2,opt,name=arg1,proto3" json:"arg1,omitempty"` // contains filtered or unexported fields }
func (*DoTwoRequest) Descriptor
deprecated
func (*DoTwoRequest) Descriptor() ([]byte, []int)
Deprecated: Use DoTwoRequest.ProtoReflect.Descriptor instead.
func (*DoTwoRequest) GetArg1 ¶
func (x *DoTwoRequest) GetArg1() bool
func (*DoTwoRequest) GetName ¶
func (x *DoTwoRequest) GetName() string
func (*DoTwoRequest) ProtoMessage ¶
func (*DoTwoRequest) ProtoMessage()
func (*DoTwoRequest) ProtoReflect ¶
func (x *DoTwoRequest) ProtoReflect() protoreflect.Message
func (*DoTwoRequest) Reset ¶
func (x *DoTwoRequest) Reset()
func (*DoTwoRequest) String ¶
func (x *DoTwoRequest) String() string
type DoTwoResponse ¶
type DoTwoResponse struct { Ret1 string `protobuf:"bytes,1,opt,name=ret1,proto3" json:"ret1,omitempty"` // contains filtered or unexported fields }
func (*DoTwoResponse) Descriptor
deprecated
func (*DoTwoResponse) Descriptor() ([]byte, []int)
Deprecated: Use DoTwoResponse.ProtoReflect.Descriptor instead.
func (*DoTwoResponse) GetRet1 ¶
func (x *DoTwoResponse) GetRet1() string
func (*DoTwoResponse) ProtoMessage ¶
func (*DoTwoResponse) ProtoMessage()
func (*DoTwoResponse) ProtoReflect ¶
func (x *DoTwoResponse) ProtoReflect() protoreflect.Message
func (*DoTwoResponse) Reset ¶
func (x *DoTwoResponse) Reset()
func (*DoTwoResponse) String ¶
func (x *DoTwoResponse) String() string
type GizmoServiceClient ¶
type GizmoServiceClient interface { DoOne(ctx context.Context, in *DoOneRequest, opts ...grpc.CallOption) (*DoOneResponse, error) DoOneClientStream(ctx context.Context, opts ...grpc.CallOption) (GizmoService_DoOneClientStreamClient, error) DoOneServerStream(ctx context.Context, in *DoOneServerStreamRequest, opts ...grpc.CallOption) (GizmoService_DoOneServerStreamClient, error) DoOneBiDiStream(ctx context.Context, opts ...grpc.CallOption) (GizmoService_DoOneBiDiStreamClient, error) DoTwo(ctx context.Context, in *DoTwoRequest, opts ...grpc.CallOption) (*DoTwoResponse, error) DoCommand(ctx context.Context, in *DoCommandRequest, opts ...grpc.CallOption) (*DoCommandResponse, error) }
GizmoServiceClient is the client API for GizmoService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewGizmoServiceClient ¶
func NewGizmoServiceClient(cc grpc.ClientConnInterface) GizmoServiceClient
type GizmoServiceServer ¶
type GizmoServiceServer interface { DoOne(context.Context, *DoOneRequest) (*DoOneResponse, error) DoOneClientStream(GizmoService_DoOneClientStreamServer) error DoOneServerStream(*DoOneServerStreamRequest, GizmoService_DoOneServerStreamServer) error DoOneBiDiStream(GizmoService_DoOneBiDiStreamServer) error DoTwo(context.Context, *DoTwoRequest) (*DoTwoResponse, error) DoCommand(context.Context, *DoCommandRequest) (*DoCommandResponse, error) // contains filtered or unexported methods }
GizmoServiceServer is the server API for GizmoService service. All implementations must embed UnimplementedGizmoServiceServer for forward compatibility
type GizmoService_DoOneBiDiStreamClient ¶
type GizmoService_DoOneBiDiStreamClient interface { Send(*DoOneBiDiStreamRequest) error Recv() (*DoOneBiDiStreamResponse, error) grpc.ClientStream }
type GizmoService_DoOneBiDiStreamServer ¶
type GizmoService_DoOneBiDiStreamServer interface { Send(*DoOneBiDiStreamResponse) error Recv() (*DoOneBiDiStreamRequest, error) grpc.ServerStream }
type GizmoService_DoOneClientStreamClient ¶
type GizmoService_DoOneClientStreamClient interface { Send(*DoOneClientStreamRequest) error CloseAndRecv() (*DoOneClientStreamResponse, error) grpc.ClientStream }
type GizmoService_DoOneClientStreamServer ¶
type GizmoService_DoOneClientStreamServer interface { SendAndClose(*DoOneClientStreamResponse) error Recv() (*DoOneClientStreamRequest, error) grpc.ServerStream }
type GizmoService_DoOneServerStreamClient ¶
type GizmoService_DoOneServerStreamClient interface { Recv() (*DoOneServerStreamResponse, error) grpc.ClientStream }
type GizmoService_DoOneServerStreamServer ¶
type GizmoService_DoOneServerStreamServer interface { Send(*DoOneServerStreamResponse) error grpc.ServerStream }
type UnimplementedGizmoServiceServer ¶
type UnimplementedGizmoServiceServer struct { }
UnimplementedGizmoServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedGizmoServiceServer) DoCommand ¶ added in v0.2.25
func (UnimplementedGizmoServiceServer) DoCommand(context.Context, *DoCommandRequest) (*DoCommandResponse, error)
func (UnimplementedGizmoServiceServer) DoOne ¶
func (UnimplementedGizmoServiceServer) DoOne(context.Context, *DoOneRequest) (*DoOneResponse, error)
func (UnimplementedGizmoServiceServer) DoOneBiDiStream ¶
func (UnimplementedGizmoServiceServer) DoOneBiDiStream(GizmoService_DoOneBiDiStreamServer) error
func (UnimplementedGizmoServiceServer) DoOneClientStream ¶
func (UnimplementedGizmoServiceServer) DoOneClientStream(GizmoService_DoOneClientStreamServer) error
func (UnimplementedGizmoServiceServer) DoOneServerStream ¶
func (UnimplementedGizmoServiceServer) DoOneServerStream(*DoOneServerStreamRequest, GizmoService_DoOneServerStreamServer) error
func (UnimplementedGizmoServiceServer) DoTwo ¶
func (UnimplementedGizmoServiceServer) DoTwo(context.Context, *DoTwoRequest) (*DoTwoResponse, error)
type UnsafeGizmoServiceServer ¶
type UnsafeGizmoServiceServer interface {
// contains filtered or unexported methods
}
UnsafeGizmoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GizmoServiceServer will result in compilation errors.