server

package
v0.0.0-...-1b9946f Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Entry

func Entry(
	port int,
	labelStore labelstore.LabelStore,
	gadgetID string,
	defaultRef *gadget.DataRef,
	maxBatchSize int,
	log *zap.Logger,
) error

Types

type Server

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

Server is a server that samples frames from an input gadget and allows the user to label those frames. The labels are stored in a database, and they can be sampled like any other gadget output.

func NewServer

func NewServer(
	labelStore labelstore.LabelStore,
	gadgetID string,
	maxBatchSize int,
	defaultRef *gadget.DataRef,
	log *zap.Logger,
) *Server

NewServer creates a new filter server.

func (*Server) Listen

func (s *Server) Listen(port int) error

Listen starts the filter server.

Jump to

Keyboard shortcuts

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