mysql

package
v0.0.0-...-df93b5d Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetClient

func SetClient(c *Client)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func (*Client) Boot

func (c *Client) Boot(dbType, user, password, host, dbname string) error

func (*Client) GetUsers

func (c *Client) GetUsers() ([]user.User, error)

func (*Client) LogNodeOnlineUser

func (c *Client) LogNodeOnlineUser(onlineUserCount int) error

func (*Client) SetDb

func (c *Client) SetDb(db *gorm.DB)

func (*Client) SetTable

func (c *Client) SetTable(table string)

func (*Client) UpdateNodeInfo

func (c *Client) UpdateNodeInfo() error

type User

type User struct {
	// contains filtered or unexported fields
}

func (*User) GetCipher

func (u *User) GetCipher() (*ss.Cipher, error, bool)

func (*User) GetMethod

func (u *User) GetMethod() string

func (*User) GetPasswd

func (u *User) GetPasswd() string

func (*User) GetPort

func (u *User) GetPort() int

func (*User) GetUserInfo

func (u *User) GetUserInfo() user.UserInfo

func (*User) IsEnable

func (u *User) IsEnable() bool

func (User) TableName

func (c User) TableName() string

func (*User) UpdateTraffic

func (u *User) UpdateTraffic(storageSize int) error

Jump to

Keyboard shortcuts

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