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.
Click to show internal directories.
Click to hide internal directories.