{"modulePath":"github.com/bbklab/kit","version":"v0.7.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package basic\n\n## Functions\n\n```go\nfunc AuthMiddleware(requiredUser, requiredPassword, realm string) endpoint.Middleware\n```\nAuthMiddleware returns a Basic Authentication middleware for a particular user and password.\n\n## Types\n\n```go\ntype AuthError struct {\n\tRealm string\n}\n```\nAuthError represents an authorization error.\n\n```go\nfunc (AuthError) Error() string\n```\nError is an implementation of the Error interface.\n\n```go\nfunc (e AuthError) Headers() http.Header\n```\nHeaders is an implementation of the Headerer interface in go-kit/http.\n\n```go\nfunc (AuthError) StatusCode() int\n```\nStatusCode is an implementation of the StatusCoder interface in go-kit/http.\n\n","path":"github.com/bbklab/kit/auth/basic","name":"basic","synopsis":"","isRedistributable":true}
