{"modulePath":"github.com/opencloud-eu/opencloud","version":"v1.1.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package http\n\n## Functions\n\n```go\nfunc Server(opts ...Option) (http.Service, error)\n```\nServer initializes the http service and server.\n\n## Types\n\n```go\ntype Option func(o *Options)\n```\nOption defines a single option function.\n\n```go\nfunc Config(val *config.Config) Option\n```\nConfig provides a function to set the config option.\n\n```go\nfunc Context(val context.Context) Option\n```\nContext provides a function to set the context option.\n\n```go\nfunc Flags(val []cli.Flag) Option\n```\nFlags provides a function to set the flags option.\n\n```go\nfunc Handler(h http.Handler) Option\n```\nHandler provides a function to set the Handler option.\n\n```go\nfunc Logger(val log.Logger) Option\n```\nLogger provides a function to set the logger option.\n\n```go\nfunc Metrics(val *metrics.Metrics) Option\n```\nMetrics provides a function to set the metrics option.\n\n```go\nfunc Middlewares(val alice.Chain) Option\n```\nMiddlewares provides a function to register middlewares\n\n```go\ntype Options struct {\n\tLogger      log.Logger\n\tContext     context.Context\n\tConfig      *config.Config\n\tHandler     http.Handler\n\tMetrics     *metrics.Metrics\n\tFlags       []cli.Flag\n\tMiddlewares alice.Chain\n}\n```\nOptions defines the available options for this package.\n\n","path":"github.com/opencloud-eu/opencloud/services/proxy/pkg/server/http","name":"http","synopsis":"","isRedistributable":true}
