model

package
v0.0.0-...-83d3498 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = sqlx.ErrNotFound

Functions

This section is empty.

Types

type EsConn

type EsConn struct {
	Id       uint64         `db:"id"`
	EsConn   string         `db:"es_conn"`
	Version  int64          `db:"version"`
	User     sql.NullString `db:"user"`
	Password sql.NullString `db:"password"`
	Describe string         `db:"describe"`
}

type EsConnModel

type EsConnModel interface {
	FindPaging_NC(ctx context.Context, page int64, pageSize int64) ([]EsConn, error)
	FindTotal_NC(ctx context.Context) (int64, error)
	FindAll_NC(ctx context.Context) ([]EsConn, error)
	// contains filtered or unexported methods
}

EsConnModel is an interface to be customized, add more methods here, and implement the added methods in customEsConnModel.

func NewEsConnModel

func NewEsConnModel(conn sqlx.SqlConn, c cache.CacheConf) EsConnModel

NewEsConnModel returns a model for the database table.

Jump to

Keyboard shortcuts

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