|
|
@@ -1,1203 +0,0 @@
|
|
|
-// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
|
|
-// source: olivetin/api/v1/olivetin.proto
|
|
|
-
|
|
|
-/*
|
|
|
-Package apiv1 is a reverse proxy.
|
|
|
-
|
|
|
-It translates gRPC into RESTful JSON APIs.
|
|
|
-*/
|
|
|
-package apiv1
|
|
|
-
|
|
|
-import (
|
|
|
- "context"
|
|
|
- "errors"
|
|
|
- "io"
|
|
|
- "net/http"
|
|
|
-
|
|
|
- "github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
|
|
|
- "github.com/grpc-ecosystem/grpc-gateway/v2/utilities"
|
|
|
- "google.golang.org/grpc"
|
|
|
- "google.golang.org/grpc/codes"
|
|
|
- "google.golang.org/grpc/grpclog"
|
|
|
- "google.golang.org/grpc/metadata"
|
|
|
- "google.golang.org/grpc/status"
|
|
|
- "google.golang.org/protobuf/proto"
|
|
|
-)
|
|
|
-
|
|
|
-// Suppress "imported and not used" errors
|
|
|
-var (
|
|
|
- _ codes.Code
|
|
|
- _ io.Reader
|
|
|
- _ status.Status
|
|
|
- _ = errors.New
|
|
|
- _ = runtime.String
|
|
|
- _ = utilities.NewDoubleArray
|
|
|
- _ = metadata.Join
|
|
|
-)
|
|
|
-
|
|
|
-func request_OliveTinApiService_GetDashboardComponents_0(ctx context.Context, marshaler runtime.Marshaler, client OliveTinApiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq GetDashboardComponentsRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- if req.Body != nil {
|
|
|
- _, _ = io.Copy(io.Discard, req.Body)
|
|
|
- }
|
|
|
- msg, err := client.GetDashboardComponents(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func local_request_OliveTinApiService_GetDashboardComponents_0(ctx context.Context, marshaler runtime.Marshaler, server OliveTinApiServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq GetDashboardComponentsRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- msg, err := server.GetDashboardComponents(ctx, &protoReq)
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func request_OliveTinApiService_StartAction_0(ctx context.Context, marshaler runtime.Marshaler, client OliveTinApiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq StartActionRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
- }
|
|
|
- if req.Body != nil {
|
|
|
- _, _ = io.Copy(io.Discard, req.Body)
|
|
|
- }
|
|
|
- msg, err := client.StartAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func local_request_OliveTinApiService_StartAction_0(ctx context.Context, marshaler runtime.Marshaler, server OliveTinApiServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq StartActionRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
- }
|
|
|
- msg, err := server.StartAction(ctx, &protoReq)
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func request_OliveTinApiService_StartActionAndWait_0(ctx context.Context, marshaler runtime.Marshaler, client OliveTinApiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq StartActionAndWaitRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
- }
|
|
|
- if req.Body != nil {
|
|
|
- _, _ = io.Copy(io.Discard, req.Body)
|
|
|
- }
|
|
|
- msg, err := client.StartActionAndWait(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func local_request_OliveTinApiService_StartActionAndWait_0(ctx context.Context, marshaler runtime.Marshaler, server OliveTinApiServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq StartActionAndWaitRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
- }
|
|
|
- msg, err := server.StartActionAndWait(ctx, &protoReq)
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func request_OliveTinApiService_StartActionByGet_0(ctx context.Context, marshaler runtime.Marshaler, client OliveTinApiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq StartActionByGetRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- err error
|
|
|
- )
|
|
|
- if req.Body != nil {
|
|
|
- _, _ = io.Copy(io.Discard, req.Body)
|
|
|
- }
|
|
|
- val, ok := pathParams["action_id"]
|
|
|
- if !ok {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "action_id")
|
|
|
- }
|
|
|
- protoReq.ActionId, err = runtime.String(val)
|
|
|
- if err != nil {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "action_id", err)
|
|
|
- }
|
|
|
- msg, err := client.StartActionByGet(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func local_request_OliveTinApiService_StartActionByGet_0(ctx context.Context, marshaler runtime.Marshaler, server OliveTinApiServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq StartActionByGetRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- err error
|
|
|
- )
|
|
|
- val, ok := pathParams["action_id"]
|
|
|
- if !ok {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "action_id")
|
|
|
- }
|
|
|
- protoReq.ActionId, err = runtime.String(val)
|
|
|
- if err != nil {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "action_id", err)
|
|
|
- }
|
|
|
- msg, err := server.StartActionByGet(ctx, &protoReq)
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func request_OliveTinApiService_StartActionByGetAndWait_0(ctx context.Context, marshaler runtime.Marshaler, client OliveTinApiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq StartActionByGetAndWaitRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- err error
|
|
|
- )
|
|
|
- if req.Body != nil {
|
|
|
- _, _ = io.Copy(io.Discard, req.Body)
|
|
|
- }
|
|
|
- val, ok := pathParams["action_id"]
|
|
|
- if !ok {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "action_id")
|
|
|
- }
|
|
|
- protoReq.ActionId, err = runtime.String(val)
|
|
|
- if err != nil {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "action_id", err)
|
|
|
- }
|
|
|
- msg, err := client.StartActionByGetAndWait(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func local_request_OliveTinApiService_StartActionByGetAndWait_0(ctx context.Context, marshaler runtime.Marshaler, server OliveTinApiServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq StartActionByGetAndWaitRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- err error
|
|
|
- )
|
|
|
- val, ok := pathParams["action_id"]
|
|
|
- if !ok {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "action_id")
|
|
|
- }
|
|
|
- protoReq.ActionId, err = runtime.String(val)
|
|
|
- if err != nil {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "action_id", err)
|
|
|
- }
|
|
|
- msg, err := server.StartActionByGetAndWait(ctx, &protoReq)
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func request_OliveTinApiService_KillAction_0(ctx context.Context, marshaler runtime.Marshaler, client OliveTinApiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq KillActionRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
- }
|
|
|
- if req.Body != nil {
|
|
|
- _, _ = io.Copy(io.Discard, req.Body)
|
|
|
- }
|
|
|
- msg, err := client.KillAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func local_request_OliveTinApiService_KillAction_0(ctx context.Context, marshaler runtime.Marshaler, server OliveTinApiServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq KillActionRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
- }
|
|
|
- msg, err := server.KillAction(ctx, &protoReq)
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func request_OliveTinApiService_ExecutionStatus_0(ctx context.Context, marshaler runtime.Marshaler, client OliveTinApiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq ExecutionStatusRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
- }
|
|
|
- if req.Body != nil {
|
|
|
- _, _ = io.Copy(io.Discard, req.Body)
|
|
|
- }
|
|
|
- msg, err := client.ExecutionStatus(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func local_request_OliveTinApiService_ExecutionStatus_0(ctx context.Context, marshaler runtime.Marshaler, server OliveTinApiServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq ExecutionStatusRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
- }
|
|
|
- msg, err := server.ExecutionStatus(ctx, &protoReq)
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-var filter_OliveTinApiService_GetLogs_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
|
|
|
-
|
|
|
-func request_OliveTinApiService_GetLogs_0(ctx context.Context, marshaler runtime.Marshaler, client OliveTinApiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq GetLogsRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- if req.Body != nil {
|
|
|
- _, _ = io.Copy(io.Discard, req.Body)
|
|
|
- }
|
|
|
- if err := req.ParseForm(); err != nil {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
- }
|
|
|
- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_OliveTinApiService_GetLogs_0); err != nil {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
- }
|
|
|
- msg, err := client.GetLogs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func local_request_OliveTinApiService_GetLogs_0(ctx context.Context, marshaler runtime.Marshaler, server OliveTinApiServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq GetLogsRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- if err := req.ParseForm(); err != nil {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
- }
|
|
|
- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_OliveTinApiService_GetLogs_0); err != nil {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
- }
|
|
|
- msg, err := server.GetLogs(ctx, &protoReq)
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func request_OliveTinApiService_ValidateArgumentType_0(ctx context.Context, marshaler runtime.Marshaler, client OliveTinApiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq ValidateArgumentTypeRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
- }
|
|
|
- if req.Body != nil {
|
|
|
- _, _ = io.Copy(io.Discard, req.Body)
|
|
|
- }
|
|
|
- msg, err := client.ValidateArgumentType(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func local_request_OliveTinApiService_ValidateArgumentType_0(ctx context.Context, marshaler runtime.Marshaler, server OliveTinApiServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq ValidateArgumentTypeRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
- }
|
|
|
- msg, err := server.ValidateArgumentType(ctx, &protoReq)
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func request_OliveTinApiService_WhoAmI_0(ctx context.Context, marshaler runtime.Marshaler, client OliveTinApiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq WhoAmIRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- if req.Body != nil {
|
|
|
- _, _ = io.Copy(io.Discard, req.Body)
|
|
|
- }
|
|
|
- msg, err := client.WhoAmI(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func local_request_OliveTinApiService_WhoAmI_0(ctx context.Context, marshaler runtime.Marshaler, server OliveTinApiServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq WhoAmIRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- msg, err := server.WhoAmI(ctx, &protoReq)
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func request_OliveTinApiService_SosReport_0(ctx context.Context, marshaler runtime.Marshaler, client OliveTinApiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq SosReportRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- if req.Body != nil {
|
|
|
- _, _ = io.Copy(io.Discard, req.Body)
|
|
|
- }
|
|
|
- msg, err := client.SosReport(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func local_request_OliveTinApiService_SosReport_0(ctx context.Context, marshaler runtime.Marshaler, server OliveTinApiServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq SosReportRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- msg, err := server.SosReport(ctx, &protoReq)
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func request_OliveTinApiService_DumpVars_0(ctx context.Context, marshaler runtime.Marshaler, client OliveTinApiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq DumpVarsRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- if req.Body != nil {
|
|
|
- _, _ = io.Copy(io.Discard, req.Body)
|
|
|
- }
|
|
|
- msg, err := client.DumpVars(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func local_request_OliveTinApiService_DumpVars_0(ctx context.Context, marshaler runtime.Marshaler, server OliveTinApiServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq DumpVarsRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- msg, err := server.DumpVars(ctx, &protoReq)
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func request_OliveTinApiService_DumpPublicIdActionMap_0(ctx context.Context, marshaler runtime.Marshaler, client OliveTinApiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq DumpPublicIdActionMapRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- if req.Body != nil {
|
|
|
- _, _ = io.Copy(io.Discard, req.Body)
|
|
|
- }
|
|
|
- msg, err := client.DumpPublicIdActionMap(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func local_request_OliveTinApiService_DumpPublicIdActionMap_0(ctx context.Context, marshaler runtime.Marshaler, server OliveTinApiServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq DumpPublicIdActionMapRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- msg, err := server.DumpPublicIdActionMap(ctx, &protoReq)
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func request_OliveTinApiService_GetReadyz_0(ctx context.Context, marshaler runtime.Marshaler, client OliveTinApiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq GetReadyzRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- if req.Body != nil {
|
|
|
- _, _ = io.Copy(io.Discard, req.Body)
|
|
|
- }
|
|
|
- msg, err := client.GetReadyz(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func local_request_OliveTinApiService_GetReadyz_0(ctx context.Context, marshaler runtime.Marshaler, server OliveTinApiServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq GetReadyzRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- msg, err := server.GetReadyz(ctx, &protoReq)
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func request_OliveTinApiService_LocalUserLogin_0(ctx context.Context, marshaler runtime.Marshaler, client OliveTinApiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq LocalUserLoginRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
- }
|
|
|
- if req.Body != nil {
|
|
|
- _, _ = io.Copy(io.Discard, req.Body)
|
|
|
- }
|
|
|
- msg, err := client.LocalUserLogin(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func local_request_OliveTinApiService_LocalUserLogin_0(ctx context.Context, marshaler runtime.Marshaler, server OliveTinApiServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq LocalUserLoginRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
- }
|
|
|
- msg, err := server.LocalUserLogin(ctx, &protoReq)
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func request_OliveTinApiService_PasswordHash_0(ctx context.Context, marshaler runtime.Marshaler, client OliveTinApiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq PasswordHashRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
- }
|
|
|
- if req.Body != nil {
|
|
|
- _, _ = io.Copy(io.Discard, req.Body)
|
|
|
- }
|
|
|
- msg, err := client.PasswordHash(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func local_request_OliveTinApiService_PasswordHash_0(ctx context.Context, marshaler runtime.Marshaler, server OliveTinApiServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq PasswordHashRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
|
|
- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
|
|
- }
|
|
|
- msg, err := server.PasswordHash(ctx, &protoReq)
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func request_OliveTinApiService_Logout_0(ctx context.Context, marshaler runtime.Marshaler, client OliveTinApiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq LogoutRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- if req.Body != nil {
|
|
|
- _, _ = io.Copy(io.Discard, req.Body)
|
|
|
- }
|
|
|
- msg, err := client.Logout(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-func local_request_OliveTinApiService_Logout_0(ctx context.Context, marshaler runtime.Marshaler, server OliveTinApiServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
|
- var (
|
|
|
- protoReq LogoutRequest
|
|
|
- metadata runtime.ServerMetadata
|
|
|
- )
|
|
|
- msg, err := server.Logout(ctx, &protoReq)
|
|
|
- return msg, metadata, err
|
|
|
-}
|
|
|
-
|
|
|
-// RegisterOliveTinApiServiceHandlerServer registers the http handlers for service OliveTinApiService to "mux".
|
|
|
-// UnaryRPC :call OliveTinApiServiceServer 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 RegisterOliveTinApiServiceHandlerFromEndpoint instead.
|
|
|
-// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
|
|
|
-func RegisterOliveTinApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server OliveTinApiServiceServer) error {
|
|
|
- mux.Handle(http.MethodGet, pattern_OliveTinApiService_GetDashboardComponents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- var stream runtime.ServerTransportStream
|
|
|
- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/GetDashboardComponents", runtime.WithHTTPPathPattern("/api/GetDashboardComponents"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := local_request_OliveTinApiService_GetDashboardComponents_0(annotatedContext, inboundMarshaler, server, req, pathParams)
|
|
|
- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_GetDashboardComponents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodPost, pattern_OliveTinApiService_StartAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- var stream runtime.ServerTransportStream
|
|
|
- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/StartAction", runtime.WithHTTPPathPattern("/api/StartAction"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := local_request_OliveTinApiService_StartAction_0(annotatedContext, inboundMarshaler, server, req, pathParams)
|
|
|
- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_StartAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodPost, pattern_OliveTinApiService_StartActionAndWait_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- var stream runtime.ServerTransportStream
|
|
|
- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/StartActionAndWait", runtime.WithHTTPPathPattern("/api/StartActionAndWait"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := local_request_OliveTinApiService_StartActionAndWait_0(annotatedContext, inboundMarshaler, server, req, pathParams)
|
|
|
- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_StartActionAndWait_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodGet, pattern_OliveTinApiService_StartActionByGet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- var stream runtime.ServerTransportStream
|
|
|
- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/StartActionByGet", runtime.WithHTTPPathPattern("/api/StartActionByGet/{action_id}"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := local_request_OliveTinApiService_StartActionByGet_0(annotatedContext, inboundMarshaler, server, req, pathParams)
|
|
|
- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_StartActionByGet_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodGet, pattern_OliveTinApiService_StartActionByGetAndWait_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- var stream runtime.ServerTransportStream
|
|
|
- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/StartActionByGetAndWait", runtime.WithHTTPPathPattern("/api/StartActionByGetAndWait/{action_id}"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := local_request_OliveTinApiService_StartActionByGetAndWait_0(annotatedContext, inboundMarshaler, server, req, pathParams)
|
|
|
- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_StartActionByGetAndWait_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodPost, pattern_OliveTinApiService_KillAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- var stream runtime.ServerTransportStream
|
|
|
- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/KillAction", runtime.WithHTTPPathPattern("/api/KillAction"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := local_request_OliveTinApiService_KillAction_0(annotatedContext, inboundMarshaler, server, req, pathParams)
|
|
|
- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_KillAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodPost, pattern_OliveTinApiService_ExecutionStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- var stream runtime.ServerTransportStream
|
|
|
- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/ExecutionStatus", runtime.WithHTTPPathPattern("/api/ExecutionStatus"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := local_request_OliveTinApiService_ExecutionStatus_0(annotatedContext, inboundMarshaler, server, req, pathParams)
|
|
|
- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_ExecutionStatus_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodGet, pattern_OliveTinApiService_GetLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- var stream runtime.ServerTransportStream
|
|
|
- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/GetLogs", runtime.WithHTTPPathPattern("/api/GetLogs"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := local_request_OliveTinApiService_GetLogs_0(annotatedContext, inboundMarshaler, server, req, pathParams)
|
|
|
- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_GetLogs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodPost, pattern_OliveTinApiService_ValidateArgumentType_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- var stream runtime.ServerTransportStream
|
|
|
- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/ValidateArgumentType", runtime.WithHTTPPathPattern("/api/ValidateArgumentType"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := local_request_OliveTinApiService_ValidateArgumentType_0(annotatedContext, inboundMarshaler, server, req, pathParams)
|
|
|
- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_ValidateArgumentType_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodGet, pattern_OliveTinApiService_WhoAmI_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- var stream runtime.ServerTransportStream
|
|
|
- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/WhoAmI", runtime.WithHTTPPathPattern("/api/WhoAmI"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := local_request_OliveTinApiService_WhoAmI_0(annotatedContext, inboundMarshaler, server, req, pathParams)
|
|
|
- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_WhoAmI_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodGet, pattern_OliveTinApiService_SosReport_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- var stream runtime.ServerTransportStream
|
|
|
- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/SosReport", runtime.WithHTTPPathPattern("/api/sosreport"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := local_request_OliveTinApiService_SosReport_0(annotatedContext, inboundMarshaler, server, req, pathParams)
|
|
|
- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_SosReport_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodGet, pattern_OliveTinApiService_DumpVars_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- var stream runtime.ServerTransportStream
|
|
|
- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/DumpVars", runtime.WithHTTPPathPattern("/api/DumpVars"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := local_request_OliveTinApiService_DumpVars_0(annotatedContext, inboundMarshaler, server, req, pathParams)
|
|
|
- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_DumpVars_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodGet, pattern_OliveTinApiService_DumpPublicIdActionMap_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- var stream runtime.ServerTransportStream
|
|
|
- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/DumpPublicIdActionMap", runtime.WithHTTPPathPattern("/api/DumpActionMap"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := local_request_OliveTinApiService_DumpPublicIdActionMap_0(annotatedContext, inboundMarshaler, server, req, pathParams)
|
|
|
- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_DumpPublicIdActionMap_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodGet, pattern_OliveTinApiService_GetReadyz_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- var stream runtime.ServerTransportStream
|
|
|
- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/GetReadyz", runtime.WithHTTPPathPattern("/api/readyz"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := local_request_OliveTinApiService_GetReadyz_0(annotatedContext, inboundMarshaler, server, req, pathParams)
|
|
|
- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_GetReadyz_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodPost, pattern_OliveTinApiService_LocalUserLogin_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- var stream runtime.ServerTransportStream
|
|
|
- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/LocalUserLogin", runtime.WithHTTPPathPattern("/api/LocalUserLogin"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := local_request_OliveTinApiService_LocalUserLogin_0(annotatedContext, inboundMarshaler, server, req, pathParams)
|
|
|
- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_LocalUserLogin_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodPost, pattern_OliveTinApiService_PasswordHash_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- var stream runtime.ServerTransportStream
|
|
|
- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/PasswordHash", runtime.WithHTTPPathPattern("/api/PasswordHash"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := local_request_OliveTinApiService_PasswordHash_0(annotatedContext, inboundMarshaler, server, req, pathParams)
|
|
|
- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_PasswordHash_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodGet, pattern_OliveTinApiService_Logout_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- var stream runtime.ServerTransportStream
|
|
|
- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/Logout", runtime.WithHTTPPathPattern("/api/Logout"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := local_request_OliveTinApiService_Logout_0(annotatedContext, inboundMarshaler, server, req, pathParams)
|
|
|
- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_Logout_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
-
|
|
|
- return nil
|
|
|
-}
|
|
|
-
|
|
|
-// RegisterOliveTinApiServiceHandlerFromEndpoint is same as RegisterOliveTinApiServiceHandler but
|
|
|
-// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
|
|
|
-func RegisterOliveTinApiServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) {
|
|
|
- conn, err := grpc.NewClient(endpoint, opts...)
|
|
|
- if err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- defer func() {
|
|
|
- if err != nil {
|
|
|
- if cerr := conn.Close(); cerr != nil {
|
|
|
- grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)
|
|
|
- }
|
|
|
- return
|
|
|
- }
|
|
|
- go func() {
|
|
|
- <-ctx.Done()
|
|
|
- if cerr := conn.Close(); cerr != nil {
|
|
|
- grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)
|
|
|
- }
|
|
|
- }()
|
|
|
- }()
|
|
|
- return RegisterOliveTinApiServiceHandler(ctx, mux, conn)
|
|
|
-}
|
|
|
-
|
|
|
-// RegisterOliveTinApiServiceHandler registers the http handlers for service OliveTinApiService to "mux".
|
|
|
-// The handlers forward requests to the grpc endpoint over "conn".
|
|
|
-func RegisterOliveTinApiServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
|
|
|
- return RegisterOliveTinApiServiceHandlerClient(ctx, mux, NewOliveTinApiServiceClient(conn))
|
|
|
-}
|
|
|
-
|
|
|
-// RegisterOliveTinApiServiceHandlerClient registers the http handlers for service OliveTinApiService
|
|
|
-// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "OliveTinApiServiceClient".
|
|
|
-// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "OliveTinApiServiceClient"
|
|
|
-// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
|
|
|
-// "OliveTinApiServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
|
|
|
-func RegisterOliveTinApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client OliveTinApiServiceClient) error {
|
|
|
- mux.Handle(http.MethodGet, pattern_OliveTinApiService_GetDashboardComponents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/GetDashboardComponents", runtime.WithHTTPPathPattern("/api/GetDashboardComponents"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := request_OliveTinApiService_GetDashboardComponents_0(annotatedContext, inboundMarshaler, client, req, pathParams)
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_GetDashboardComponents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodPost, pattern_OliveTinApiService_StartAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/StartAction", runtime.WithHTTPPathPattern("/api/StartAction"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := request_OliveTinApiService_StartAction_0(annotatedContext, inboundMarshaler, client, req, pathParams)
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_StartAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodPost, pattern_OliveTinApiService_StartActionAndWait_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/StartActionAndWait", runtime.WithHTTPPathPattern("/api/StartActionAndWait"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := request_OliveTinApiService_StartActionAndWait_0(annotatedContext, inboundMarshaler, client, req, pathParams)
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_StartActionAndWait_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodGet, pattern_OliveTinApiService_StartActionByGet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/StartActionByGet", runtime.WithHTTPPathPattern("/api/StartActionByGet/{action_id}"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := request_OliveTinApiService_StartActionByGet_0(annotatedContext, inboundMarshaler, client, req, pathParams)
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_StartActionByGet_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodGet, pattern_OliveTinApiService_StartActionByGetAndWait_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/StartActionByGetAndWait", runtime.WithHTTPPathPattern("/api/StartActionByGetAndWait/{action_id}"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := request_OliveTinApiService_StartActionByGetAndWait_0(annotatedContext, inboundMarshaler, client, req, pathParams)
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_StartActionByGetAndWait_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodPost, pattern_OliveTinApiService_KillAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/KillAction", runtime.WithHTTPPathPattern("/api/KillAction"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := request_OliveTinApiService_KillAction_0(annotatedContext, inboundMarshaler, client, req, pathParams)
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_KillAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodPost, pattern_OliveTinApiService_ExecutionStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/ExecutionStatus", runtime.WithHTTPPathPattern("/api/ExecutionStatus"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := request_OliveTinApiService_ExecutionStatus_0(annotatedContext, inboundMarshaler, client, req, pathParams)
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_ExecutionStatus_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodGet, pattern_OliveTinApiService_GetLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/GetLogs", runtime.WithHTTPPathPattern("/api/GetLogs"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := request_OliveTinApiService_GetLogs_0(annotatedContext, inboundMarshaler, client, req, pathParams)
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_GetLogs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodPost, pattern_OliveTinApiService_ValidateArgumentType_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/ValidateArgumentType", runtime.WithHTTPPathPattern("/api/ValidateArgumentType"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := request_OliveTinApiService_ValidateArgumentType_0(annotatedContext, inboundMarshaler, client, req, pathParams)
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_ValidateArgumentType_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodGet, pattern_OliveTinApiService_WhoAmI_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/WhoAmI", runtime.WithHTTPPathPattern("/api/WhoAmI"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := request_OliveTinApiService_WhoAmI_0(annotatedContext, inboundMarshaler, client, req, pathParams)
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_WhoAmI_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodGet, pattern_OliveTinApiService_SosReport_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/SosReport", runtime.WithHTTPPathPattern("/api/sosreport"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := request_OliveTinApiService_SosReport_0(annotatedContext, inboundMarshaler, client, req, pathParams)
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_SosReport_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodGet, pattern_OliveTinApiService_DumpVars_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/DumpVars", runtime.WithHTTPPathPattern("/api/DumpVars"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := request_OliveTinApiService_DumpVars_0(annotatedContext, inboundMarshaler, client, req, pathParams)
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_DumpVars_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodGet, pattern_OliveTinApiService_DumpPublicIdActionMap_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/DumpPublicIdActionMap", runtime.WithHTTPPathPattern("/api/DumpActionMap"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := request_OliveTinApiService_DumpPublicIdActionMap_0(annotatedContext, inboundMarshaler, client, req, pathParams)
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_DumpPublicIdActionMap_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodGet, pattern_OliveTinApiService_GetReadyz_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/GetReadyz", runtime.WithHTTPPathPattern("/api/readyz"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := request_OliveTinApiService_GetReadyz_0(annotatedContext, inboundMarshaler, client, req, pathParams)
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_GetReadyz_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodPost, pattern_OliveTinApiService_LocalUserLogin_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/LocalUserLogin", runtime.WithHTTPPathPattern("/api/LocalUserLogin"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := request_OliveTinApiService_LocalUserLogin_0(annotatedContext, inboundMarshaler, client, req, pathParams)
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_LocalUserLogin_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodPost, pattern_OliveTinApiService_PasswordHash_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/PasswordHash", runtime.WithHTTPPathPattern("/api/PasswordHash"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := request_OliveTinApiService_PasswordHash_0(annotatedContext, inboundMarshaler, client, req, pathParams)
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_PasswordHash_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- mux.Handle(http.MethodGet, pattern_OliveTinApiService_Logout_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
|
- ctx, cancel := context.WithCancel(req.Context())
|
|
|
- defer cancel()
|
|
|
- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
|
- annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/olivetin.api.v1.OliveTinApiService/Logout", runtime.WithHTTPPathPattern("/api/Logout"))
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- resp, md, err := request_OliveTinApiService_Logout_0(annotatedContext, inboundMarshaler, client, req, pathParams)
|
|
|
- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
|
|
|
- if err != nil {
|
|
|
- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
|
|
|
- return
|
|
|
- }
|
|
|
- forward_OliveTinApiService_Logout_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
|
- })
|
|
|
- return nil
|
|
|
-}
|
|
|
-
|
|
|
-var (
|
|
|
- pattern_OliveTinApiService_GetDashboardComponents_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "GetDashboardComponents"}, ""))
|
|
|
- pattern_OliveTinApiService_StartAction_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "StartAction"}, ""))
|
|
|
- pattern_OliveTinApiService_StartActionAndWait_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "StartActionAndWait"}, ""))
|
|
|
- pattern_OliveTinApiService_StartActionByGet_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "StartActionByGet", "action_id"}, ""))
|
|
|
- pattern_OliveTinApiService_StartActionByGetAndWait_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "StartActionByGetAndWait", "action_id"}, ""))
|
|
|
- pattern_OliveTinApiService_KillAction_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "KillAction"}, ""))
|
|
|
- pattern_OliveTinApiService_ExecutionStatus_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "ExecutionStatus"}, ""))
|
|
|
- pattern_OliveTinApiService_GetLogs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "GetLogs"}, ""))
|
|
|
- pattern_OliveTinApiService_ValidateArgumentType_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "ValidateArgumentType"}, ""))
|
|
|
- pattern_OliveTinApiService_WhoAmI_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "WhoAmI"}, ""))
|
|
|
- pattern_OliveTinApiService_SosReport_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "sosreport"}, ""))
|
|
|
- pattern_OliveTinApiService_DumpVars_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "DumpVars"}, ""))
|
|
|
- pattern_OliveTinApiService_DumpPublicIdActionMap_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "DumpActionMap"}, ""))
|
|
|
- pattern_OliveTinApiService_GetReadyz_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "readyz"}, ""))
|
|
|
- pattern_OliveTinApiService_LocalUserLogin_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "LocalUserLogin"}, ""))
|
|
|
- pattern_OliveTinApiService_PasswordHash_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "PasswordHash"}, ""))
|
|
|
- pattern_OliveTinApiService_Logout_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "Logout"}, ""))
|
|
|
-)
|
|
|
-
|
|
|
-var (
|
|
|
- forward_OliveTinApiService_GetDashboardComponents_0 = runtime.ForwardResponseMessage
|
|
|
- forward_OliveTinApiService_StartAction_0 = runtime.ForwardResponseMessage
|
|
|
- forward_OliveTinApiService_StartActionAndWait_0 = runtime.ForwardResponseMessage
|
|
|
- forward_OliveTinApiService_StartActionByGet_0 = runtime.ForwardResponseMessage
|
|
|
- forward_OliveTinApiService_StartActionByGetAndWait_0 = runtime.ForwardResponseMessage
|
|
|
- forward_OliveTinApiService_KillAction_0 = runtime.ForwardResponseMessage
|
|
|
- forward_OliveTinApiService_ExecutionStatus_0 = runtime.ForwardResponseMessage
|
|
|
- forward_OliveTinApiService_GetLogs_0 = runtime.ForwardResponseMessage
|
|
|
- forward_OliveTinApiService_ValidateArgumentType_0 = runtime.ForwardResponseMessage
|
|
|
- forward_OliveTinApiService_WhoAmI_0 = runtime.ForwardResponseMessage
|
|
|
- forward_OliveTinApiService_SosReport_0 = runtime.ForwardResponseMessage
|
|
|
- forward_OliveTinApiService_DumpVars_0 = runtime.ForwardResponseMessage
|
|
|
- forward_OliveTinApiService_DumpPublicIdActionMap_0 = runtime.ForwardResponseMessage
|
|
|
- forward_OliveTinApiService_GetReadyz_0 = runtime.ForwardResponseMessage
|
|
|
- forward_OliveTinApiService_LocalUserLogin_0 = runtime.ForwardResponseMessage
|
|
|
- forward_OliveTinApiService_PasswordHash_0 = runtime.ForwardResponseMessage
|
|
|
- forward_OliveTinApiService_Logout_0 = runtime.ForwardResponseMessage
|
|
|
-)
|