conf_dao

package
v0.0.49 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 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

type CloseFunc func() error

type DaoConfig

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

type DaoField

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

type DaoT

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

func (*DaoT[C, D]) Close

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

func (*DaoT[C, D]) Config

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

func (*DaoT[C, D]) Set

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

Jump to

Keyboard shortcuts

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