efscore

package
v0.0.0-...-f30a2ea Latest Latest
Warning

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

Go to latest
Published: May 19, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONF_DB_ACL string = "db_acl"
	CONF_DB_EFS string = "db_efs"
)

Variables

View Source
var ConfigPath string

Functions

func Delete

func Delete(o orm.IModel) error

func Find

func Find(o orm.IModel, filter *dbox.Filter) (dbox.ICursor, error)

func Get

func Get(o orm.IModel, id interface{}) error

func GetAccountList

func GetAccountList(search toolkit.M, hasPattern bool) ([]efs.Accounts, error)

func GetComment

func GetComment(payload toolkit.M) []efs.Comments

func GetConfig

func GetConfig(key string, args ...string) interface{}

func GetDB

func GetDB(key string) interface{}

func GetLedgerTransFileList

func GetLedgerTransFileList(search toolkit.M) ([]efs.LedgerTransFile, error)

func GetLedgerTransFileOnProcess

func GetLedgerTransFileOnProcess() ([]efs.LedgerTransFile, error)

func GetLedgerTransList

func GetLedgerTransList(search toolkit.M) ([]efs.LedgerTrans, error)

func GetSVByRun

func GetSVByRun(payload toolkit.M) (toolkit.M, error)

func GetSVBySID

func GetSVBySID(payload toolkit.M) (toolkit.Ms, error)

func GetSVList

func GetSVList(search toolkit.M) ([]efs.StatementVersion, error)

func GetStatementList

func GetStatementList(search toolkit.M) ([]efs.Statements, error)

func InitialSetDatabase

func InitialSetDatabase() error

func PrepareDefaultUser

func PrepareDefaultUser() (err error)

func Save

func Save(o orm.IModel) error

func SetConfig

func SetConfig(key string, value interface{})

func SetDB

func SetDB(value interface{})

func SetPort

func SetPort(_port *Ports, value interface{}) error

Types

type Account

type Account struct {
	efs.Accounts
}

func (*Account) Delete

func (ac *Account) Delete(payload toolkit.M) error

func (*Account) GetById

func (ac *Account) GetById() error

func (*Account) SaveAcc

func (ac *Account) SaveAcc(payload toolkit.M) error

type Comment

type Comment struct {
	efs.Comments
}

func (*Comment) Delete

func (cm *Comment) Delete(payload toolkit.M) error

func (*Comment) Save

func (cm *Comment) Save(data toolkit.M) error

type Configuration

type Configuration struct {
	orm.ModelBase
	ID    string `json:"_id",bson:"_id"`
	Value interface{}
}

func (*Configuration) RecordID

func (a *Configuration) RecordID() interface{}

func (*Configuration) TableName

func (a *Configuration) TableName() string

type Databases

type Databases struct {
	orm.ModelBase
	ID   string      `json:"_id",bson:"_id"`
	Data interface{} `json:"data",bson:"data"`
}

func (*Databases) RecordID

func (a *Databases) RecordID() interface{}

func (*Databases) TableName

func (a *Databases) TableName() string

type LedgerTrans

type LedgerTrans struct {
	efs.LedgerTrans
}

func (*LedgerTrans) Delete

func (st *LedgerTrans) Delete(payload toolkit.M) error

func (*LedgerTrans) GetById

func (st *LedgerTrans) GetById() error

func (*LedgerTrans) Save

func (st *LedgerTrans) Save() error

type LedgerTransFile

type LedgerTransFile struct {
	efs.LedgerTransFile
}

type Login

type Login struct {
	orm.ModelBase
	ID       string `json:"_id",bson:"_id"`
	Password string
	Salt     string
}

func (*Login) Authenticate

func (l *Login) Authenticate(payload toolkit.M) (toolkit.M, error)

func (*Login) GetConnectionInfo

func (l *Login) GetConnectionInfo(db_type string) (string, *dbox.ConnectionInfo)

func (*Login) LoginProcess

func (l *Login) LoginProcess(payload toolkit.M) (string, error)

func (*Login) RecordID

func (l *Login) RecordID() interface{}

func (*Login) ResetPassword

func (l *Login) ResetPassword(payload toolkit.M) error

func (*Login) SavePassword

func (l *Login) SavePassword(payload toolkit.M) error

func (*Login) TableName

func (l *Login) TableName() string

type Ports

type Ports struct {
	orm.ModelBase
	ID   string `json:"_id",bson:"_id"`
	Port int    `json:"port",bson:"port"`
}

func (*Ports) GetPort

func (p *Ports) GetPort() error

func (*Ports) RecordID

func (p *Ports) RecordID() interface{}

func (*Ports) TableName

func (p *Ports) TableName() string

type Statement

type Statement struct {
	efs.Statements
}

func (*Statement) Delete

func (st *Statement) Delete(payload toolkit.M) error

func (*Statement) GetById

func (st *Statement) GetById() error

func (*Statement) Save

func (st *Statement) Save() error

type StatementVersion

type StatementVersion struct {
	efs.StatementVersion
}

func (*StatementVersion) Delete

func (sv *StatementVersion) Delete() error

func (*StatementVersion) GetById

func (sv *StatementVersion) GetById() error

func (*StatementVersion) Save

func (sv *StatementVersion) Save(payload toolkit.M) error

Jump to

Keyboard shortcuts

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