otslib

package
v0.0.0-...-0e8c758 Latest Latest
Warning

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

Go to latest
Published: May 2, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AccessKeyId      = beego.AppConfig.String("ots::AccessKeyId")
	AccessKeySecret  = beego.AppConfig.String("ots::AccessKeySecret")
	InternetEndPoint = beego.AppConfig.String("ots::InternetEndPoint")
	InstanceName     = beego.AppConfig.String("ots::InstanceName")
	CommentTableName = "DummyTest"
)

Functions

func BuildPutChangeMeta

func BuildPutChangeMeta(c m.Comment) *tablestore.PutRowChange

func CreateClient

func CreateClient() *tablestore.TableStoreClient

func CreateTable

func CreateTable() error

func DeleteComment

func DeleteComment(prodId string, commentId int64) error

func GetComment

func GetComment(prodId string, commentId int64) (m.Comment, error)

func GetMultiCommentsByPage

func GetMultiCommentsByPage(prodId string, commentId int64, pageSize int32) ([]m.Comment, int64, error)

func InsertOrUpdate

func InsertOrUpdate(commentStorage m.Comment) (int64, error)

func IsTableExisted

func IsTableExisted(tableName string) (bool, error)

func UnmarshalComment

func UnmarshalComment(resp *tablestore.Row, v interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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