Documentation ¶
Index ¶
- Constants
- Variables
- func AllCollections(projectId, collection, state, search string, page, rows int) (e.List, error)
- func ChangePassword(db int, name, password string) (bool, error)
- func CreateColumn(db int, schema, table, name, kind, defaultValue string) (bool, error)
- func CreateDatabase(db int, name string) (bool, error)
- func CreateIndex(db int, schema, table, field string) (bool, error)
- func CreateSchema(db int, name string) (bool, error)
- func CreateSerie(db int, schema, tag string) (bool, error)
- func CreateUser(db int, name, password string) (bool, error)
- func DefineCollection() error
- func DefineConfig() error
- func DefineCoreSchema() error
- func DefineMode() error
- func DefineRecycling() error
- func DefineReference() error
- func DefineSeries() error
- func DefineSync() error
- func DeleteCollection(collection, id string) (e.Item, error)
- func DeleteConfig(key string) (e.Item, error)
- func EnabledSeries() bool
- func ExistColum(db int, schema, table, name string) (bool, error)
- func ExistDatabase(db int, name string) (bool, error)
- func ExistIndex(db int, schema, table, field string) (bool, error)
- func ExistSchema(db int, name string) (bool, error)
- func ExistSerie(db int, schema, name string) (bool, error)
- func ExistTable(db int, schema, name string) (bool, error)
- func ExistUser(db int, name string) (bool, error)
- func GetCode(tag, prefix string) string
- func GetCollectionById(collection, id string) (e.Item, error)
- func GetCollectionByIndex(collection string, idx int) (e.Item, error)
- func GetConfig(key string, _default string) (string, error)
- func GetMarterNodeById(db int, id string) (e.Item, error)
- func GetMode() (e.Item, error)
- func GetSerie(tag string) int
- func GetSerieLast(tag string) int
- func InitCore() error
- func InitModel(model *linq.Model) error
- func JoinToMaster() error
- func NextVal(tag string) int
- func SetMode(mode int, driver, host string, port int, dbname, user, password string) (e.Item, error)
- func SetRecycligTrigger(schema, table string) error
- func SetReferences(references []*linq.ReferenceValue)
- func SetSerieValue(db int, tag string, val int) (int, error)
- func SetSyncTrigger(schema, table string) error
- func StateCollection(collection, id, state string) (e.Item, error)
- func SyncSeries(masterIdx int, c chan int) error
- func UpSertCollection(collection, projectId, id string, data e.Json) (e.Item, error)
- func UpSetMasterNode(db int, id string, mode int, driver, host string, port int, ...) (e.Item, error)
- func UpsertConfig(key, value string) (e.Item, error)
- type Collection
Constants ¶
View Source
const ModeBridge = 3 /** Bridge */
View Source
const ModeIdle = 1 /** Libre */
View Source
const ModeNode = 2 /** Node */
View Source
const ModeNone = 0 /** Node */
* * Mode * Handler for CRUD data
Variables ¶
View Source
var ( ModeId string ModeTp int MasterIdx int )
View Source
var Collections *linq.Model
View Source
var Configs *linq.Model
View Source
var SchemaCore *linq.Schema
Functions ¶
func AllCollections ¶ added in v0.0.34
func ChangePassword ¶ added in v0.0.29
func CreateColumn ¶ added in v0.0.29
func DefineCollection ¶ added in v0.0.34
func DefineCollection() error
func DefineConfig ¶ added in v0.0.34
func DefineConfig() error
func DefineCoreSchema ¶ added in v0.0.34
func DefineCoreSchema() error
func DefineMode ¶ added in v0.0.34
func DefineMode() error
func DefineRecycling ¶ added in v0.0.34
func DefineRecycling() error
func DefineReference ¶ added in v0.0.34
func DefineReference() error
func DefineSeries ¶ added in v0.0.34
func DefineSeries() error
func DefineSync ¶ added in v0.0.34
func DefineSync() error
func DeleteCollection ¶ added in v0.0.34
func ExistColum ¶ added in v0.0.29
func ExistIndex ¶ added in v0.0.29
func GetCollectionById ¶ added in v0.0.34
* * Collection * Handler for CRUD data
func GetCollectionByIndex ¶ added in v0.0.34
func GetSerieLast ¶
func JoinToMaster ¶
func JoinToMaster() error
func SetRecycligTrigger ¶ added in v0.0.29
func SetReferences ¶ added in v0.0.29
func SetReferences(references []*linq.ReferenceValue)
* * After reference *
func SetSyncTrigger ¶ added in v0.0.29
func StateCollection ¶ added in v0.0.34
func SyncSeries ¶
func UpSertCollection ¶ added in v0.0.34
func UpSetMasterNode ¶
Types ¶
type Collection ¶ added in v0.0.34
func GetCollection ¶ added in v0.0.34
func GetCollection(collection, id string) *Collection
func (*Collection) Int ¶ added in v0.0.34
func (c *Collection) Int(atribs ...string) int
func (*Collection) Str ¶ added in v0.0.34
func (c *Collection) Str(atribs ...string) string
Click to show internal directories.
Click to hide internal directories.