dbx

package
v0.0.0-...-6908ac9 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mysql

type Mysql struct {
	Host         string
	Port         int
	DbName       string
	Dba          string
	Pwd          string
	MaxIdleConns int
	MaxOpenConns int
	Timeout      int
	Conn         *xorm.Engine
}

func NewMysql

func NewMysql() *Mysql

func (*Mysql) Init

func (this *Mysql) Init() error

type Postgres

type Postgres struct {
	Host         string
	Port         int
	DbName       string
	Dba          string
	Pwd          string
	MaxIdleConns int
	MaxOpenConns int
	Timeout      int
	Conn         *xorm.Engine
}

func NewPostgres

func NewPostgres() *Postgres

func (*Postgres) Init

func (this *Postgres) Init() error

type Redis

type Redis struct {
	Auth    string `json:"Auth"`
	Host    string `json:"Host"`
	Port    int    `json:"Port"`
	DbIndex int    `json:"DbIndex"`
	Timeout string `json:"Timeout"`
	Maxidle int    `json:"Maxidle"`
	Conn    *goredis.Redis
}

func NewRedis

func NewRedis() *Redis

func (*Redis) Init

func (this *Redis) Init() error

Jump to

Keyboard shortcuts

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