data

package
v0.0.0-...-48c985e Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSource

func AddSource(name, sourceType, source string) error

AddSource 添加源

func Close

func Close()

Close check and close database connections

func GetHitokoto

func GetHitokoto(kind string) (string, error)

GetHitokoto 获取一言

func IsSourceExist

func IsSourceExist(name string) bool

IsSourceExist 判断源是否存在

func RandSourceName

func RandSourceName() string

RandSourceName 返回随机一个源的名称

func ValidateType

func ValidateType(kind string) bool

ValidateType 验证数据源是否存在

Types

This section is empty.

Jump to

Keyboard shortcuts

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