service

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2018 License: GPL-3.0 Imports: 20 Imported by: 20

Documentation

Overview

Package service is the "business logic" layer, encapsulates transaction.

Index

Constants

This section is empty.

Variables

View Source
var Archive = &archiveService{
	mutex: &sync.Mutex{},
}
View Source
var Article = &articleService{
	mutex: &sync.Mutex{},
}
View Source
var Category = &categoryService{
	mutex: &sync.Mutex{},
}
View Source
var Comment = &commentService{
	mutex: &sync.Mutex{},
}
View Source
var Export = &exportService{}
View Source
var Import = &importService{}
View Source
var Init = &initService{
	mutex: &sync.Mutex{},
}
View Source
var Navigation = &navigationService{
	mutex: &sync.Mutex{},
}
View Source
var Setting = &settingService{
	mutex: &sync.Mutex{},
}
View Source
var Statistic = &statisticService{
	mutex: &sync.Mutex{},
}
View Source
var Tag = &tagService{
	mutex: &sync.Mutex{},
}
View Source
var Upgrade = &upgradeService{
	mutex: &sync.Mutex{},
}
View Source
var User = &userService{
	mutex: &sync.Mutex{},
}

Functions

func ConnectDB

func ConnectDB()

func DisconnectDB

func DisconnectDB()

Types

type MarkdownFile

type MarkdownFile struct {
	Name    string
	Path    string
	Content string
}

type PlatformStatus

type PlatformStatus struct {
	Version string `json:"version"`
	Locale  string `json:"locale"`
	Inited  bool   `json:"inited"`
}

type UserBlog

type UserBlog struct {
	ID               uint64 `json:"id"`    // blog ID
	Title            string `json:"title"` // blog title
	URL              string `json:"url"`   // blog URL
	UserID           uint64 `json:"userId"`
	UserRole         int    `json:"userRole"`
	UserArticleCount int    `json:"userArticleCount"`
}

Jump to

Keyboard shortcuts

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