datasource

package module
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDB

func InitDB(in, out string) fx.Option

func InitMinioClient

func InitMinioClient(in, out string) fx.Option

func InitMinioCore

func InitMinioCore(in, out string) fx.Option

func InitRedis

func InitRedis(in, out string) fx.Option

func InitS3

func InitS3(in, out string) fx.Option

Types

type DBParams

type DBParams struct {
	Host       string
	Port       int
	User       string
	Pass       string
	DB         string
	SSLMode    string
	Migrations fs.FS
}

func (DBParams) DSN

func (params DBParams) DSN() string

type MinioParams

type MinioParams struct {
	URL       string
	AccessKey string
	SecretKey string
	UseSSL    bool
}

type RedisParams

type RedisParams struct {
	Host               string
	Port               int
	User               string
	Pass               string
	DBNumber           int
	InsecureSkipVerify bool
}

func (RedisParams) DSN

func (params RedisParams) DSN() string

type S3Params

type S3Params struct {
	URL       string
	AccessKey string
	SecretKey string
	UseSSL    bool
}

Jump to

Keyboard shortcuts

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