appstate

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareAndSwapDB

func CompareAndSwapDB(old, new *dbx.DB) bool

CompareAndSwapDB 仅供测试环境安全地安装和移除临时数据库实例。

func DB

func DB() *dbx.DB

DB 返回当前进程级数据库实例,未初始化时返回 nil。

func Redis added in v1.1.0

func Redis() rdx.Client

Redis 返回当前进程级 Redis 客户端,未初始化时返回 nil。

func SetDB

func SetDB(db *dbx.DB)

SetDB 设置生产运行时使用的进程级数据库实例。

func SetRedis added in v1.1.0

func SetRedis(client rdx.Client)

SetRedis 设置生产运行时使用的进程级 Redis 客户端。

Types

This section is empty.

Jump to

Keyboard shortcuts

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