support

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WpmDataSource

type WpmDataSource struct {
	markup.Component `class:"starter-gorm-source-registry" initMethod:"Init" `

	AC                application.Context       `inject:"context"`
	DM                datasource.DriverManager  `inject:"#starter-gorm-driver-manager"`
	AppDataService    service.AppDataService    `inject:"#AppDataService"`
	AboutService      service.AboutService      `inject:"#AboutService"`
	FileSystemService service.FileSystemService `inject:"#FileSystemService"`

	Driver   string `inject:"${datasource.wpm.driver}"`
	Host     string `inject:"${datasource.wpm.host}"`
	UserName string `inject:"${datasource.wpm.username}"`
	Password string `inject:"${datasource.wpm.password}"`
	Database string `inject:"${datasource.wpm.database}"` // 可以在取值中插入'{{version}}','{{hex}}'
	Port     int    `inject:"${datasource.wpm.port}"`
	// contains filtered or unexported fields
}

WpmDataSource ...

func (*WpmDataSource) Close

func (inst *WpmDataSource) Close() error

Close ...

func (*WpmDataSource) DB

func (inst *WpmDataSource) DB() (*gorm.DB, error)

DB ...

func (*WpmDataSource) Init added in v0.1.3

func (inst *WpmDataSource) Init() error

Init ...

func (*WpmDataSource) ListSources

func (inst *WpmDataSource) ListSources() []*datasource.SourceRegistration

ListSources ...

Jump to

Keyboard shortcuts

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