Versions in this module Expand all Collapse all v1 v1.2.0 Dec 3, 2019 Changes in this version + var ForceStopTimeout = 5 * time.Second + type Config struct + ApiRequestTimeout int + DevMod bool + EnableCORS bool + Host string + Port int + RestartOnFail bool + func (c *Config) TCPAddr() string + func (c *Config) Validate() error + type Server struct + Config Config + GetConfig func() Config + GetRouter func(*logrus.Entry, Config) http.Handler + Name string + func NewServer(name string, config Config, rGetter func(*logrus.Entry, Config) http.Handler) Server + func (s *Server) Context() uwe.WContext + func (s *Server) Init(parentCtx context.Context) uwe.Worker + func (s *Server) RestartOnFail() bool + func (s *Server) Run(ctx uwe.WContext) uwe.ExitCode Other modules containing this package github.com/lancer-kit/uwe/v2 github.com/lancer-kit/uwe/v3