package
0.0.0-20161212064103-c3dbfd13ee36
Repository: https://github.com/daocloud/dao.git
Documentation: pkg.go.dev
# Functions
DebugRequestMiddleware dumps the request to logger.
NewCORSMiddleware creates a new CORSMiddleware with default headers.
NewUserAgentMiddleware creates a new UserAgentMiddleware with the server version.
NewVersionMiddleware creates a new VersionMiddleware with the default versions.
# Structs
CORSMiddleware injects CORS headers to each request when it's configured.
UserAgentMiddleware is a middleware that validates the client user-agent.
VersionMiddleware is a middleware that validates the client and server versions.
# Interfaces
Middleware is an interface to allow the use of ordinary functions as Docker API filters.