server

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Env           string
	IsMultiTenant bool
)

Functions

This section is empty.

Types

type ApplicationServer

type ApplicationServer interface {
	Start()
	RegisterRoute(pattern string, fn func(r chi.Router))
}

type Server

type Server struct {
	ApplicationServer
	Name          string
	Port          int
	Route         *chi.Mux
	IsMultiTenant bool
}

func GetMultiTenantServer

func GetMultiTenantServer(name string, port int) *Server

func GetServer

func GetServer(name string, port int) *Server

func (*Server) RegisterRoute

func (srv *Server) RegisterRoute(pattern string, fn func(r chi.Router)) chi.Router

func (*Server) Start

func (srv *Server) Start()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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