httpserver

package
v0.0.0-...-da215d9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server represents the HTTP server with configuration and logging.

func NewServer

func NewServer(logger *zap.Logger, conf config.Config) *Server

NewServer creates a new Server instance with the provided logger and configuration.

func (*Server) AuthMiddleware

func (s *Server) AuthMiddleware(ctx *gin.Context)

func (*Server) HandleInteraction

func (s *Server) HandleInteraction(ctx *gin.Context)

func (*Server) Start

func (s *Server) Start() error

Start launches the HTTP server and sets up the routes. It returns an error if the server fails to start.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL