server

package
v0.0.0-...-8ce2553 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServerErr = make(chan error)

ServerErr server error

Functions

func GetServer

func GetServer(protocol string) (microServer.Server, error)

GetServer return the server based on protocol

func GetServers

func GetServers() map[string]microServer.Server

GetServers returns the map of servers

func Init

func Init() error

Init initializes

func InstallPlugin

func InstallPlugin(protocol string, newFunc NewFunc)

InstallPlugin For developer

func StartServer

func StartServer() error

StartServer starting the server

func UnRegistrySelfInstances

func UnRegistrySelfInstances() error

UnRegistrySelfInstances this function removes the self instance

Types

type NewFunc

type NewFunc func(...microServer.Option) microServer.Server

NewFunc returns a server

func GetServerFunc

func GetServerFunc(protocol string) (NewFunc, error)

GetServerFunc returns the server function

Jump to

Keyboard shortcuts

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