router

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: Apache-2.0 Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IRouter

type IRouter interface {
	ListenAndServe()
	GetPort() string
	GetMux() *chi.Mux
	Route(pattern string, fn func(router chi.Router)) chi.Router
}

func NewHTTPRouter

func NewHTTPRouter(corsOptions *cors.Options, defaultPort string) IRouter

type Router

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

func (*Router) GetMux

func (r *Router) GetMux() *chi.Mux

func (*Router) GetPort

func (r *Router) GetPort() string

func (*Router) ListenAndServe

func (r *Router) ListenAndServe()

func (*Router) Route

func (r *Router) Route(pattern string, fn func(router chi.Router)) chi.Router

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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