Documentation ¶ Index ¶ func Logger(l *zap.Logger) func(next http.Handler) http.Handler type API func NewAPI(registry *peers.Registry, linkage *chains.Linkage, bind string) (*API, error) func (a *API) Run(ctx context.Context) func (a *API) Shutdown() 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() Source Files ¶ View all Source files api.go entities.go Click to show internal directories. Click to hide internal directories.