template

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

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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 is archive dao.

func New

func New(c *conf.Config) (d *Dao)

New init api url

func (*Dao) AddTemplate

func (d *Dao) AddTemplate(c context.Context, mid int64, tp *template.Template) (id int64, err error)

AddTemplate add Template

func (*Dao) Close

func (d *Dao) Close() (err error)

Close db

func (*Dao) Count

func (d *Dao) Count(c context.Context, mid int64) (count int64, err error)

Count count all state Template

func (*Dao) DelTemplate

func (d *Dao) DelTemplate(c context.Context, mid int64, tp *template.Template) (rows int64, err error)

DelTemplate delete Template

func (*Dao) Ping

func (d *Dao) Ping(c context.Context) (err error)

Ping db

func (*Dao) Template

func (d *Dao) Template(c context.Context, id, mid int64) (t *template.Template, err error)

Template get single template.

func (*Dao) Templates

func (d *Dao) Templates(c context.Context, mid int64) (tps []*template.Template, err error)

Templates get all Template

func (*Dao) UpTemplate

func (d *Dao) UpTemplate(c context.Context, mid int64, tp *template.Template) (rows int64, err error)

UpTemplate update Template

Jump to

Keyboard shortcuts

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