relia

package module
v0.0.0-...-b830f10 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name            string
	CPUAvailability int
	Pidfile         string
}

type Relia

type Relia struct {
	Config
	// contains filtered or unexported fields
}

func New

func New(c Config) *Relia

func (*Relia) ErrorHandler

func (r *Relia) ErrorHandler(h errHandler)

func (*Relia) RegServer

func (r *Relia) RegServer(s Server)

func (*Relia) Run

func (r *Relia) Run() error

func (*Relia) SignalHandler

func (r *Relia) SignalHandler(sign syscall.Signal, handler func())

type Server

type Server interface {
	Run() error
	Shutdown() error
}

Directories

Path Synopsis
s

Jump to

Keyboard shortcuts

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