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: 6 modules, 20 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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