server

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthToken

type AuthToken struct {
	Token string
}

type BasicAuth

type BasicAuth struct {
	Username string
	Password string
}

type Handler

type Handler interface {
	Configure(api *operations.BlackdaggerAPI)
}

type NewServerArgs

type NewServerArgs struct {
	Host      string
	Port      int
	BasicAuth *BasicAuth
	AuthToken *AuthToken
	TLS       *config.TLS
	Logger    logger.Logger
	Handlers  []Handler
	AssetsFS  fs.FS
	BasePath  string

	// Configuration for the frontend
	NavbarColor string
	NavbarTitle string
	APIBaseURL  string
	RemoteNodes []string
}

type Server

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

func New

func New(params NewServerArgs) *Server

func (*Server) Serve

func (svr *Server) Serve(ctx context.Context) (err error)

func (*Server) Shutdown

func (svr *Server) Shutdown()

Jump to

Keyboard shortcuts

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