factory

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoDB

type MongoDB struct {
	scene.ModuleFactory
	Config datasource.MongoConfig
}

func (MongoDB) Default

func (m MongoDB) Default() MongoDB

func (MongoDB) Init

func (m MongoDB) Init(container *registry.Container)

func (MongoDB) UseApiVersion

func (m MongoDB) UseApiVersion(value bool) MongoDB

type Mysql

type Mysql struct {
	scene.ModuleFactory
	Config datasource.MysqlConfig
}

func (Mysql) Default

func (m Mysql) Default() Mysql

func (Mysql) Init

func (m Mysql) Init(container *registry.Container)

type Postgres added in v0.3.7

type Postgres struct {
	scene.ModuleFactory
	Config datasource.PostgresConfig
}

func (Postgres) Default added in v0.3.7

func (p Postgres) Default() Postgres

func (Postgres) Init added in v0.3.7

func (p Postgres) Init(container *registry.Container)

type Redis

type Redis struct {
	scene.ModuleFactory
	Config datasource.RedisConfig
}

func (Redis) Default

func (r Redis) Default() Redis

func (Redis) Init

func (r Redis) Init(container *registry.Container)

type Sqlite

type Sqlite struct {
	scene.ModuleFactory
	Config datasource.SqliteConfig
}

func (Sqlite) Default

func (m Sqlite) Default() Sqlite

func (Sqlite) Init

func (m Sqlite) Init(container *registry.Container)

Jump to

Keyboard shortcuts

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