going

package module
v0.0.0-...-3cadddf Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 5 Imported by: 0

README

going

some helpful libs for writing Go apps

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithBiz

func WithBiz(ctx context.Context, biz bizapp.Biz) context.Context

WithDatabase put biz in context

func WithDatabase

func WithDatabase(ctx context.Context, database *db.Database) context.Context

WithDatabase put database in context

func WithLogger

func WithLogger(ctx context.Context, logger *logger.Logger) context.Context

WithLogger put logger in context

Types

type Ctx

type Ctx interface {
	context.Context
	WebContext() WebContext
	Logger() *logger.Logger
	DB() *db.Database
	Biz() bizapp.Biz
}

func Context

func Context(ctx WebContext) Ctx

type WebContext

type WebContext echo.Context

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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