summerboot

package module
v0.0.0-...-63cd407 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 19 Imported by: 0

README

summerboot

full battery included version of summer

Usage

  • PORT, port to listen, default to 8080
  • BIND, address to bind, default to empty string

Donation

See https://guoyk.xyz/donation

Credits

Guo Y.K., MIT License

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main[T Context, AT App[T]](a AT)

Types

type App

type App[T Context] interface {
	summer.App[T]
}

func New

func New[T Context](cf summer.ContextFactory[T], opts ...summer.Option) App[T]

type Context

type Context interface {
	summer.Context

	R() *resty.Request
	RDB() *redis.Client
	DB() *gorm.DB
}

Jump to

Keyboard shortcuts

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