standalone

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

README

Standalone version

Packs proxy, worker, embedded redis, and webUI into single binary. Standalone version does not have persistence, so it cannot be used for production, but it allows to run chorus locally without dependencies.

Installation and usage

See docs

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildHTTPFS

func BuildHTTPFS() http.FileSystem

func PrintConfig

func PrintConfig(src ...config.Src) error

func Start

func Start(ctx context.Context, app dom.AppInfo, conf *Config) error

Types

type Config

type Config struct {
	worker.Config `yaml:",inline,omitempty" mapstructure:",squash"`

	UIPort int `yaml:"uiPort"`

	Proxy struct {
		Enabled bool         `yaml:"enabled"`
		Auth    *auth.Config `yaml:"auth,omitempty"`
		Port    int          `yaml:"port"`
		Address string       `yaml:"address"`
		Cors    *cors.Config `yaml:"cors"`
	} `yaml:"proxy"`
}

func GetConfig

func GetConfig(src ...config.Src) (*Config, error)

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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