run

package
v0.0.0-...-9b2d47e Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, conf *Config) error

Types

type Config

type Config struct {
	Backend     string                 `fig:"backend" default:"file://."`
	Roots       []Root                 `fig:"roots"`
	Uploads     string                 `fig:"uploads"`
	Listen      string                 `fig:"listen" default:":8080"`
	DB          string                 `fig:"db" default:"/tmp/chaparral.sqlite3"`
	PubkeyFile  string                 `fig:"pubkey_file"`
	Pubkey      string                 `fig:"pubkey"`
	TLSCert     string                 `fig:"tls_cert"`
	TLSKey      string                 `fig:"tls_key"`
	Debug       bool                   `fig:"debug"`
	Permissions server.RolePermissions `fig:"permissions"`
}

type Root

type Root struct {
	ID   string `fig:"id"`
	Path string `fig:"path" validate:"required"`
	Init *struct {
		Layout      string `fig:"layout" default:"0002-flat-direct-storage-layout"`
		Description string `fig:"description"`
	} `fig:"init"`
}

Jump to

Keyboard shortcuts

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