runtime

package
v0.0.0-...-1c24166 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RuntimeProviderSet = wire.NewSet(
	configProviderSet,
	zdb.Open,
	zredis.NewClient,
	wire.NewSet(wire.Struct(new(Runtime), "*")),
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Mysql zdb.Config    `yaml:"mysql"`
	Redis zredis.Config `yaml:"redis"`
}

func NewConfig

func NewConfig(c config.Config) (*Config, error)

type Runtime

type Runtime struct {
	Config *Config
	DB     *gorm.DB
	RC     *redis.Client
}

Jump to

Keyboard shortcuts

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