api

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server interface {
	Start()
	Stop()
}

Server is the interface for our API server.

func New

func New(address string) (Server, error)

New return a new API server.

Directories

Path Synopsis
middleware
errresponse
Package errresponse implements a custom error renderer for the api as it is described in the chi rest api example, which can be found here: https://github.com/go-chi/chi/blob/master/_examples/rest/main.go
Package errresponse implements a custom error renderer for the api as it is described in the chi rest api example, which can be found here: https://github.com/go-chi/chi/blob/master/_examples/rest/main.go
httplog
Package httplog implements our custom http logger middleware for our API based on zap.
Package httplog implements our custom http logger middleware for our API based on zap.

Jump to

Keyboard shortcuts

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