Versions in this module Expand all Collapse all v0 v0.1.7 Jan 30, 2025 Changes in this version + const ServerDefaultIdleTimeout + const ServerDefaultListenAddr + const ServerDefaultReadTimeout + const ServerDefaultWriteTimeout + var ServerVersion string + type HTTPServer interface + Start func() error + Stop func() error + type MethodHandler map[string]fasthttp.RequestHandler + type Option func(*Server) error + func WithHTTPHandler(method, path string, handler fasthttp.RequestHandler) Option + func WithIdleTimeout(d time.Duration) Option + func WithKafkaBrokers(brokers string) Option + func WithKafkaGitHubTopic(s string) Option + func WithListenAddr(addr string) Option + func WithLogger(l *slog.Logger) Option + func WithReadTimeout(d time.Duration) Option + func WithWriteTimeout(d time.Duration) Option + type Server struct + FastHTTP *fasthttp.Server + Handlers map[string]MethodHandler + IdleTimeout time.Duration + KafkaBrokers kafkacp.KafkaBrokers + KafkaGitHubTopic kafkacp.KafkaTopicIdentifier + ListenAddr string + Logger *slog.Logger + ReadTimeout time.Duration + WriteTimeout time.Duration + func New(options ...Option) (*Server, error) + func (s *Server) Start() error + func (s *Server) Stop() error