manager

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: BSD-3-Clause Imports: 19 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 {
	// ServerAddress is server HTTP address (required).
	ServerAddress string
	// ServerCORS is cross-origin resource sharing configuration
	ServerCORS *cors.Config
	// FileStore is a file storage provider interface (required).
	FileStore fs.FileStore
	// Router is a Gin router instance.
	Router *gin.Engine
	// Browser is a Rod browser instance.
	Browser *rod.Browser
	// BrowserServerID is a unique identifier for the browser server.
	BrowserServerID int
	// BrowserServiceURL is the URL of the browser service.
	BrowserServiceURL string
	// BrowserUserDataDir is the directory where the browser stores its data in the browser service.
	BrowserUserDataDir string
	// BrowserMonitorEnabled enables the browser monitor.
	BrowserMonitorEnabled bool
	// Plugins is a list of plugins to load.
	Plugins []pluginsRegistry.Plugin
}

func DefaultManagerConfig

func DefaultManagerConfig() (Config, error)

type Manager

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

Manager is an HTTP server controller.

func New

func New(cfg Config) (*Manager, error)

func (*Manager) Run

func (m *Manager) Run() error

func (*Manager) Stop

func (m *Manager) Stop() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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