Versions in this module Expand all Collapse all v0 v0.1.0 Aug 21, 2024 Changes in this version + func HealthzHandler() http.Handler + func LoggingMiddleware() func(http.Handler) http.Handler + func RegisterFlags(fs *pflag.FlagSet) + type Option func(*Server) + func WithDrainTimeout(timeout time.Duration) Option + func WithListenAddress(addr string) Option + type RegisterHandler interface + HttpHandler func() (string, http.Handler) + type Server struct + func InitFromViper(v *viper.Viper) *Server + func New(opt ...Option) *Server + func (s *Server) RegisterHandler(handler RegisterHandler) + func (s *Server) Run(stop <-chan struct{}) error