| 1 | // Code generated by protoc-gen-connect-go. DO NOT EDIT. |
| 2 | // |
| 3 | // Source: ping/v1/services.proto |
| 4 | |
| 5 | package pingv1connectscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/ |
| 6 | |
| 7 | import ( |
| 8 | v1scip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/ "code.forgejo.org/forgejo/actions-proto/ping/v1scip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/" |
| 9 | connectscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/ "connectrpc.com/connectscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/" |
| 10 | contextscip-go gomod github.com/golang/go/src go1.25.0 context/ "contextscip-go gomod github.com/golang/go/src go1.25.0 context/" |
| 11 | errorsscip-go gomod github.com/golang/go/src go1.25.0 errors/ "errorsscip-go gomod github.com/golang/go/src go1.25.0 errors/" |
| 12 | httpscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/ "net/httpscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/" |
| 13 | stringsscip-go gomod github.com/golang/go/src go1.25.0 strings/ "stringsscip-go gomod github.com/golang/go/src go1.25.0 strings/" |
| 14 | ) |
| 15 | |
| 16 | // This is a compile-time assertion to ensure that this generated file and the connect package are |
| 17 | // compatible. If you get a compiler error that this constant is not defined, this code was |
| 18 | // generated with a version of connect newer than the one compiled into your binary. You can fix the |
| 19 | // problem by either regenerating this code with an older version of connect or updating the connect |
| 20 | // version compiled into your binary. |
| 21 | const _ = connectscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/.IsAtLeastVersion1_13_0scip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/IsAtLeastVersion1_13_0. |
| 22 | |
| 23 | const ( |
| 24 | // PingServiceName is the fully-qualified name of the PingService service. |
| 25 | PingServiceNamescip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/PingServiceName. = "ping.v1.PingService" |
| 26 | ) |
| 27 | |
| 28 | // These constants are the fully-qualified names of the RPCs defined in this package. They're |
| 29 | // exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route. |
| 30 | // |
| 31 | // Note that these are different from the fully-qualified method names used by |
| 32 | // google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to |
| 33 | // reflection-formatted method names, remove the leading slash and convert the remaining slash to a |
| 34 | // period. |
| 35 | const ( |
| 36 | // PingServicePingProcedure is the fully-qualified name of the PingService's Ping RPC. |
| 37 | PingServicePingProcedurescip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/PingServicePingProcedure. = "/ping.v1.PingService/Ping" |
| 38 | ) |
| 39 | |
| 40 | // These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. |
| 41 | var ( |
| 42 | pingServiceServiceDescriptorscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/pingServiceServiceDescriptor. = v1scip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/.File_ping_v1_services_protoscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/File_ping_v1_services_proto..Servicesscip-go gomod google.golang.org/protobuf v1.36.12 `google.golang.org/protobuf/reflect/protoreflect`/FileDescriptor#Services().().ByNamescip-go gomod google.golang.org/protobuf v1.36.12 `google.golang.org/protobuf/reflect/protoreflect`/ServiceDescriptors#ByName().("PingService") |
| 43 | pingServicePingMethodDescriptorscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/pingServicePingMethodDescriptor. = pingServiceServiceDescriptorscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/pingServiceServiceDescriptor..Methodsscip-go gomod google.golang.org/protobuf v1.36.12 `google.golang.org/protobuf/reflect/protoreflect`/ServiceDescriptor#Methods().().ByNamescip-go gomod google.golang.org/protobuf v1.36.12 `google.golang.org/protobuf/reflect/protoreflect`/MethodDescriptors#ByName().("Ping") |
| 44 | ) |
| 45 | |
| 46 | // PingServiceClient is a client for the ping.v1.PingService service. |
| 47 | type PingServiceClientscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/PingServiceClient# interface { |
| 48 | Pingscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/PingServiceClient#Ping.(contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, *connectscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/.Requestscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/Request#[v1scip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/.PingRequestscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/PingRequest#]) (*connectscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/.Responsescip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/Response#[v1scip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/.PingResponsescip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/PingResponse#], error) |
| 49 | } |
| 50 | |
| 51 | // NewPingServiceClient constructs a client for the ping.v1.PingService service. By default, it uses |
| 52 | // the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends |
| 53 | // uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or |
| 54 | // connect.WithGRPCWeb() options. |
| 55 | // |
| 56 | // The URL supplied here should be the base URL for the Connect or gRPC server (for example, |
| 57 | // http://api.acme.com or https://acme.com/grpc). |
| 58 | func NewPingServiceClientscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/NewPingServiceClient().(httpClient connectscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/.HTTPClientscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/HTTPClient#, baseURL string, opts ...connectscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/.ClientOptionscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/ClientOption#) PingServiceClientscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/PingServiceClient# { |
| 59 | baseURL = stringsscip-go gomod github.com/golang/go/src go1.25.0 strings/.TrimRightscip-go gomod github.com/golang/go/src go1.25.0 strings/TrimRight().(baseURL, "/") |
| 60 | return &pingServiceClientscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/pingServiceClient#{ |
| 61 | pingscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/pingServiceClient#ping.: connectscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/.NewClientscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/NewClient().[v1scip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/.PingRequestscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/PingRequest#, v1scip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/.PingResponsescip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/PingResponse#]( |
| 62 | httpClient, |
| 63 | baseURL+PingServicePingProcedurescip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/PingServicePingProcedure., |
| 64 | connectscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/.WithSchemascip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/WithSchema().(pingServicePingMethodDescriptorscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/pingServicePingMethodDescriptor.), |
| 65 | connectscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/.WithClientOptionsscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/WithClientOptions().(opts...), |
| 66 | ), |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | // pingServiceClient implements PingServiceClient. |
| 71 | type pingServiceClientscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/pingServiceClient# struct { |
| 72 | pingscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/pingServiceClient#ping. *connectscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/.Clientscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/Client#[v1scip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/.PingRequestscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/PingRequest#, v1scip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/.PingResponsescip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/PingResponse#] |
| 73 | } |
| 74 | |
| 75 | // Ping calls ping.v1.PingService.Ping. |
| 76 | func (c *pingServiceClientscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/pingServiceClient#) Pingscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/pingServiceClient#Ping().(ctx contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, req *connectscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/.Requestscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/Request#[v1scip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/.PingRequestscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/PingRequest#]) (*connectscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/.Responsescip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/Response#[v1scip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/.PingResponsescip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/PingResponse#], error) { |
| 77 | return c.pingscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/pingServiceClient#ping..CallUnaryscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/Client#CallUnary().(ctx, req) |
| 78 | } |
| 79 | |
| 80 | // PingServiceHandler is an implementation of the ping.v1.PingService service. |
| 81 | type PingServiceHandlerscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/PingServiceHandler# interface { |
| 82 | Pingscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/PingServiceHandler#Ping.(contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, *connectscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/.Requestscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/Request#[v1scip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/.PingRequestscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/PingRequest#]) (*connectscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/.Responsescip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/Response#[v1scip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/.PingResponsescip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/PingResponse#], error) |
| 83 | } |
| 84 | |
| 85 | // NewPingServiceHandler builds an HTTP handler from the service implementation. It returns the path |
| 86 | // on which to mount the handler and the handler itself. |
| 87 | // |
| 88 | // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf |
| 89 | // and JSON codecs. They also support gzip compression. |
| 90 | func NewPingServiceHandlerscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/NewPingServiceHandler().(svc PingServiceHandlerscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/PingServiceHandler#, opts ...connectscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/.HandlerOptionscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/HandlerOption#) (string, httpscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/.Handlerscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/Handler#) { |
| 91 | pingServicePingHandler := connectscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/.NewUnaryHandlerscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/NewUnaryHandler().( |
| 92 | PingServicePingProcedurescip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/PingServicePingProcedure., |
| 93 | svc.Pingscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/PingServiceHandler#Ping., |
| 94 | connectscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/.WithSchemascip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/WithSchema().(pingServicePingMethodDescriptorscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/pingServicePingMethodDescriptor.), |
| 95 | connectscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/.WithHandlerOptionsscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/WithHandlerOptions().(opts...), |
| 96 | ) |
| 97 | return "/ping.v1.PingService/", httpscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/.HandlerFuncscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/HandlerFunc#(func(w httpscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/.ResponseWriterscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/ResponseWriter#, r *httpscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/.Requestscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/Request#) { |
| 98 | switch r.URLscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/Request#URL..Pathscip-go gomod github.com/golang/go/src go1.25.0 `net/url`/URL#Path. { |
| 99 | case PingServicePingProcedurescip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/PingServicePingProcedure.: |
| 100 | pingServicePingHandler.ServeHTTPscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/Handler#ServeHTTP().(w, r) |
| 101 | default: |
| 102 | httpscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/.NotFoundscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/NotFound().(w, r) |
| 103 | } |
| 104 | }) |
| 105 | } |
| 106 | |
| 107 | // UnimplementedPingServiceHandler returns CodeUnimplemented from all methods. |
| 108 | type UnimplementedPingServiceHandlerscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/UnimplementedPingServiceHandler# struct{} |
| 109 | |
| 110 | func (UnimplementedPingServiceHandlerscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/UnimplementedPingServiceHandler#) Pingscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1/pingv1connect`/UnimplementedPingServiceHandler#Ping().(contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, *connectscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/.Requestscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/Request#[v1scip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/.PingRequestscip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/PingRequest#]) (*connectscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/.Responsescip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/Response#[v1scip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/.PingResponsescip-go gomod code.forgejo.org/forgejo/actions-proto . `code.forgejo.org/forgejo/actions-proto/ping/v1`/PingResponse#], error) { |
| 111 | return nil, connectscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/.NewErrorscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/NewError().(connectscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/.CodeUnimplementedscip-go gomod connectrpc.com/connect v1.20.0 `connectrpc.com/connect`/CodeUnimplemented., errorsscip-go gomod github.com/golang/go/src go1.25.0 errors/.Newscip-go gomod github.com/golang/go/src go1.25.0 errors/New().("ping.v1.PingService.Ping is not implemented")) |
| 112 | } |