Documentation ¶
Overview ¶
Package taskmanagementv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterTaskManagementServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterTaskManagementServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TaskManagementServiceClient) error
- func RegisterTaskManagementServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterTaskManagementServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TaskManagementServiceServer) error
- func RegisterTaskManagementServiceServer(s grpc.ServiceRegistrar, srv TaskManagementServiceServer)
- type HealthRequest
- type HealthResponse
- type TaskManagementServiceClient
- type TaskManagementServiceServer
- type UnimplementedTaskManagementServiceServer
- type UnsafeTaskManagementServiceServer
Constants ¶
const (
TaskManagementService_Health_FullMethodName = "/taskmanagement.v1.TaskManagementService/Health"
)
Variables ¶
var File_taskmanagement_v1_taskmanagement_proto protoreflect.FileDescriptor
var TaskManagementService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "taskmanagement.v1.TaskManagementService", HandlerType: (*TaskManagementServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Health", Handler: _TaskManagementService_Health_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "taskmanagement/v1/taskmanagement.proto", }
TaskManagementService_ServiceDesc is the grpc.ServiceDesc for TaskManagementService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTaskManagementServiceHandler ¶
func RegisterTaskManagementServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterTaskManagementServiceHandler registers the http handlers for service TaskManagementService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterTaskManagementServiceHandlerClient ¶
func RegisterTaskManagementServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TaskManagementServiceClient) error
RegisterTaskManagementServiceHandlerClient registers the http handlers for service TaskManagementService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TaskManagementServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TaskManagementServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TaskManagementServiceClient" to call the correct interceptors.
func RegisterTaskManagementServiceHandlerFromEndpoint ¶
func RegisterTaskManagementServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterTaskManagementServiceHandlerFromEndpoint is same as RegisterTaskManagementServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterTaskManagementServiceHandlerServer ¶
func RegisterTaskManagementServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TaskManagementServiceServer) error
RegisterTaskManagementServiceHandlerServer registers the http handlers for service TaskManagementService to "mux". UnaryRPC :call TaskManagementServiceServer 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 RegisterTaskManagementServiceHandlerFromEndpoint instead.
func RegisterTaskManagementServiceServer ¶
func RegisterTaskManagementServiceServer(s grpc.ServiceRegistrar, srv TaskManagementServiceServer)
Types ¶
type HealthRequest ¶
type HealthRequest struct {
// contains filtered or unexported fields
}
func (*HealthRequest) Descriptor
deprecated
func (*HealthRequest) Descriptor() ([]byte, []int)
Deprecated: Use HealthRequest.ProtoReflect.Descriptor instead.
func (*HealthRequest) ProtoMessage ¶
func (*HealthRequest) ProtoMessage()
func (*HealthRequest) ProtoReflect ¶
func (x *HealthRequest) ProtoReflect() protoreflect.Message
func (*HealthRequest) Reset ¶
func (x *HealthRequest) Reset()
func (*HealthRequest) String ¶
func (x *HealthRequest) String() string
type HealthResponse ¶
type HealthResponse struct { Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*HealthResponse) Descriptor
deprecated
func (*HealthResponse) Descriptor() ([]byte, []int)
Deprecated: Use HealthResponse.ProtoReflect.Descriptor instead.
func (*HealthResponse) GetStatus ¶
func (x *HealthResponse) GetStatus() string
func (*HealthResponse) ProtoMessage ¶
func (*HealthResponse) ProtoMessage()
func (*HealthResponse) ProtoReflect ¶
func (x *HealthResponse) ProtoReflect() protoreflect.Message
func (*HealthResponse) Reset ¶
func (x *HealthResponse) Reset()
func (*HealthResponse) String ¶
func (x *HealthResponse) String() string
type TaskManagementServiceClient ¶
type TaskManagementServiceClient interface {
Health(ctx context.Context, in *HealthRequest, opts ...grpc.CallOption) (*HealthResponse, error)
}
TaskManagementServiceClient is the client API for TaskManagementService 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 NewTaskManagementServiceClient ¶
func NewTaskManagementServiceClient(cc grpc.ClientConnInterface) TaskManagementServiceClient
type TaskManagementServiceServer ¶
type TaskManagementServiceServer interface { Health(context.Context, *HealthRequest) (*HealthResponse, error) // contains filtered or unexported methods }
TaskManagementServiceServer is the server API for TaskManagementService service. All implementations must embed UnimplementedTaskManagementServiceServer for forward compatibility
type UnimplementedTaskManagementServiceServer ¶
type UnimplementedTaskManagementServiceServer struct { }
UnimplementedTaskManagementServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTaskManagementServiceServer) Health ¶
func (UnimplementedTaskManagementServiceServer) Health(context.Context, *HealthRequest) (*HealthResponse, error)
type UnsafeTaskManagementServiceServer ¶
type UnsafeTaskManagementServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTaskManagementServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TaskManagementServiceServer will result in compilation errors.