routes

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const BasePath = "/api/v1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func NewConfig

func NewConfig() *Config

func (*Config) Cors

func (c *Config) Cors(next http.Handler) http.Handler

func (*Config) GetTimeout

func (c *Config) GetTimeout() time.Duration

func (*Config) SetTimeout

func (c *Config) SetTimeout(timeInSeconds int) *Config

type Router

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

func NewRouter

func NewRouter() *Router

func (*Router) EnableCORS

func (r *Router) EnableCORS() *Router

func (*Router) EnableLogger

func (r *Router) EnableLogger() *Router

func (*Router) EnableRealIP

func (r *Router) EnableRealIP() *Router

func (*Router) EnableRecover

func (r *Router) EnableRecover() *Router

func (*Router) EnableRequestID

func (r *Router) EnableRequestID() *Router

func (*Router) EnableTimeout

func (r *Router) EnableTimeout() *Router

func (*Router) RouterHealth

func (r *Router) RouterHealth(repository adapter.Interface)

func (*Router) RouterProduct

func (r *Router) RouterProduct(repository adapter.Interface)

func (*Router) RouterSwagger

func (r *Router) RouterSwagger()

func (*Router) SetRouters

func (r *Router) SetRouters(repository adapter.Interface) *chi.Mux

Jump to

Keyboard shortcuts

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