api

package
v0.0.0-...-80c1f95 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: MIT Imports: 8 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 {
	DB  ezdb.Collection[*types.Redirect]
	Log zerolog.Logger

	AllPath string
	Token   string
}

func (*API) Delete

func (api *API) Delete(w http.ResponseWriter, req *http.Request)

func (*API) Get

func (api *API) Get(w http.ResponseWriter, req *http.Request)

func (*API) GetAll

func (api *API) GetAll(w http.ResponseWriter, req *http.Request)

func (*API) Put

func (api *API) Put(w http.ResponseWriter, req *http.Request)

func (*API) ServeHTTP

func (api *API) ServeHTTP(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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