handlers

package
v0.0.0-...-7b65136 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InterruptHandler

func InterruptHandler(errc chan<- error)

func NewService

func NewService() pb.LogServiceServer

NewService returns a naïve, stateless implementation of Service.

func WrapDebugService

func WrapDebugService(mu *http.ServeMux)

func WrapEndpoints

func WrapEndpoints(in svc.Endpoints) svc.Endpoints

WrapEndpoints accepts the service's entire collection of endpoints, so that a set of middlewares can be wrapped around every middleware (e.g., access logging and instrumentation), and others wrapped selectively around some endpoints and not others (e.g., endpoints requiring authenticated access). Note that the final middleware wrapped will be the outermost middleware (i.e. applied first)

func WrapService

func WrapService(in pb.LogServiceServer) pb.LogServiceServer

Types

type StorageGetter

type StorageGetter func(*config.StorageConfig) (storage.Storager, error)
var (
	// For test mock
	StorageGet StorageGetter = newStorage
)

Jump to

Keyboard shortcuts

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