rest

package
v0.0.0-...-3991c3e Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

type Router struct {
	ZapLogger *zap.Logger
	Service   postgres.Postgres
}

Router represents the router

func (Router) AddUser

func (f Router) AddUser(w http.ResponseWriter, r *http.Request)

func (Router) Handler

func (f Router) Handler() http.Handler

Handler returns a http.Handler to be run by a http.Server

func (Router) Ping

func (f Router) Ping(w http.ResponseWriter, r *http.Request)

func (Router) UserFullName

func (f Router) UserFullName(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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