{"modulePath":"github.com/mutablelogic/go-server","version":"v1.1.2","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package httpserver\n\nThe \\`httpserver\\` task implements a server which can serve requests over HTTP, HTTPS and FCGI\n\n## Functions\n\n```go\nfunc NewWithPlugin(p Plugin, router plugin.Router) (*t, error)\n```\nCreate a new logger task with provider of other tasks\n\n## Types\n\n```go\ntype Plugin struct {\n\ttask.Plugin\n\tRouter_  types.Task     `json:\"router,omitempty\"`  // The router object which serves the gateways\n\tListen_  types.String   `json:\"listen,omitempty\"`  // Address or path for binding HTTP server\n\tTLS_     *TLS           `json:\"tls,omitempty\"`     // TLS parameters, or nil if not using TLS (ignored for file sockets)\n\tTimeout_ types.Duration `json:\"timeout,omitempty\"` // Read timeout on HTTP requests (ignored for file sockets)\n\tOwner_   types.String   `json:\"owner,omitempty\"`   // Owner of the socket file (ignored for network sockets)\n\tGroup_   types.String   `json:\"group,omitempty\"`   // Owner Group of the socket file (ignored for network sockets)\n}\n```\n\n```go\nfunc (p Plugin) Group() (int, error)\n```\n\n```go\nfunc (p Plugin) Listen() string\n```\n\n```go\nfunc (p Plugin) Mode() os.FileMode\n```\n\n```go\nfunc (p Plugin) Name() string\n```\n\n```go\nfunc (p Plugin) New(ctx context.Context, provider iface.Provider) (iface.Task, error)\n```\nCreate a new logger task with provider of other tasks\n\n```go\nfunc (p Plugin) Owner() (int, error)\n```\n\n```go\nfunc (p Plugin) Router(ctx context.Context, provider iface.Provider) plugin.Router\n```\n\n```go\nfunc (p Plugin) TLS() (*tls.Config, error)\n```\n\n```go\nfunc (p Plugin) Timeout() time.Duration\n```\n\n```go\ntype TLS struct {\n\tKey_  types.String `json:\"key\"`  // Path to TLS Private Key\n\tCert_ types.String `json:\"cert\"` // Path to TLS Certificate\n}\n```\n\n","path":"github.com/mutablelogic/go-server/pkg/httpserver","name":"httpserver","synopsis":"The `httpserver` task implements a server which can serve requests over HTTP, HTTPS and FCGI","isRedistributable":true}
