servers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Registry

func Registry(serverType string, resolver IServersResolver)

Types

type IServers

type IServers interface {
	Start() error
	Restart()
	ShutDown()
}

func NewRegistryServer

func NewRegistryServer(serverType string, router []Router, handing interface{}) (IServers, error)

type IServersResolver

type IServersResolver interface {
	Resolve(router []Router, handing interface{}) (IServers, error)
}

type Router

type Router struct {
	Name    string
	Method  string
	Handler interface{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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