fiber

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 11 Imported by: 0

README

Fiber - работа с fiber

просто инициализация

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenDB

func OpenDB(database string) *sqlx.DB

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func NewApp

func NewApp(name string, db *sqlx.DB) *App

func (*App) HTMLRouter added in v0.0.5

func (app *App) HTMLRouter(name string, funcRouter HTMLHandler)

func (*App) JSONRouter

func (app *App) JSONRouter(name string, funcRouter StringHandler)

func (*App) Start

func (app *App) Start(port int) error

func (*App) StringRouter

func (app *App) StringRouter(name string, funcRouter StringHandler)

type HTMLHandler added in v0.0.5

type HTMLHandler func(db *sqlx.DB, query string) map[string]interface{}

type StringHandler

type StringHandler func(db *sqlx.DB, query string) string

Jump to

Keyboard shortcuts

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