daemon

package
v1.0.2-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Signal = flag.String("s", "", "send `signal` to a master process: stop, restart, status")
)

Functions

This section is empty.

Types

type Daemon

type Daemon interface {
	Start() error
	Stop() error
	Restart() error
	Status() error
}

func NewDaemon

func NewDaemon() Daemon

type Server

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

func NewServer

func NewServer(gRPCServer *grpc.Server, ip net.IP, port uint16, serviceName, instanceId string, regClient discover.RegistryClient) Server

func (*Server) Start

func (s *Server) Start(errChan chan<- error)

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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