server

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 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 Handler

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

type NewServerArgs

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

	// Configuration for the frontend
	NavbarColor           string
	NavbarTitle           string
	BasePath              string
	APIBaseURL            string
	TimeZone              string
	MaxDashboardPageLimit int
	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