server

package
v1.0.0-beta.15 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server           bool
	Address          string
	UnixDomainSocket string
	Port             int
	StreamingPort    int
	Concurrency      int
	Logging          bool
}

type Server

type Server interface {
	io.Closer
	StartNonBlocking() error
}

Server is an interface for the kb-agent server.

func NewHTTPServer

func NewHTTPServer(logger logr.Logger, config Config, services []service.Service) Server

NewHTTPServer returns a new HTTP server.

func NewStreamingServer

func NewStreamingServer(logger logr.Logger, config Config, service service.Service) Server

NewStreamingServer returns a new Streaming server.

Jump to

Keyboard shortcuts

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