skel

package
v0.0.0-...-a5ea93d Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Skel

type Skel struct {
	*utils.Trace
}

Skel 定义Skel类型

func (*Skel) Add

func (skel *Skel) Add(skelAPI *skel_api.Skel) (err error)

Add 定义新增操作

func (*Skel) Db

func (skel *Skel) Db() (db string)

Db 返回db name

func (*Skel) Del

func (skel *Skel) Del(id int64) (err error)

Del 定义删除操作

func (*Skel) FlowList

func (skel *Skel) FlowList(lastID string, limit int) (skelsAPI []*skel_api.Skel, err error)

FlowList 定义flow_list操作

func (*Skel) Get

func (skel *Skel) Get(id int64) (skelAPI *skel_api.Skel, err error)

Get 定义获取操作

func (*Skel) GetC

func (skel *Skel) GetC() (c *mgo.Collection)

GetC 返回db col

func (*Skel) Gets

func (skel *Skel) Gets(ids []int64) (skelsAPI []*skel_api.Skel, err error)

Gets 定义批量获取操作

func (*Skel) PageList

func (skel *Skel) PageList(offset, limit int) (skelsAPI []*skel_api.Skel, err error)

PageList 定义page_list操作

func (*Skel) Table

func (skel *Skel) Table() (table string)

Table 返回table name

func (*Skel) Update

func (skel *Skel) Update(skelAPI *skel_api.Skel) (err error)

Update 定义更新操作

func (*Skel) Upsert

func (skel *Skel) Upsert(skelAPI *skel_api.Skel) (err error)

Upsert 定义upsert操作

func (*Skel) WithTrace

func (skel *Skel) WithTrace(trace *utils.Trace) *Skel

Jump to

Keyboard shortcuts

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