Documentation ¶
Index ¶
- Constants
- Variables
- 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 DefineConfig() error
- func DefineMode() error
- func DefineRecycling() error
- func DefineReference() error
- func DefineSchemaCore() error
- func DefineSeries() error
- func DefineSync() 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 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 InitDefine() 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 SyncSeries(masterIdx int, c chan int) 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)
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 Configs *linq.Model
View Source
var SchemaCore *linq.Schema
Functions ¶
func ChangePassword ¶ added in v0.0.29
func CreateColumn ¶ added in v0.0.29
func DefineConfig ¶ added in v0.0.34
func DefineConfig() 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 DefineSchemaCore ¶ added in v0.0.76
func DefineSchemaCore() error
func DefineSeries ¶ added in v0.0.34
func DefineSeries() error
func DefineSync ¶ added in v0.0.34
func DefineSync() error
func ExistColum ¶ added in v0.0.29
func ExistIndex ¶ added in v0.0.29
func GetSerieLast ¶
func InitDefine ¶ added in v0.0.75
func InitDefine() error
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 SyncSeries ¶
func UpSetMasterNode ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.