kernel

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 5 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kernel

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

func New

func New(options ...KernelOption) *Kernel

func (*Kernel) Bootstrap

func (k *Kernel) Bootstrap() error

func (*Kernel) Run

func (k *Kernel) Run() error

type KernelOption

type KernelOption func(*Kernel) *Kernel

func Bootstrap

func Bootstrap(bootstrap ...func() error) KernelOption

func InitRoutes

func InitRoutes(cb func(r *router.Router)) KernelOption

func Middleware

func Middleware(middleware ...router.MiddlewareFunc) KernelOption

func Port

func Port(port int) KernelOption

func RootHandler

func RootHandler(rootHandler http.Handler) KernelOption

Jump to

Keyboard shortcuts

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