middleware

package
v0.0.49 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package middleware provides rest.Func Middleware

Package routing provides implementation of Go API for routing http Handler wrapped by rest.Func

Package middleware provides rest.Func Middleware

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TimeoutOption

type TimeoutOption func(*timeout)

func WithErrorGroup

func WithErrorGroup(eg errgroup.Group) TimeoutOption

func WithTimeout

func WithTimeout(dur string) TimeoutOption

type Wrapper

type Wrapper interface {
	Wrap(rest.Func) rest.Func
}

func NewTimeout

func NewTimeout(opts ...TimeoutOption) Wrapper

Jump to

Keyboard shortcuts

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