Documentation
¶
Index ¶
- type Server
- func (s *Server) AddBlack(c fiber.Ctx) error
- func (s *Server) Close() error
- func (s *Server) DeleteBlack(c fiber.Ctx) error
- func (s *Server) GetBlackList(c fiber.Ctx) error
- func (s *Server) GetLinkType(c fiber.Ctx) error
- func (s *Server) GetMetricsReport(c fiber.Ctx) error
- func (s *Server) GetSources(c fiber.Ctx) error
- func (s *Server) GetTargets(c fiber.Ctx) error
- func (s *Server) HandleStatusNotFound()
- func (s *Server) Ping(c fiber.Ctx) error
- func (s *Server) ServeEmbeddedFiles(staticFS embed.FS)
- func (s *Server) ServeStaticDirectory(directory string)
- func (s *Server) Start() error
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) DeleteBlack ¶
func (*Server) GetBlackList ¶
func (*Server) GetLinkType ¶
func (*Server) GetMetricsReport ¶
func (*Server) GetSources ¶
func (*Server) GetTargets ¶
func (*Server) HandleStatusNotFound ¶
func (s *Server) HandleStatusNotFound()
func (*Server) ServeEmbeddedFiles ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.