{"modulePath":"github.com/adminium/permify","version":"v0.0.0-20230316071328-839bc5d15687","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package httpserver\n\nPackage httpserver implements HTTP server.\n\n## Types\n\n```go\ntype Option func(*Server)\n```\nOption - Type\n\n```go\nfunc Port(port string) Option\n```\nPort -\n\n```go\nfunc ReadTimeout(timeout time.Duration) Option\n```\nReadTimeout -\n\n```go\nfunc ShutdownTimeout(timeout time.Duration) Option\n```\nShutdownTimeout -.\n\n```go\nfunc WriteTimeout(timeout time.Duration) Option\n```\nWriteTimeout -.\n\n```go\ntype Server struct {\n\t// contains filtered or unexported fields\n}\n```\nServer - Structure for server instance\n\n```go\nfunc New(handler http.Handler, opts ...Option) *Server\n```\nNew - Creates new server instance\n\n```go\nfunc (s *Server) Notify() \u003c-chan error\n```\nNotify - Server notify\n\n```go\nfunc (s *Server) Run()\n```\n\n```go\nfunc (s *Server) Shutdown() error\n```\nShutdown - shutdown the server\n\n","path":"github.com/adminium/permify/pkg/httpserver","name":"httpserver","synopsis":"Package httpserver implements HTTP server.","isRedistributable":true}
