conf

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Conf = &Config{}
)

Conf global var

Functions

func Init

func Init() error

Init .

Types

type Config

type Config struct {
	Log      *log.Config
	BM       *bm.ServerConfig
	Verify   *verify.Config
	Tracer   *trace.Config
	Memcache *memcache.Config
	Ecode    *ecode.Config
	Seo      *Seo
	Pages    []*Page
	Sitemaps []*Sitemap
}

Config .

type Page

type Page struct {
	Name string
	Url  string
	Bfs  string
	Path string
}

Page pro, item ...

func GetPage

func GetPage(name string) *Page

GetPage get page config by name

type Seo

type Seo struct {
	Expire  int32
	MaxAge  int32
	BotList []string
}

Seo config

type Sitemap

type Sitemap struct {
	Host string
	Url  string
}

Sitemap app sitemap

func GetSitemap

func GetSitemap(host string) *Sitemap

GetSitemap get sitemap url

Jump to

Keyboard shortcuts

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