api

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Router    *chi.Mux
	Validator *validator.Validate
}

func (*App) Delete

func (a *App) Delete(path string, f func(w http.ResponseWriter, r *http.Request), protected bool)

Wrap the router for DELETE method

func (*App) GeoIP

func (a *App) GeoIP(w http.ResponseWriter, r *http.Request)

func (*App) Get

func (a *App) Get(path string, f func(w http.ResponseWriter, r *http.Request), protected bool)

Wrap the router for GET method

func (*App) HealthCheck

func (a *App) HealthCheck(w http.ResponseWriter, r *http.Request)

func (*App) Initialize

func (a *App) Initialize()

App initialize with predefined configuration

func (*App) MyIP added in v0.5.0

func (a *App) MyIP(w http.ResponseWriter, r *http.Request)

func (*App) Post

func (a *App) Post(path string, f func(w http.ResponseWriter, r *http.Request), protected bool)

Wrap the router for POST method

func (*App) Put

func (a *App) Put(path string, f func(w http.ResponseWriter, r *http.Request), protected bool)

Wrap the router for PUT method

func (*App) Serve

func (a *App) Serve()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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