Documentation ¶
Index ¶
- type Dao
- func (d *Dao) BeginTran(c context.Context) (tx *sql.Tx, err error)
- func (d *Dao) BuildVersion(c context.Context, svr, bver, env string) (version int64, err error)
- func (d *Dao) Builds(c context.Context, svr, env string) (rs []string, err error)
- func (d *Dao) ClearHost(c context.Context, svr, env string) (err error)
- func (d *Dao) Close()
- func (d *Dao) DelFile(name string) (err error)
- func (d *Dao) File(name string) (res *model.Content, err error)
- func (d *Dao) FileStr(name string) (file string, err error)
- func (d *Dao) Hosts(c context.Context, svr, env string) (hosts []*model.Host, err error)
- func (d *Dao) InsertLog(c context.Context, user, business, info string) (err error)
- func (d *Dao) Namespaces(c context.Context, ver int64) (rs map[int64]string, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) ServiceID(c context.Context, svr, env string) (ID int64, err error)
- func (d *Dao) SetFile(name string, conf *model.Content) (err error)
- func (d *Dao) SetFileStr(name string, val string) (err error)
- func (d *Dao) SetHost(c context.Context, host *model.Host, svr, env string) (err error)
- func (d *Dao) Token(c context.Context, svr, env string) (token string, err error)
- func (d *Dao) TxInsertValues(c context.Context, tx *sql.Tx, verID int64, user string, ...) (err error)
- func (d *Dao) TxInsertVer(tx *sql.Tx, svrID int64, user string) (verID int64, err error)
- func (d *Dao) TxUpdateValues(tx *sql.Tx, verID int64, user string, data map[string]string) (err error)
- func (d *Dao) Value(c context.Context, fname string, ver int64) (file string, err error)
- func (d *Dao) Values(c context.Context, ver int64) (rs []*model.NSValue, err error)
- func (d *Dao) Versions(c context.Context, svr, env string, state int8) (rs []*model.ReVer, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao dao.
func (*Dao) BuildVersion ¶
BuildVersion return service build version from mysql.
func (*Dao) Namespaces ¶
Namespaces return namespaces from mysql
func (*Dao) SetFileStr ¶
SetFileStr save string file.
func (*Dao) TxInsertValues ¶
func (d *Dao) TxInsertValues(c context.Context, tx *sql.Tx, verID int64, user string, data map[string]string) (err error)
TxInsertValues insert config values.
func (*Dao) TxInsertVer ¶
TxInsertVer insert version.
func (*Dao) TxUpdateValues ¶
func (d *Dao) TxUpdateValues(tx *sql.Tx, verID int64, user string, data map[string]string) (err error)
TxUpdateValues update config values.
Click to show internal directories.
Click to hide internal directories.