chiAdapter

package
v0.0.0-...-81386c3 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func People

func People(wg *sync.WaitGroup)

func StartApi

func StartApi(wg *sync.WaitGroup, port string)

Types

type ChiHandler

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

func NewChiHandler

func NewChiHandler(ps port.Service, sp string) *ChiHandler

func (*ChiHandler) CreatePerson

func (h *ChiHandler) CreatePerson(w http.ResponseWriter, r *http.Request)

func (*ChiHandler) GetPersonByID

func (h *ChiHandler) GetPersonByID(w http.ResponseWriter, r *http.Request)

func (*ChiHandler) GetPersons

func (h *ChiHandler) GetPersons(w http.ResponseWriter, r *http.Request)

func (*ChiHandler) RunChiServer

func (h *ChiHandler) RunChiServer()

func (ChiHandler) SetupChiRoutes

func (h ChiHandler) SetupChiRoutes()

Jump to

Keyboard shortcuts

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