factory

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 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    model.DatabaseConfig
	UseApiVer bool
}

func (MongoDB) Default

func (m MongoDB) Default() MongoDB

func (MongoDB) Init

func (m MongoDB) Init() scene.LensInit

func (MongoDB) UseApiVersion

func (m MongoDB) UseApiVersion(value bool) MongoDB

type Mysql

type Mysql struct {
	scene.ModuleFactory
	Config model.DatabaseConfig
}

func (Mysql) Default

func (m Mysql) Default() Mysql

func (Mysql) Init

func (m Mysql) Init() scene.LensInit

type Redis

type Redis struct {
	scene.ModuleFactory
	Config model.DatabaseConfig
}

func (Redis) Default

func (r Redis) Default() Redis

func (Redis) Init

func (r Redis) Init() scene.LensInit

type Sqlite

type Sqlite struct {
	scene.ModuleFactory
	Config model.DatabaseConfig
}

func (Sqlite) Default

func (m Sqlite) Default() Sqlite

func (Sqlite) Init

func (m Sqlite) Init() scene.LensInit

Jump to

Keyboard shortcuts

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