api

package
v0.0.0-...-4e27f62 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Validate = validator.New()

Functions

func WriteJSON

func WriteJSON(w http.ResponseWriter, status int, v any) error

Types

type RESTServer

type RESTServer struct {
	Router *chi.Mux
}

func NewRESTServer

func NewRESTServer() *RESTServer

func (*RESTServer) Run

func (s *RESTServer) Run(ctx context.Context, cfg *config.RESTConfig) error

func (*RESTServer) UseDefaultMiddleware

func (s *RESTServer) UseDefaultMiddleware(cfg *config.RESTConfig)

Jump to

Keyboard shortcuts

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