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

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