Ecosyste.ms: Repos

An open API service providing repository metadata for many open source software ecosystems.

Package Usage: go: github.com/emicklei/go-restful

Package restful , a lean package for creating REST-style WebServices without magic. A WebService has a collection of Route objects that dispatch incoming Http Requests to a function calls. Typically, a WebService has a root path (e.g. /users) and defines common MIME types for its routes. WebServices must be added to a container (see below) in order to handler Http requests from a server. A Route is defined by a HTTP method, an URL path and (optionally) the MIME types it consumes (Content-Type) and produces (Accept). This package has the logic to find the best matching Route and if found, call its Function. The (*Request, *Response) arguments provide functions for reading information from the request and writing information back to the response. See the example https://github.com/emicklei/go-restful/blob/master/examples/restful-user-resource.go with a full implementation. A Route parameter can be specified using the format "uri/{var[:regexp]}" or the special version "uri/{var:*}" for matching the tail of the path. For example, /persons/{name:[A-Z][A-Z]} can be used to restrict values for the parameter "name" to only contain capital alphabetic characters. Regular expressions must use the standard Go syntax as described in the regexp package. (https://code.google.com/p/re2/wiki/Syntax) This feature requires the use of a CurlyRouter. A Container holds a collection of WebServices, Filters and a http.ServeMux for multiplexing http requests. Using the statements "restful.Add(...) and restful.Filter(...)" will register WebServices and Filters to the Default Container. The Default container of go-restful uses the http.DefaultServeMux. You can create your own Container and create a new http.Server for that particular container. A filter dynamically intercepts requests and responses to transform or use the information contained in the requests or responses. You can use filters to perform generic logging, measurement, authentication, redirect, set response headers etc. In the restful package there are three hooks into the request,response flow where filters can be added. Each filter must define a FilterFunction: Use the following statement to pass the request,response pair to the next filter or RouteFunction These are processed before any registered WebService. These are processed before any Route of a WebService. These are processed before calling the function associated with the Route. See the example https://github.com/emicklei/go-restful/blob/master/examples/restful-filters.go with full implementations. Two encodings are supported: gzip and deflate. To enable this for all responses: If a Http request includes the Accept-Encoding header then the response content will be compressed using the specified encoding. Alternatively, you can create a Filter that performs the encoding and install it per WebService or Route. See the example https://github.com/emicklei/go-restful/blob/master/examples/restful-encoding-filter.go By installing a pre-defined container filter, your Webservice(s) can respond to the OPTIONS Http request. By installing the filter of a CrossOriginResourceSharing (CORS), your WebService(s) can handle CORS requests. Unexpected things happen. If a request cannot be processed because of a failure, your service needs to tell via the response what happened and why. For this reason HTTP status codes exist and it is important to use the correct code in every exceptional situation. If path or query parameters are not valid (content or type) then use http.StatusBadRequest. Despite a valid URI, the resource requested may not be available If the application logic could not process the request (or write the response) then use http.StatusInternalServerError. The request has a valid URL but the method (GET,PUT,POST,...) is not allowed. The request does not have or has an unknown Accept Header set for this operation. The request does not have or has an unknown Content-Type Header set for this operation. In addition to setting the correct (error) Http status code, you can choose to write a ServiceError message on the response. This package has several options that affect the performance of your service. It is important to understand them and how you can change it. DoNotRecover controls whether panics will be caught to return HTTP 500. If set to false, the container will recover from panics. Default value is true If content encoding is enabled then the default strategy for getting new gzip/zlib writers and readers is to use a sync.Pool. Because writers are expensive structures, performance is even more improved when using a preloaded cache. You can also inject your own implementation. This package has the means to produce detail logging of the complete Http request matching process and filter invocation. Enabling this feature requires you to set an implementation of restful.StdLogger (e.g. log.Logger) instance such as: The restful.SetLogger() method allows you to override the logger used by the package. By default restful uses the standard library `log` package and logs to stdout. Different logging packages are supported as long as they conform to `StdLogger` interface defined in the `log` sub-package, writing an adapter for your preferred package is simple. (c) 2012-2015, http://ernestmicklei.com. MIT License
35 versions
Latest release: almost 2 years ago
9,617 dependent packages

View more package details: https://packages.ecosyste.ms/registries/proxy.golang.org/packages/github.com/emicklei/go-restful

View more repository details: https://repos.ecosyste.ms/hosts/GitHub/repositories/emicklei%2Fgo-restful

Dependent Repos 42,447

admariner/jitsu Fork of jitsucom/jitsu
Jitsu is an open-source data integration platform
  • v0.0.0-20170410110728-ff4f55a20633 configurator/backend/go.sum
  • v2.9.5+incompatible configurator/backend/go.sum
  • v0.0.0-20170410110728-ff4f55a20633 server/go.sum
  • v2.9.5+incompatible server/go.sum

Size: 29.4 MB - Last synced: about 2 months ago - Pushed: 10 months ago

kmodules/resource-metadata
API for defining metadata about Kubernetes resources
  • v2.9.5+incompatible go.mod
  • v0.0.0-20170410110728-ff4f55a20633 go.sum
  • v2.9.5+incompatible go.sum

Size: 76.4 MB - Last synced: about 17 hours ago - Pushed: about 17 hours ago

ossf/scorecard-action
Official GitHub Action for OpenSSF Scorecard.
  • v0.0.0-20170410110728-ff4f55a20633 go.sum
  • v2.9.5+incompatible go.sum

Size: 6.44 MB - Last synced: about 23 hours ago - Pushed: 1 day ago

zeromike/syft Fork of anchore/syft
CLI tool and library for generating a Software Bill of Materials from container images and filesystems
  • v0.0.0-20170410110728-ff4f55a20633 go.sum
  • v2.9.5+incompatible go.sum

Size: 10.4 MB - Last synced: 12 months ago - Pushed: almost 2 years ago

aberja/argo Fork of argoproj/argo-workflows
Argo Workflows: Get stuff done with Kubernetes.
  • v2.15.0+incompatible go.mod
  • v0.0.0-20170410110728-ff4f55a20633 go.sum
  • v2.9.5+incompatible go.sum
  • v2.12.0+incompatible go.sum
  • v2.15.0+incompatible go.sum

Size: 67.2 MB - Last synced: about 1 year ago - Pushed: about 1 year ago

krasish/test-infra Fork of kyma-project/test-infra
Test infrastructure for the Kyma project.
  • v0.0.0-20170410110728-ff4f55a20633 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v2.9.5+incompatible development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v0.0.0-20170410110728-ff4f55a20633 development/kyma-ci-force-bot/ciforcebot/go.sum
  • v2.9.5+incompatible development/kyma-ci-force-bot/ciforcebot/go.sum
  • v0.0.0-20170410110728-ff4f55a20633 development/prow-installer/go.sum
  • v0.0.0-20170410110728-ff4f55a20633 development/test-log-collector/go.sum
  • v2.9.5+incompatible development/test-log-collector/go.sum
  • v0.0.0-20170410110728-ff4f55a20633 go.sum
  • v2.9.5+incompatible go.sum

Size: 15.3 MB - Last synced: about 1 year ago - Pushed: about 1 year ago

appscode-cloud/installer
  • v0.0.0-20170410110728-ff4f55a20633 go.sum

Size: 19.7 MB - Last synced: 12 days ago - Pushed: 13 days ago

spolti/kie-cloud-operator Fork of kiegroup/kie-cloud-operator
OCP Operator for KIE
  • v0.0.0-20170410110728-ff4f55a20633 go.sum
  • v2.9.5+incompatible go.sum

Size: 100 MB - Last synced: 8 months ago - Pushed: 8 months ago

alicefr/kubevirt Fork of kubevirt/kubevirt
Kubernetes Virtualization API and runtime in order to define and manage virtual machines.
  • v0.0.0-20170410110728-ff4f55a20633 cluster-up/cluster/kind-k8s-sriov-1.17.0/csrcreator/go.sum
  • v2.10.0+incompatible go.mod
  • v0.0.0-20170410110728-ff4f55a20633 go.sum
  • v2.8.1+incompatible go.sum
  • v2.9.5+incompatible go.sum
  • v2.10.0+incompatible go.sum
  • v2.6.0+incompatible staging/src/kubevirt.io/client-go/examples/listvms/go.sum
  • v0.0.0-20170410110728-ff4f55a20633 staging/src/kubevirt.io/client-go/go.sum
  • v2.9.5+incompatible staging/src/kubevirt.io/client-go/go.sum
  • v2.10.0+incompatible staging/src/kubevirt.io/client-go/go.sum

Size: 255 MB - Last synced: 22 days ago - Pushed: 22 days ago

ryanlycch/go-zero-looklook Fork of Mikaelemmmm/go-zero-looklook
🔥基于go-zero(go zero) 微服务全技术栈开发最佳实践项目。Develop best practice projects based on the full technology stack of go zero (go zero) microservices.
  • v0.0.0-20170410110728-ff4f55a20633 go.sum

Size: 101 MB - Last synced: 29 days ago - Pushed: 29 days ago

ahmedabu98/beam Fork of apache/beam
Apache Beam is a unified programming model for Batch and Streaming
  • v0.0.0-20170410110728-ff4f55a20633 sdks/go.sum
  • v2.9.5+incompatible sdks/go.sum

Size: 365 MB - Last synced: 27 days ago - Pushed: 28 days ago

champ-oss/terraform-aws-metabase
  • v0.0.0-20170410110728-ff4f55a20633 test/src/go.sum
  • v2.9.5+incompatible test/src/go.sum

Size: 241 KB - Last synced: 6 days ago - Pushed: 7 days ago

fahedouch/crossplane-runtime Fork of crossplane/crossplane-runtime
A set of libraries for writing Crossplane controllers.
  • v0.0.0-20170410110728-ff4f55a20633 go.sum
  • v2.9.5+incompatible go.sum

Size: 2.37 MB - Last synced: 10 months ago - Pushed: 10 months ago

nakamasato/mysql-operator
Manage MySQL users, databases, schemas, etc.
  • v0.0.0-20170410110728-ff4f55a20633 go.sum
  • v2.9.5+incompatible go.sum

Size: 1.27 MB - Last synced: about 16 hours ago - Pushed: about 17 hours ago

observIQ/grafana-agent Fork of grafana/agent
Telemetry agent for the LGTM stack.
  • v0.0.0-20170410110728-ff4f55a20633 go.sum
  • v2.9.5+incompatible go.sum

Size: 48.3 MB - Last synced: 5 months ago - Pushed: 5 months ago

tharun208/loki Fork of grafana/loki
Like Prometheus, but for logs.
  • v0.0.0-20170410110728-ff4f55a20633 go.sum
  • v2.9.5+incompatible go.sum
  • v2.9.5+incompatible operator/go.mod
  • v0.0.0-20170410110728-ff4f55a20633 operator/go.sum
  • v2.9.5+incompatible operator/go.sum
  • v0.0.0-20170410110728-ff4f55a20633 tools/lambda-promtail/go.sum
  • v2.9.5+incompatible tools/lambda-promtail/go.sum

Size: 168 MB - Last synced: 22 days ago - Pushed: about 1 year ago

Tatsinnit/kubelogin Fork of Azure/kubelogin
A Kubernetes credential (exec) plugin implementing azure authentication
  • v0.0.0-20170410110728-ff4f55a20633 go.sum
  • v2.9.5+incompatible go.sum

Size: 1.63 MB - Last synced: 22 days ago - Pushed: 4 months ago

xpivarc/kubevirt Fork of kubevirt/kubevirt
Kubernetes Virtualization API and runtime in order to define and manage virtual machines.
  • v2.10.0+incompatible go.mod
  • v0.0.0-20170410110728-ff4f55a20633 go.sum
  • v2.8.1+incompatible go.sum
  • v2.9.5+incompatible go.sum
  • v2.9.6+incompatible go.sum
  • v2.10.0+incompatible go.sum
  • v2.6.0+incompatible staging/src/kubevirt.io/client-go/examples/listvms/go.sum
  • v0.0.0-20170410110728-ff4f55a20633 staging/src/kubevirt.io/client-go/go.sum
  • v2.8.1+incompatible staging/src/kubevirt.io/client-go/go.sum
  • v2.9.5+incompatible staging/src/kubevirt.io/client-go/go.sum
  • v2.9.6+incompatible staging/src/kubevirt.io/client-go/go.sum
  • v2.10.0+incompatible staging/src/kubevirt.io/client-go/go.sum
  • v0.0.0-20170410110728-ff4f55a20633 cluster-up/cluster/kind-k8s-sriov-1.17.0/certcreator/go.sum

Size: 262 MB - Last synced: 2 months ago - Pushed: 2 months ago

antonyggvzvmnxxcx/linkerd2 Fork of linkerd/linkerd2
Ultralight, security-first service mesh for Kubernetes. Main repo for Linkerd 2.x.
  • v2.9.5+incompatible go.mod
  • v0.0.0-20170410110728-ff4f55a20633 go.sum
  • v2.9.5+incompatible go.sum

Size: 33.5 MB - Last synced: about 1 year ago - Pushed: about 1 year ago

jan--f/telemeter Fork of openshift/telemeter
Prometheus push federation
  • v0.0.0-20170410110728-ff4f55a20633 go.sum
  • v0.0.0-20170410110728-ff4f55a20633 tools/go.sum

Size: 35 MB - Last synced: 11 months ago - Pushed: 11 months ago

rfay/ddev Fork of ddev/ddev
Drud dev: a local development environment management system
  • v0.0.0-20170410110728-ff4f55a20633 go.sum
  • v2.9.5+incompatible go.sum

Size: 110 MB - Last synced: 7 days ago - Pushed: 7 days ago

gtully/activemq-artemis-operator Fork of artemiscloud/activemq-artemis-operator
  • v0.0.0-20170410110728-ff4f55a20633 go.sum
  • v2.9.5+incompatible go.sum

Size: 55.1 MB - Last synced: 2 days ago - Pushed: 6 days ago

FranLucchini/try_seldonCore_JenkinsX
Check how to use Seldon Core with Jenkins X
  • v0.0.0-20170410110728-ff4f55a20633 versionStream/tests/go.sum
  • v2.9.5+incompatible versionStream/tests/go.sum

Size: 244 KB - Last synced: about 1 year ago - Pushed: almost 2 years ago

carlkyrillos/integreatly-operator Fork of integr8ly/integreatly-operator
An Openshift Operator based on the Operator SDK for installing and reconciling Integreatly services
  • v0.0.0-20170410110728-ff4f55a20633 go.sum
  • v2.9.5+incompatible go.sum
  • v2.11.1+incompatible go.sum

Size: 126 MB - Last synced: 21 days ago - Pushed: 21 days ago

rancher-max/rancher Fork of rancher/rancher
Complete container management platform
  • v2.16.0+incompatible cmd/rancherd/go.mod
  • v0.0.0-20170410110728-ff4f55a20633 cmd/rancherd/go.sum
  • v2.9.5+incompatible cmd/rancherd/go.sum
  • v2.16.0+incompatible cmd/rancherd/go.sum
  • v2.16.0+incompatible go.mod
  • v0.0.0-20170410110728-ff4f55a20633 go.sum
  • v2.9.5+incompatible go.sum
  • v2.16.0+incompatible go.sum

Size: 131 MB - Last synced: 28 days ago - Pushed: 28 days ago

FairwindsOps/insights-cli
A command line tool for Fairwinds Insights
  • v0.0.0-20170410110728-ff4f55a20633 go.sum
  • v2.9.5+incompatible go.sum

Size: 460 KB - Last synced: 22 days ago - Pushed: 23 days ago

accuknox/tools
Collection of command line tools to deploy policy engines, policy discovery engines and associated components.
  • v0.0.0-20170410110728-ff4f55a20633 container-snapshot/go.sum
  • v2.9.5+incompatible container-snapshot/go.sum

Size: 40.1 MB - Last synced: 10 months ago - Pushed: 10 months ago

jrivera-px/operator Fork of libopenstorage/operator
Storage operator for Kubernetes
  • v0.0.0-20170410110728-ff4f55a20633 go.sum
  • v2.9.5+incompatible go.sum
  • v2.10.0+incompatible go.sum

Size: 34.9 MB - Last synced: about 1 year ago - Pushed: over 1 year ago