conf

package
v0.0.0-...-29191c4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Access

type Access struct {
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

type Certificate

type Certificate struct {
	Cert       string `yaml:"cert"`
	PrivateKey string `yaml:"private_key"`
}

type Config

type Config struct {
	PublicBaseUrl string `yaml:"public_base_url"`
	Port          int    `yaml:"port"`
	Dsn           string `yaml:"dsn"`
	Access        `yaml:"access"`
	Certificate   `yaml:"certificate"`
	License       `yaml:"license"`
	Status        `yaml:"status"`
}

LCP Server configuration

func Init

func Init(configFile string) (*Config, error)

type License

type License struct {
	Provider string `yaml:"provider"` // URI
	Profile  string `yaml:"profile"`  // "http://readium.org/lcp/basic-profile" || "http://readium.org/lcp/profile-1.0" || ...
	HintLink string `yaml:"hint_links"`
}

type Status

type Status struct {
	RenewDefaultDays int    `yaml:"renew_default_days"`
	RenewMaxDays     int    `yaml:"renew_max_days"`
	RenewLink        string `yaml:"renew_link"`
}

Jump to

Keyboard shortcuts

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