persistent

package
v0.0.0-...-3b4566b Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CtxWithTransaction

func CtxWithTransaction(ctx context.Context, tx *gorm.DB) context.Context

func GetDB

func GetDB() *gorm.DB

func GetDBFromCtx

func GetDBFromCtx(ctx context.Context) *gorm.DB

func NewDB

func NewDB(cfg Config)

func SetDB

func SetDB(db *gorm.DB)

Types

type Config

type Config struct {
	DSN             string `mapstructure:"dsn"`
	MaxIdleConns    int    `mapstructure:"max_idle_conns"`
	MaxOpenConns    int    `mapstructure:"max_open_conns"`
	ConnMaxLifetime int    `mapstructure:"conn_max_lifetime"`
	Debug           bool   `mapstructure:"debug"`
}

type FlowEngine

type FlowEngine struct {
}

FlowEngine 是持久化的流程实例

func NewFlowEngine

func NewFlowEngine() *FlowEngine

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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