Documentation ¶
Index ¶
- Variables
- func HandleAll(w http.ResponseWriter, r *http.Request)
- func HandleHealthCheck(w http.ResponseWriter, r *http.Request)
- func HandleIndividualCheck(w http.ResponseWriter, r *http.Request)
- func LogError(err error)
- func LogRequests(r *http.Request)
- func LogResult(response voucher.Response)
- func NewRouter() *mux.Router
- func Serve(config *Config)
- type Config
- type Route
Constants ¶
This section is empty.
Variables ¶
View Source
var Routes = []Route{ { "All", "POST", "/all", HandleAll, }, { "Individual Check", "POST", "/{check}", HandleIndividualCheck, }, { "healthcheck: /services/ping", "GET", healthCheckPath, HandleHealthCheck, }, }
Routes an array of type Route
Functions ¶
func HandleAll ¶
func HandleAll(w http.ResponseWriter, r *http.Request)
HandleAll is a request handler that makes the calls to create all attestations, this includes DIY, Nobody, Snakeoil
func HandleHealthCheck ¶
func HandleHealthCheck(w http.ResponseWriter, r *http.Request)
HandleHealthCheck is a request handler that returns HTTP Status Code 200 when it is called from shopify cloud
func HandleIndividualCheck ¶
func HandleIndividualCheck(w http.ResponseWriter, r *http.Request)
HandleIndividualCheck is a request handler that executes an individual check and creates an attestation if applicable.
func LogRequests ¶
LogRequests logs the request fields to stdout as Info
Types ¶
Click to show internal directories.
Click to hide internal directories.