gemini

package
v0.0.0-...-bc7f4fd Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCfg

func GetCfg(ctx context.Context) *internal.ConfigSite

func GetDB

func GetDB(ctx context.Context) db.DB

func GetField

func GetField(ctx context.Context, index int) string

func GetLogger

func GetLogger(ctx context.Context) *zap.SugaredLogger

func StartServer

func StartServer()

Types

type Route

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

func NewRoute

func NewRoute(pattern string, handler gemini.HandlerFunc) Route

type ServeFn

type ServeFn func(context.Context, gemini.ResponseWriter, *gemini.Request)

func CreateServe

func CreateServe(routes []Route, cfg *internal.ConfigSite, dbpool db.DB, logger *zap.SugaredLogger) ServeFn

Jump to

Keyboard shortcuts

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