router

package
v1.7.14 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

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

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) http.Handler

New returns REST route&method information from handler interface.

Types

type Option

type Option func(*router)

func WithErrGroup

func WithErrGroup(eg errgroup.Group) Option

func WithHandler

func WithHandler(h rest.Handler) Option

func WithTimeout

func WithTimeout(timeout string) Option

Jump to

Keyboard shortcuts

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