api

package
v0.0.0-...-237472a Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

API is an instance of the API.

func NewService

func NewService(db database.Storage) *API

NewService returns a new API object.

func (*API) GetUsers

func (api *API) GetUsers(w http.ResponseWriter, r *http.Request)

GetUsers handles GET /users.

func (*API) Routes

func (api *API) Routes() http.Handler

Routes returns the API routes.

Jump to

Keyboard shortcuts

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