server

package
v0.0.0-...-a142604 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2017 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Offline = 0
	Offline = iota
	// Online = 1
	Online
	// Unknown = 2
	Unknown
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is startup endpoint.

func NewServer

func NewServer(cfg *config.Config) (*Server, error)

NewServer is to create a server.

func (*Server) Close

func (s *Server) Close()

Close server.

func (*Server) Run

func (s *Server) Run()

Run server.

func (*Server) Status

func (s *Server) Status() string

Status of server.

Jump to

Keyboard shortcuts

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