Documentation ¶
Index ¶
- type DB
- func (db *DB) Connect() error
- func (db *DB) New(mysqlServer string, mysqlDB string, mysqlUser string, mysqlPw string) (*sql.DB, error)
- func (db *DB) SetMysqlDB(mysqlDB string)
- func (db *DB) SetMysqlPw(mysqlPw string)
- func (db *DB) SetMysqlServer(mysqlServer string)
- func (db *DB) SetMysqlUser(mysqlUser string)
- type InfluxDB
- type RedisState
- func (rS *RedisState) Delete() error
- func (rS *RedisState) Get(key string) string
- func (rS *RedisState) HKeys() []string
- func (rS *RedisState) New(redis *redis.Client, identifier string)
- func (rS *RedisState) Set(key string, value string) error
- func (rS *RedisState) SetM(set map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB class to work with MySQL database
func (*DB) New ¶
func (db *DB) New(mysqlServer string, mysqlDB string, mysqlUser string, mysqlPw string) (*sql.DB, error)
New will create a database connection and return the sql.DB
func (*DB) SetMysqlDB ¶
SetMysqlDB allows setting the MySQL database to use
func (*DB) SetMysqlPw ¶
SetMysqlPw allows setting the MySQL password to use
func (*DB) SetMysqlServer ¶
SetMysqlServer allows setting the MySQL server to use
func (*DB) SetMysqlUser ¶
SetMysqlUser allows setting the MySQL user to use
type InfluxDB ¶
DB class to work with MySQL database
type RedisState ¶
type RedisState struct {
// contains filtered or unexported fields
}
func (*RedisState) Delete ¶
func (rS *RedisState) Delete() error
func (*RedisState) Get ¶
func (rS *RedisState) Get(key string) string
func (*RedisState) HKeys ¶
func (rS *RedisState) HKeys() []string
func (*RedisState) SetM ¶
func (rS *RedisState) SetM(set map[string]interface{}) error
Click to show internal directories.
Click to hide internal directories.