conf_dao

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DaoFieldType = reflect.TypeOf((*DaoField)(nil)).Elem()

Functions

This section is empty.

Types

type CloseFunc added in v1.5.11

type CloseFunc func() error

type DaoConfig added in v1.5.11

type DaoConfig[D any] interface {
	Build() (*D, CloseFunc)
}

type DaoField added in v1.5.11

type DaoField interface {
	Config() any
	Init() error
	io.Closer
}

type DaoT added in v1.5.11

type DaoT[C DaoConfig[D], D any] struct {
	Conf   C
	Client *D
	// contains filtered or unexported fields
}

func (*DaoT[C, D]) Close added in v1.5.11

func (d *DaoT[C, D]) Close() error

func (*DaoT[C, D]) Config added in v1.5.11

func (d *DaoT[C, D]) Config() any

func (*DaoT[C, D]) Set added in v1.5.11

func (d *DaoT[C, D]) Set()

Jump to

Keyboard shortcuts

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