checkserver

package
v0.0.0-...-abbf249 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPortIsReady

func CheckPortIsReady(needCheckPort uint16, Resp string, maxTryTimes uint) (chanErr chan error)

CheckPortIsReady check port

Types

type CheckServer

type CheckServer struct {
	Port            uint16
	Resp            string
	HTTPServer      *http.Server
	HTTPServerError chan error
}

CheckServer to checkout server is ok

func New

func New(config Config) (checkServer *CheckServer)

New CheckServer

func (*CheckServer) Close

func (server *CheckServer) Close() (err error)

Close check server

func (*CheckServer) Run

func (server *CheckServer) Run() (err error)

Run check server

type Config

type Config struct {
	Port uint16
}

Config CheckServer

Jump to

Keyboard shortcuts

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