server

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: GPL-3.0 Imports: 22 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 New

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

type Params

type Params struct {
	Host      string
	Port      int
	BasicAuth *BasicAuth
	AuthToken *AuthToken
	TLS       *config.TLS
	Logger    logger.Logger
	Handlers  []New
	AssetsFS  fs.FS
}

type Server

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

func NewServer

func NewServer(params Params) *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