Documentation ¶ Index ¶ Variables type CloseFunc type DaoConfig type DaoField type DaoT func (d *DaoT[C, D]) Close() error func (d *DaoT[C, D]) Config() any func (d *DaoT[C, D]) Init() error 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, error) } 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]) Init ¶ func (d *DaoT[C, D]) Init() error Source Files ¶ View all Source files dao_field.gotemplate.go Directories ¶ Show internal Expand all Path Synopsis apollo badger bbolt buntdb confluent dingtalk duckdb elasticsearch v7 v8 etcd flightsql gormdb mysql postgres sqlite groupcache grpc influxdb log loki mail minio mqtt nacos nats client server nsq pebble redis ristretto rocksdb sarama viper Click to show internal directories. Click to hide internal directories.