server

package
v0.0.0-...-ae9d8b3 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiRouter

func ApiRouter(db orm.DB, e *echo.Echo) *echo.Echo

func AuthTokenMiddleware

func AuthTokenMiddleware(db orm.DB) echo.MiddlewareFunc

func ProductRedirectRouter

func ProductRedirectRouter(db orm.DB, e *echo.Echo) *echo.Echo

func V1ProductsEndpoint

func V1ProductsEndpoint(db orm.DB) echo.HandlerFunc

func V2ArtistEndpoint

func V2ArtistEndpoint(db orm.DB) echo.HandlerFunc

func V2DealsEndpoint

func V2DealsEndpoint(db orm.DB) echo.HandlerFunc

func V2DesignEndpoint

func V2DesignEndpoint(db orm.DB) echo.HandlerFunc

func V2SiteIndexEndpoint

func V2SiteIndexEndpoint(db orm.DB) echo.HandlerFunc

func V2SiteShowEndpoint

func V2SiteShowEndpoint(db orm.DB) echo.HandlerFunc

Types

type Host

type Host struct{ Echo *echo.Echo }

type Hosts

type Hosts map[string]*Host

func SetupRoutes

func SetupRoutes(db orm.DB) Hosts

type Server

type Server struct {
	Echo *echo.Echo
	Addr string
	TLS  bool
}

func (*Server) Start

func (s *Server) Start()

func (*Server) Stop

func (s *Server) Stop()

type Servers

type Servers struct {
	Pool []*Server
}

func Start

func Start(db orm.DB) *Servers

func (*Servers) Add

func (s *Servers) Add(e *echo.Echo, addr string, tls bool)

func (*Servers) StartAll

func (s *Servers) StartAll()

func (*Servers) StopAll

func (s *Servers) StopAll()

type X

type X map[string]interface{}

Jump to

Keyboard shortcuts

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