github.com/vseinstrumentiru/lego@v1.0.2/internal/lego/process.go (about)

     1  package lego
     2  
     3  import (
     4  	health "github.com/AppsFlyer/go-sundheit"
     5  	"github.com/vseinstrumentiru/lego/internal/lego/build"
     6  	"net"
     7  	"time"
     8  )
     9  
    10  type Process interface {
    11  	LogErr
    12  
    13  	Name() string
    14  	DataCenterName() string
    15  	Build() build.Info
    16  	Env() string
    17  	IsDebug() bool
    18  
    19  	Listen(network, addr string) (net.Listener, error)
    20  	Background(execute func() error, interrupt func(error))
    21  	RegisterCheck(cfg *health.Config) error
    22  	ShutdownTimeout() time.Duration
    23  }