webui

package
v0.0.0-...-7e8a2ca Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Overview

Package webui implements the scan2drive web user interface using materializecss.com and jQuery.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(cfg *Config) (http.Handler, *oauth2.Config, error)

Types

type Config

type Config struct {
	ClientSecretPath string
	LockedUsers      *user.Locked
	ScansDir         string
	StateDir         string
	Finders          []scan2drive.ScanSourceFinder
	IngesterFor      func(uid string) *scaningest.Ingester
	AllowedUsers     map[string]bool

	// ListenURLs contains the base URLs of all configured listeners,
	// e.g. ["https://scan2drive.zekjur.net", "http://scan2drive.lan:7120"]
	ListenURLs []string
}

type UI

type UI struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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