data

package
v0.0.0-...-dfe096b Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package data 数据源注入

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(
	New,
)

ProviderSet is data providers.

Functions

This section is empty.

Types

type IData

type IData interface {
	// GetRdb redis
	GetRdb() *redis.Client
	// GetEdb db
	GetEdb() *entx.ClientSet
}

IData 数据源

func New

func New(c config.IConfig, log log.ILogger) (IData, func(), error)

New .

Jump to

Keyboard shortcuts

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