config

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigCms

type ConfigCms struct {
	Domain        string
	Port          string
	Email         string
	Protocol      string
	DbURL         string
	StorageDir    string
	MinioURL      string
	MinioUser     string
	MinioPass     string
	Description   string
	IntroText     string
	Space         string
	AllowedExt    []string
	HiddenPosts   []string
	Logger        *slog.Logger
	AllowRegister bool
	MaxSize       uint64
	MaxAssetSize  int64
}

func NewConfigCms

func NewConfigCms() *ConfigCms

type ConfigURL

type ConfigURL interface {
	BlogURL(username string) string
	PostURL(username string, filename string) string
}

Jump to

Keyboard shortcuts

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