serve

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2019 License: BSD-2-Clause Imports: 35 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Compiling and serving static files using esc

go install github.com/mjibson/esc

# Compile changes to static files 
cd $GOPATH/src/github.com/cloudflare/cfssl
esc -pkg serve -prefix cli/serve/static cli/serve/static > cli/serve/static.go

# Build and run CFSSL
go build ./cmd/cfssl/...
./cfssl serve

Documentation

Overview

Package serve implements the serve command for CFSSL's API.

Index

Constants

This section is empty.

Variables

View Source
var Command = &cli.Command{UsageText: serverUsageText, Flags: serverFlags, Main: serverMain}

Command assembles the definition of Command 'serve'

View Source
var V1APIPrefix = "/api/v1/cfssl/"

V1APIPrefix is the prefix of all CFSSL V1 API Endpoints.

Functions

func SetEndpoint

func SetEndpoint(path string, getHandler func() (http.Handler, error))

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL