handlers

package
v0.0.0-...-f3a21bf Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowOriginFunc

func AllowOriginFunc(r *http.Request, origin string) bool

Types

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

type Server

type Server struct {
	Router *chi.Mux
	DB     *gorm.DB
}

func (*Server) Initialize

func (server *Server) Initialize(username, password, hostname, dbname string)

func (*Server) Run

func (server *Server) Run(addr string)

Jump to

Keyboard shortcuts

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