demo

package
v0.0.0-...-d2e3d2a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DBSettings *simplejson.Json

Functions

func InitHBase

func InitHBase() error

func NewConfig

func NewConfig(file string) error

NewConfig 从文件中加载一个配置实例

Types

type TableModel

type TableModel struct {
	ColumnOne   []byte `hbase:"family:demo_family_1;column:demo_column_1"`
	ColumnTwo   []byte `hbase:"family:demo_family_2;column:demo_column_2"`
	ColumnThree []byte `hbase:"family:demo_family_3;column:demo_column_1"`
	ColumnFour  []byte `hbase:"family:demo_family_3;column:demo_column_3"`
}

func (TableModel) TableName

func (TableModel) TableName() string

type TableModelDao

type TableModelDao struct {
}

func NewTableModelDaoInstance

func NewTableModelDaoInstance() *TableModelDao

NewTableModelDaoInstance

func (*TableModelDao) ReadRow

func (d *TableModelDao) ReadRow(ctx context.Context, key string, expire time.Duration) (*TableModel, error)

func (*TableModelDao) WriteRow

func (d *TableModelDao) WriteRow(ctx context.Context, key string, m *TableModel) error

Jump to

Keyboard shortcuts

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