app

package
v1.5.33 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package app

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildInfo

type BuildInfo struct {
	Version string `json:"version"`
	Commit  string `json:"commit"`
	Date    string `json:"date"`
}

func (*BuildInfo) String

func (b *BuildInfo) String() string

type CoreServices added in v1.1.1

type CoreServices struct {
	Exec   *exec.Service
	Socket *websocket.Service
	Task   *task.Service
	Help   *help.Service
}

type Services

type Services struct {
	CoreServices
	Modules  *module.Service
	Projects *project.Service
	Export   *export.Service
}

func NewServices

func NewServices(ctx context.Context, st *State, rootLogger util.Logger) (*Services, error)

func (*Services) Close added in v0.2.22

func (s *Services) Close(_ context.Context, _ util.Logger) error

type State

type State struct {
	Debug     bool
	BuildInfo *BuildInfo
	Files     filesystem.FileLoader
	GraphQL   *graphql.Service
	Themes    *theme.Service
	Services  *Services
	Started   time.Time
}

func NewState

func NewState(debug bool, bi *BuildInfo, f filesystem.FileLoader, enableTelemetry bool, _ uint16, logger util.Logger) (*State, error)

func (State) Close added in v0.2.22

func (s State) Close(ctx context.Context, logger util.Logger) error

Directories

Path Synopsis
Package controller - Content managed by Project Forge, see [projectforge.md] for details.
Package controller - Content managed by Project Forge, see [projectforge.md] for details.
cutil
Package cutil - Content managed by Project Forge, see [projectforge.md] for details.
Package cutil - Content managed by Project Forge, see [projectforge.md] for details.
lib
git
log
svg
Code generated from files in client/src/svg.
Code generated from files in client/src/svg.

Jump to

Keyboard shortcuts

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