api

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger(l *zap.Logger) func(next http.Handler) http.Handler

Logger is a middleware that logs the start and end of each request, along with some useful data about what was requested, what the response status was, and how long it took to return.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI(registry *peers.Registry, linkage *chains.Linkage, bind string) (*API, error)

func (*API) Run

func (a *API) Run(ctx context.Context)

func (*API) Shutdown

func (a *API) Shutdown()

Jump to

Keyboard shortcuts

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