config

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 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        *zap.SugaredLogger
	AllowRegister bool
	MaxSize       int
	MaxAssetSize  int
}

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