db

package
v0.0.0-...-b77c001 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Role

type Role struct {
	Key uint64
	// contains filtered or unexported fields
}

func NewRole

func NewRole(dbName string, key uint64) *Role

func (*Role) Delete

func (this *Role) Delete() error

func (*Role) Expire

func (this *Role) Expire(v uint)

func (*Role) GetName

func (this *Role) GetName() string

func (*Role) GetSex

func (this *Role) GetSex() uint8

func (*Role) HasKey

func (this *Role) HasKey() (int, error)

若访问数据库失败返回-1;若 key 存在返回 1 ,否则返回 0 。

func (*Role) IsLoad

func (this *Role) IsLoad() bool

func (*Role) Load

func (this *Role) Load() error

func (*Role) Save

func (this *Role) Save() error

func (*Role) SetName

func (this *Role) SetName(value string)

func (*Role) SetSex

func (this *Role) SetSex(value uint8)

Jump to

Keyboard shortcuts

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