server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 18 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
}

func New

func New(ebpf *ebpf.EBPFManager, metrics *metrics.MetricsCollector, processor *processor.Processor) *Server

func (*Server) AddBlack

func (s *Server) AddBlack(c fiber.Ctx) error

func (*Server) Close

func (s *Server) Close() error

func (*Server) DeleteBlack

func (s *Server) DeleteBlack(c fiber.Ctx) error

func (*Server) GetBlackList

func (s *Server) GetBlackList(c fiber.Ctx) error

func (*Server) GetLinkType

func (s *Server) GetLinkType(c fiber.Ctx) error

func (*Server) GetMetricsReport

func (s *Server) GetMetricsReport(c fiber.Ctx) error

func (*Server) GetSources

func (s *Server) GetSources(c fiber.Ctx) error

func (*Server) GetTargets

func (s *Server) GetTargets(c fiber.Ctx) error

func (*Server) HandleStatusNotFound

func (s *Server) HandleStatusNotFound()

func (*Server) Ping

func (s *Server) Ping(c fiber.Ctx) error

func (*Server) ServeEmbeddedFiles

func (s *Server) ServeEmbeddedFiles(staticFS embed.FS)

ServeEmbeddedFiles handles static file serving for embedded files since Fiber v3's static middleware cannot properly handle embed.FS. This implementation provides a custom solution for serving static files from the embedded filesystem, with proper mime type detection and index.html fallback for the root path.

func (*Server) ServeStaticDirectory

func (s *Server) ServeStaticDirectory(directory string)

func (*Server) Start

func (s *Server) Start() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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