Documentation ¶
Index ¶
- Constants
- func DBBuild(db Database, table *DBTable, prefix string) error
- func DBDelete(db Database, table *DBTable, prefix string, sql string, args ...interface{}) (sql.Result, error)
- func DBInit(db *sql.DB) error
- func DBInsert(db Database, table *DBTable, prefix string, object interface{}) (sql.Result, error)
- func DBQuery(db Database, table *DBTable, prefix string, sql string, args ...interface{}) (*sql.Rows, error)
- func DBQueryCount(db Database, table *DBTable, prefix string, sql string, args ...interface{}) (int, error)
- func DBQueryWithKeys(db Database, table *DBTable, prefix string, keys map[string]bool, sql string, ...) (*sql.Rows, error)
- func DBUpdate(db Database, table *DBTable, prefix string, object interface{}) (sql.Result, error)
- func DBUpdateWithKeys(db Database, table *DBTable, prefix string, object interface{}, ...) (sql.Result, error)
- func DispatchMain()
- func TCPClientConnect(name string, address string, options map[string]interface{}, ...) (func(message *Message) bool, func() string)
- func TCPClientHandleFunc(name string, address string, options map[string]interface{}, alias string, ...) func(w http.ResponseWriter, r *http.Request)
- func TCPClientRequestConnect(name string, address string, options map[string]interface{}) (func(message *Message, trackId string, timeout time.Duration) *Message, ...)
- func UUID() int64
- type DBField
- type DBIndex
- type DBScaner
- type DBTable
- type DBValue
- type Database
- type Dispatch
- type INeuron
- type Message
- type Neuron
- func (n *Neuron) Address() string
- func (n *Neuron) Get(key string) interface{}
- func (n *Neuron) GetBoolean(key string) bool
- func (n *Neuron) GetInt(key string) int64
- func (n *Neuron) GetString(key string) string
- func (n *Neuron) Name() string
- func (n *Neuron) Options() map[string]interface{}
- func (n *Neuron) Remove(key string)
- func (n *Neuron) Set(key string, value interface{})
- type TCPClient
- type TCPServer
Constants ¶
View Source
const DBFieldTypeBoolean = 5
View Source
const DBFieldTypeDouble = 4
View Source
const DBFieldTypeInt = 2
View Source
const DBFieldTypeInt64 = 3
View Source
const DBFieldTypeLongText = 7
View Source
const DBFieldTypeString = 1
View Source
const DBFieldTypeText = 6
View Source
const DBIndexTypeAsc = 1
View Source
const DBIndexTypeDesc = 2
Variables ¶
This section is empty.
Functions ¶
func DBQueryCount ¶
func DBQueryWithKeys ¶
func DBUpdateWithKeys ¶
func DispatchMain ¶
func DispatchMain()
func TCPClientConnect ¶
func TCPClientHandleFunc ¶
func TCPClientRequestConnect ¶
Types ¶
type DBField ¶
func (*DBField) DBDefaultValue ¶
type DBScaner ¶
type DBScaner struct {
// contains filtered or unexported fields
}
func NewDBScaner ¶
func NewDBScaner(object interface{}) DBScaner
type Dispatch ¶
type Dispatch struct { OnExit func() // contains filtered or unexported fields }
func GetDispatchMain ¶
func GetDispatchMain() *Dispatch
func NewDispatch ¶
func NewDispatch() *Dispatch
func (*Dispatch) AsyncDelay ¶
type Neuron ¶
type Neuron struct {
// contains filtered or unexported fields
}
func (*Neuron) GetBoolean ¶
type TCPClient ¶
type TCPClient struct { Neuron OnMessage func(message *Message) OnConnected func() OnDisconnected func(err error) // contains filtered or unexported fields }
func NewTCPClient ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.