controllers

package
Version: v0.0.0-...-d72ca28 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMgoValue

func GetMgoValue(d tk.M, fieldName string) interface{}

func PrepareConnection

func PrepareConnection() (dbox.IConnection, error)

Types

type BaseController

type BaseController struct {
	Ctx *orm.DataContext
	// contains filtered or unexported fields
}

func (*BaseController) CloseDb

func (b *BaseController) CloseDb()

func (*BaseController) Delete

func (b *BaseController) Delete(m orm.IModel, id interface{}, column_name ...string) error

func (*BaseController) GetById

func (b *BaseController) GetById(m orm.IModel, id interface{}, column_name ...string) error

func (*BaseController) GetDataSource

func (b *BaseController) GetDataSource(dataSourceFolder string) ([]os.FileInfo, string)

func (*BaseController) GetDataSourceDirect

func (b *BaseController) GetDataSourceDirect(dataSourceFolder string) ([]os.FileInfo, string)

func (*BaseController) Insert

func (b *BaseController) Insert(result []tk.M, m orm.IModel, wg *sync.WaitGroup)

func (*BaseController) InsertBulk

func (b *BaseController) InsertBulk(result []tk.M, m orm.IModel, wg *sync.WaitGroup)

func (*BaseController) Truncate

func (b *BaseController) Truncate(m orm.IModel) error

func (*BaseController) Update

func (b *BaseController) Update(m orm.IModel, id interface{}, column_name ...string) error

func (*BaseController) WriteLog

func (b *BaseController) WriteLog(msg interface{})

type IBaseController

type IBaseController interface {
}

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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