core

package
v0.0.0-...-5d153c6 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildWeb

func BuildWeb(s *Service) *http.Server

Types

type Options

type Options struct {
	Binding          string
	Hostname         string
	LogLevel         string
	ConfigDirectory  string
	StorageDirectory string
}

type Service

type Service struct {
	Options
	JobServer *faktory.Server
	FaktoryUI *faktoryui.WebUI
	AdminUI   *adminui.WebUI
	JobRunner *jobrunner.JobRunner
	// contains filtered or unexported fields
}

This is the main Sparq service. It holds all of the child services and orchestrates them.

func NewService

func NewService(db *sqlx.DB, opts Options) (*Service, error)

func (*Service) Close

func (s *Service) Close() error

func (*Service) Context

func (s *Service) Context() context.Context

func (*Service) DB

func (s *Service) DB() *sqlx.DB

Implement sparq.Server interface

func (*Service) Hostname

func (s *Service) Hostname() string

func (*Service) LogLevel

func (s *Service) LogLevel() string

func (*Service) MediaRoot

func (s *Service) MediaRoot() string

func (*Service) Root

func (s *Service) Root() string

func (*Service) Run

func (s *Service) Run() error

Jump to

Keyboard shortcuts

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