handler

package
v0.0.0-...-2dbb158 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decorate

func Decorate(next http.Handler, ds ...Decorator) http.Handler

func New

func New(ctx context.Context,
	workerPool *work.Pool,
	db *gorm.DB,
) (http.Handler, error)

Types

type Decorator

type Decorator func(http.Handler) http.Handler

type ExpressionJSON

type ExpressionJSON struct {
	Expression string `json:"expression"`
}

type Operation

type Operation struct {
	Operator      string `json:"operator"`
	ExecutionTime int    `json:"execution_time"`
}

type OperationsTime

type OperationsTime struct {
	AddTime int `json:"add_time"`
	SubTime int `json:"sub_time"`
	MulTime int `json:"mul_time"`
	DivTime int `json:"div_time"`
}

type Worker

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

Jump to

Keyboard shortcuts

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