mist

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get[T any](ctx context.Context) T

func Register

func Register[T any](mistName string, driver Middleware) error

func Run

func Run(ctx context.Context) error

Types

type DriverCreater

type DriverCreater[C any] func(mistName string) error

type Middleware

type Middleware interface {
	Config() interface{}
}

type MiddlewareConfig

type MiddlewareConfig struct {
	Name    string        `yaml:"name"`
	Configs []interface{} `yaml:"configs"`
}

type MistConfig

type MistConfig struct {
	Middlewares []*MiddlewareConfig `yaml:"middlewares"`
}

Jump to

Keyboard shortcuts

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