store

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TFORMAT = "2006-01-02T15:04:05+08:00"
View Source
var TIME_LOCATION = "Asia/Shanghai" //上海

Functions

This section is empty.

Types

type Config added in v0.0.6

type Config struct {
	Host string //地址
	Port string //端口
	User string //账户
	Name string //数据库名称,仓库名称,sqlite文件名等
	Auth string //认证/密码
	DSN  string //DSN连接

	Monitor bool //监控

	Plugins []string
	Debug   bool //是否开启调试
	MaxIdle int
	MaxOpen int
	Prefix  string //表前缀什么的
	Num     int    //连接标识数

	Level string //级别

	FileServer *fileserver.Config
}

type Store

type Store interface {
	Connect(conf ...*Config)
	//GetInstance(conf ...*config.Config) any
	Close() //关闭连接
}

Directories

Path Synopsis
uid

Jump to

Keyboard shortcuts

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