digesterd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// Middleware is a list of service middleware to install on the router.
	Middleware []func(http.Handler) http.Handler

	// HTTPClient is the client to be used with the default Queuer module.
	// If no client is provided, a default will be used.
	HTTPClient *http.Client

	// Queuer is responsible for queuing digester jobs which will eventually be consumed
	// by the Produce handler. The built in Queuer POSTs to an HTTP endpoint.
	Queuer types.Queuer

	// Storage provides a mechanism to hook into a persistent store for the digests. The
	// built in Storage uses S3 as the persistent storage for digest blobs.
	Storage types.Storage

	// Marker is responsible for marking which digests jobs are inprogress. The built in
	// Marker uses S3 to hold this state.
	Marker types.Marker
}

Service is a container for all of the pluggable modules used by the service

func (*Service) BindRoutes

func (s *Service) BindRoutes(router chi.Router) error

BindRoutes binds the service handlers to the provided router

Directories

Path Synopsis
Package handlers is a container of all HTTP API handlers which should be in the form of either http.HandlerFunc or http.Handler.
Package handlers is a container of all HTTP API handlers which should be in the form of either http.HandlerFunc or http.Handler.
v1
Package v1 contains all handlers used to service the version 1.X.X API.
Package v1 contains all handlers used to service the version 1.X.X API.
Package logs is a container of all structure logs that the service will emit.
Package logs is a container of all structure logs that the service will emit.
Package types is a container of all of the domain types and interfaces that are used across multiple packages within the service.
Package types is a container of all of the domain types and interfaces that are used across multiple packages within the service.

Jump to

Keyboard shortcuts

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