diffd

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: 19 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 {
	// QueuerHTTPClient is the client to be used with the default Queuer module.
	// If no client is provided, the default client will be used.
	QueuerHTTPClient *http.Client

	// GrapherHTTPClient is the client to be used with the default Grapher module.
	// If no client is provided, the default client will be used.
	GrapherHTTPClient *http.Client

	// Middleware is a list of service middleware to install on the router.
	// The set of prepackaged middleware can be found in pkg/plugins.
	Middleware []func(http.Handler) http.Handler

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

	// Storage provides a mechanism to hook into a persistent store for the graphs. The
	// built in Storage uses S3 as the persistent storage for graph content.
	Storage domain.Storage

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

	// Grapher is responsible for creating a graph of VPC logs for a given time range.
	// The built in grapher calls out to a grapher service.
	Grapher domain.Grapher
}

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 domain is a container of all of the domain types and interfaces that are used across multiple packages within the service.
Package domain is a container of all of the domain types and interfaces that are used across multiple packages within the service.
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.

Jump to

Keyboard shortcuts

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