serverman

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterServer

func RegisterServer(server Server)

func Start

func Start()

func Stop

func Stop()

Types

type Server

type Server interface {
	Serve()
	Stop()
}

type ServerMan

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

func NewServerMan

func NewServerMan() *ServerMan

func (*ServerMan) RegisterServer

func (s *ServerMan) RegisterServer(server Server)

func (*ServerMan) Start

func (s *ServerMan) Start()

func (*ServerMan) Stop

func (s *ServerMan) Stop()

Jump to

Keyboard shortcuts

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