package serve
import "github.com/cloudflare/cfssl/cli/serve"
Package serve implements the serve command for CFSSL's API.
Index ¶
- Variables
- func SetEndpoint(path string, getHandler func() (http.Handler, error))
- func SetWrapHandler(wh func(path string, handler http.Handler, err error) (string, http.Handler, error))
Variables ¶
Command assembles the definition of Command 'serve'
var V1APIPrefix = "/api/v1/cfssl/"
V1APIPrefix is the prefix of all CFSSL V1 API Endpoints.
Functions ¶
func SetEndpoint ¶
SetEndpoint can be used to add additional routes/endpoints to the HTTP server, or to override an existing route/endpoint
func SetWrapHandler ¶
func SetWrapHandler(wh func(path string, handler http.Handler, err error) (string, http.Handler, error))
SetWrapHandler sets the wrap handler which is called for all endpoints A custom wrap handler may be provided in order to add arbitrary server-side pre or post processing of server-side HTTP handling of requests.
Source Files ¶
- Version
- v1.4.0-rc1
- Published
- Oct 30, 2019
- Platform
- js/wasm
- Imports
- 36 packages
- Last checked
- 1 week ago –
Tools for package owners.