Categorygithub.com/distributedio/continuous
modulepackage
0.0.0-20210914061708-acf2009de683
Repository: https://github.com/distributedio/continuous.git
Documentation: pkg.go.dev

# README

Continuous

Build Status

Continuous is a framework to upgrade a daemon binary without interrupt

Features

  • Emigrate listen fds
  • Flexible controlling on multiple phases
  • Graceful stop or force stop the old service
  • Rollback to the old service

Demo

source code

TODO

  • Add unittests

# Packages

No description provided by the author

# Functions

ListenerUpgrader upgrade a raw listener to a higher level listener.
LoggerOutput sets a io.Writer to output log.
New creates a Cont object which upgrades binary continuously.
PidFile custom the pid file path.
ProcName custom the procname, use os.Args[0] if not set.
No description provided by the author
WorkDir custom the work dir, use os.Getwd() if not set.
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Cont keeps your server which implement the Continuous continuously.
ContServer combines listener, addresss and a continuous.
ListenOn some network and address.

# Interfaces

Continuous is the interface of a basic server.

# Type aliases

ContState indicates the state of Cont.
Option to new a Cont.
No description provided by the author