ssh

package
v0.0.0-...-5d74809 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = sqlx.ErrNotFound

Functions

This section is empty.

Types

type SshHosts

type SshHosts struct {
	Id       int64  `db:"id"`       // 主键
	Addr     string `db:"addr"`     // 地址
	User     string `db:"user"`     // 用户
	Port     string `db:"port"`     // 端口
	Password string `db:"password"` // 密码
	IdDel    string `db:"idDel"`    // 默认是0,1是删除
}

type SshHostsModel

type SshHostsModel interface {
	RowBuilder() squirrel.SelectBuilder
	CountBuilder(field string) squirrel.SelectBuilder
	DeleteStatus(ctx context.Context, addr string) error
	FindOneByQuery(ctx context.Context, rowBuilder squirrel.SelectBuilder) (*SshHosts, error)
	FindCount(ctx context.Context, countBuilder squirrel.SelectBuilder) (int64, error)
	FindPageListByPage(ctx context.Context, rowBuilder squirrel.SelectBuilder, page, pageSize int64, orderBy string) ([]SshHosts, error)
	// contains filtered or unexported methods
}

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

func NewSshHostsModel

func NewSshHostsModel(conn sqlx.SqlConn) SshHostsModel

NewSshHostsModel 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