cli

package
v0.0.0-...-5354b93 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(configPath, devURL, addr string) error

Run is an entry point for a CLI.

Types

type Config

type Config struct {
	JWTSecret string            `json:"jwt_secret"`
	Modules   []module.Type     `json:"modules"`
	Users     map[string]string `json:"users"`
	Share     *ShareConfig      `json:"share"`
	Gallery   *GalleryConfig    `json:"gallery"`
	Files     *FilesConfig      `json:"files"`
}

Config defines configuration variables for CLI.

type FilesConfig

type FilesConfig struct {
	Path string `json:"path"`
}

FilesConfig defines files module related configuration variables for CLI.

type GalleryConfig

type GalleryConfig struct {
	Path  string `json:"path"`
	Cache string `json:"cache"`
}

GalleryConfig defines gallery related configuration variables for CLI.

type ShareConfig

type ShareConfig struct {
	Path string `json:"path"`
}

ShareConfig defines share related configuration variables for CLI.

Jump to

Keyboard shortcuts

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