src

package
v0.0.77 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BroadCastID       = "BroadCast"
	BroadCastTemplate = `` /* 155-byte string literal not displayed */

)

BroadCast - 寫入一個數字

View Source
const (
	DecCountDownID       = "DecCountDown"
	DecCountDownTemplate = `` /* 2068-byte string literal not displayed */

)

DecCountDown - 計數器減少

View Source
const (
	DecNegativeValueID       = "DecNegativeValue"
	DecNegativeValueTemplate = `` /* 1146-byte string literal not displayed */

)

DecNegativeValue - 減少數值

View Source
const (
	DecValueBatchID       = "DecValueBatch"
	DecValueBatchTemplate = `` /* 1102-byte string literal not displayed */

)

DecValueBatch - 批量增加數字

View Source
const (
	DecValueBeforeID       = "DecValueBefore"
	DecValueBeforeTemplate = `` /* 1158-byte string literal not displayed */

)

DecValueBefore - 減少數字且查詢原始數字

View Source
const (
	DecValueID       = "DecValue"
	DecValueTemplate = `` /* 1123-byte string literal not displayed */

)

DecValue - 減少數值

View Source
const (
	DelCountDownID       = "DelCountDown"
	DelCountDownTemplate = `` /* 1471-byte string literal not displayed */

)

DelCountDown - 刪除計數器

View Source
const (
	DelHashAllID       = "DelHashAll"
	DelHashAllTemplate = `` /* 652-byte string literal not displayed */

)

DelHashAll - 減少數值

View Source
const (
	DelHashID       = "DelHash"
	DelHashTemplate = `` /* 728-byte string literal not displayed */

)

DelHash - 減少數值

View Source
const (
	DelListAllID       = "DelListAll"
	DelListAllTemplate = `` /* 652-byte string literal not displayed */

)

DelListAll - 減少數值

View Source
const (
	DelListID       = "DelList"
	DelListTemplate = `` /* 819-byte string literal not displayed */

)

DelList - 減少數值

View Source
const (
	DelSetAllID       = "DelSetAll"
	DelSetAllTemplate = `` /* 653-byte string literal not displayed */

)

DelSetAll - 減少數值

View Source
const (
	DelSetID       = "DelSet"
	DelSetTemplate = `` /* 729-byte string literal not displayed */

)

DelSet - 減少數值

View Source
const (
	DelStringID       = "DelString"
	DelStringTemplate = `` /* 1055-byte string literal not displayed */

)

DelString - 寫入一個字串

View Source
const (
	DelValueID       = "DelValue"
	DelValueTemplate = `` /* 1284-byte string literal not displayed */

)

DelValue - 刪除一個數值

View Source
const (
	DelZsetAllID       = "DelZsetAll"
	DelZsetAllTemplate = `` /* 652-byte string literal not displayed */

)

DelZsetAll - 寫入一個數字

View Source
const (
	DelZsetID       = "DelZset"
	DelZsetTemplate = `` /* 727-byte string literal not displayed */

)

DelZset - 寫入一個數字

View Source
const (
	ExistsKEYID       = "ExistsKEY"
	ExistsKEYTemplate = `` /* 696-byte string literal not displayed */

)

ExistsKEY - 檢查key存在否

View Source
const (
	ExpireKEYID       = "ExpireKEY"
	ExpireKEYTemplate = `` /* 875-byte string literal not displayed */

)

ExpireKEY - 寫入一個字串

View Source
const (
	FlushDBID       = "FlushDB"
	FlushDBTemplate = `` /* 378-byte string literal not displayed */

)

FlushDB - 清空指定DB

View Source
const (
	GetCountDownID       = "GetCountDown"
	GetCountDownTemplate = `` /* 1415-byte string literal not displayed */

)

GetCountDown - 計數器減少

View Source
const (
	GetHashAllID       = "GetHashAll"
	GetHashAllTemplate = `` /* 767-byte string literal not displayed */

)

GetHashAll - 減少數值

View Source
const (
	GetHashNormalID       = "GetHashNormal"
	GetHashNormalTemplate = `` /* 643-byte string literal not displayed */

)

GetHashNormal - 減少數值

View Source
const (
	GetHashID       = "GetHash"
	GetHashTemplate = `` /* 837-byte string literal not displayed */

)

GetHash - 減少數值

View Source
const (
	GetListAllID       = "GetListAll"
	GetListAllTemplate = `` /* 774-byte string literal not displayed */

)

GetListAll - 減少數值

View Source
const (
	GetListLengthID       = "GetListLength"
	GetListLengthTemplate = `` /* 783-byte string literal not displayed */

)

GetListLength - 減少數值

View Source
const (
	GetListPopBatchID       = "GetListPopBatch"
	GetListPopBatchTemplate = `` /* 1512-byte string literal not displayed */

)

GetListPop - 取出List的資料

View Source
const (
	GetListPopID       = "GetListPop"
	GetListPopTemplate = `` /* 909-byte string literal not displayed */

)

GetListPop - 取出List的資料

View Source
const (
	GetListID       = "GetList"
	GetListTemplate = `` /* 859-byte string literal not displayed */

)

GetList - 減少數值

View Source
const (
	GetSetAllID       = "GetSetAll"
	GetSetAllTemplate = `` /* 702-byte string literal not displayed */

)

GetSetAll - 減少數值

View Source
const (
	GetSetPopID       = "GetSetPop"
	GetSetPopTemplate = `` /* 776-byte string literal not displayed */

)

GetSetPop - 減少數值

View Source
const (
	GetSetRandomID       = "GetSetRandom"
	GetSetRandomTemplate = `` /* 790-byte string literal not displayed */

)

GetSetRandom - 減少數值

View Source
const (
	GetSetID       = "GetSet"
	GetSetTemplate = `` /* 818-byte string literal not displayed */

)

GetSet - 減少數值

View Source
const (
	GetStringID       = "GetString"
	GetStringTemplate = `` /* 1133-byte string literal not displayed */

)

GetString - 寫入一個字串

View Source
const (
	GetSystemRTPID       = "GetSystemRTP"
	GetSystemRTPTemplate = `` /* 773-byte string literal not displayed */

)

GetSystemRTP - 獲取系統RTP

View Source
const (
	GetID       = "Get"
	GetTemplate = `` /* 401-byte string literal not displayed */

)

Get - 爬key

View Source
const (
	GetUUIDID       = "GetUUID"
	GetUUIDTemplate = `` /* 646-byte string literal not displayed */

)

GetUUID - 寫入一個字串

View Source
const (
	GetValueAllID       = "GetValueAll"
	GetValueAllTemplate = `` /* 767-byte string literal not displayed */

)

GetValueAll - 取得數值陣列

View Source
const (
	GetValueID       = "GetValue"
	GetValueTemplate = `` /* 1226-byte string literal not displayed */

)

GetValue - 取得數字

View Source
const (
	GetZsetAllCountID       = "GetZsetAllCount"
	GetZsetAllCountTemplate = `` /* 694-byte string literal not displayed */

)

GetZsetAll - 寫入一個字串

View Source
const (
	GetZsetAllRevID       = "GetZsetAllRev"
	GetZsetAllRevTemplate = `` /* 848-byte string literal not displayed */

)

GetZsetAll - 寫入一個字串

View Source
const (
	GetZsetAllID       = "GetZsetAll"
	GetZsetAllTemplate = `` /* 842-byte string literal not displayed */

)

GetZsetAll - 寫入一個字串

View Source
const (
	GetZsetCountID       = "GetZsetCount"
	GetZsetCountTemplate = `` /* 846-byte string literal not displayed */

)

GetZsetAll - 寫入一個字串

View Source
const (
	GetZsetRangeID       = "GetZsetRange"
	GetZsetRangeTemplate = `` /* 857-byte string literal not displayed */

)

GetZsetRange - 寫入一個字串

View Source
const (
	GetZsetRankID       = "GetZsetRank"
	GetZsetRankTemplate = `` /* 755-byte string literal not displayed */

)

GetZsetAll - 寫入一個字串

View Source
const (
	GetZsetID       = "GetZset"
	GetZsetTemplate = `` /* 876-byte string literal not displayed */

)

GetZset - 寫入一個字串

View Source
const (
	HGetAllID       = "HGetAll"
	HGetAllTemplate = `` /* 525-byte string literal not displayed */

)

HGetAll - 取得該Hash底下所有的kv

View Source
const (
	HSetID       = "HSet"
	HSetTemplate = `` /* 660-byte string literal not displayed */

)

HSet - 批量更新Hash

View Source
const (
	IncBase10ID       = "IncBase10"
	IncBase10Template = `` /* 2483-byte string literal not displayed */

)

IncBase10 - 增加數字

View Source
const (
	IncBase62ID       = "IncBase62"
	IncBase62Template = `` /* 2535-byte string literal not displayed */

)

IncValue - 增加數字

View Source
const (
	IncCountDownID       = "IncCountDown"
	IncCountDownTemplate = `` /* 2069-byte string literal not displayed */

)

IncCountDown - 計數器+

View Source
const (
	IncValueBatchFixedTTLID       = "IncValueBatchFixedTTL"
	IncValueBatchFixedTTLTemplate = `` /* 1391-byte string literal not displayed */

)

IncValueBatchFixedTTL - 批量增加數字(設定一個固定的TTL)

View Source
const (
	IncValueBatchID       = "IncValueBatch"
	IncValueBatchTemplate = `` /* 1099-byte string literal not displayed */

)

IncValueBatch - 批量增加數字

View Source
const (
	IncValueBeforeID       = "IncValueBefore"
	IncValueBeforeTemplate = `` /* 1678-byte string literal not displayed */

)

IncValueBefore - 增加數字且查詢原始數字

View Source
const (
	IncValueID       = "IncValue"
	IncValueTemplate = `` /* 1595-byte string literal not displayed */

)

IncValue - 增加數字

View Source
const (
	KeyTypeID       = "KeyType"
	KeyTypeTemplate = `` /* 462-byte string literal not displayed */

)

KeyType - 爬key

View Source
const (
	NewHashID       = "NewHash"
	NewHashTemplate = `` /* 886-byte string literal not displayed */

)

NewHash - 減少數值

View Source
const (
	NewListBatchID       = "NewListBatch"
	NewListBatchTemplate = `` /* 969-byte string literal not displayed */

)

NewListBatch - 批量新增List

View Source
const (
	NewListID       = "NewList"
	NewListTemplate = `` /* 988-byte string literal not displayed */

)

NewList - 新增List

View Source
const (
	NewSetID       = "NewSet"
	NewSetTemplate = `` /* 851-byte string literal not displayed */

)

NewSet - 減少數值

View Source
const (
	NewStringID       = "NewString"
	NewStringTemplate = `` /* 1456-byte string literal not displayed */

)

NewString - 寫入一個字串

View Source
const (
	NewZsetID       = "NewZset"
	NewZsetTemplate = `` /* 1006-byte string literal not displayed */

)

NewZset - 減少數值

View Source
const (
	RoomIDPlayerID       = "RoomIDPlayer"
	RoomIDPlayerTemplate = `` /* 1233-byte string literal not displayed */

)

RoomIDPlayer - 查詢特定房間玩家

View Source
const (
	RoomJoinID       = "RoomJoin"
	RoomJoinTemplate = `` /* 6419-byte string literal not displayed */

)

RoomJoin - 減少數值

View Source
const (
	RoomLeftSingleID       = "RoomLeftSingle"
	RoomLeftSingleTemplate = `` /* 4355-byte string literal not displayed */

)

RoomLeft - 減少數值

View Source
const (
	RoomLeftID       = "RoomLeft"
	RoomLeftTemplate = `` /* 4061-byte string literal not displayed */

)

RoomLeft - 減少數值

View Source
const (
	RoomListID       = "RoomList"
	RoomListTemplate = `` /* 1405-byte string literal not displayed */

)

RoomList - 減少數值

View Source
const (
	RoomPlayerID       = "RoomPlayer"
	RoomPlayerTemplate = `` /* 1194-byte string literal not displayed */

)

RoomPlayer - 查詢玩家

View Source
const (
	SAddID       = "SAdd"
	SAddTemplate = `` /* 472-byte string literal not displayed */

)

SAdd - 爬key

View Source
const (
	ScanKeyID       = "ScanKey"
	ScanKeyTemplate = `` /* 762-byte string literal not displayed */

)

ScanKey - 爬key

View Source
const (
	ScanMatchKeyID       = "ScanMatchKey"
	ScanMatchKeyTemplate = `` /* 653-byte string literal not displayed */

)

ScanMatchKey - 爬key

View Source
const (
	ScanMatchKeysID       = "ScanMatchKeys"
	ScanMatchKeysTemplate = `` /* 799-byte string literal not displayed */

)

ScanMatchKey - 爬key

View Source
const (
	SetTTLID       = "SetTTL"
	SetTTLTemplate = `` /* 612-byte string literal not displayed */

)

SetTTL - 修改Key的TTL

View Source
const (
	SetID       = "Set"
	SetTemplate = `` /* 469-byte string literal not displayed */

)

Set - 爬key

View Source
const (
	SMembersID       = "SMembers"
	SMembersTemplate = `` /* 415-byte string literal not displayed */

)

SMembers - 爬key

View Source
const (
	TakeValueID       = "TakeValue"
	TakeValueTemplate = `` /* 1140-byte string literal not displayed */

)

TakeValue - 取得數字

View Source
const (
	TTLKeyID       = "TTLKey"
	TTLKeyTemplate = `` /* 693-byte string literal not displayed */

)

TTLKey - 寫入一個字串

View Source
const (
	UpdateCountDownID       = "UpdateCountDown"
	UpdateCountDownTemplate = `` /* 1815-byte string literal not displayed */

)

UpdateCountDown - 計數器減少

View Source
const (
	UpdateHashBatchID       = "UpdateHashBatch"
	UpdateHashBatchTemplate = `` /* 894-byte string literal not displayed */

)

UpdateHashBatch - 批量更新Hash

View Source
const (
	UpdateHashListID       = "UpdateHashList"
	UpdateHashListTemplate = `` /* 1366-byte string literal not displayed */

)

UpdateHashList - 減少數值

View Source
const (
	UpdateHashTTLID       = "UpdateHashTTL"
	UpdateHashTTLTemplate = `` /* 1008-byte string literal not displayed */

)

UpdateHashTTL - 減少數值

View Source
const (
	UpdateHashID       = "UpdateHash"
	UpdateHashTemplate = `` /* 889-byte string literal not displayed */

)

UpdateHash - 減少數值

View Source
const (
	UpdateListID       = "UpdateList"
	UpdateListTemplate = `` /* 1241-byte string literal not displayed */

)

UpdateList - 減少數值

View Source
const (
	UpdateSetID       = "UpdateSet"
	UpdateSetTemplate = `` /* 960-byte string literal not displayed */

)

UpdateSet - 減少數值

View Source
const (
	UpdateStringID       = "UpdateString"
	UpdateStringTemplate = `` /* 1293-byte string literal not displayed */

)

UpdateString - 寫入一個字串

View Source
const (
	UpdateTTLStringID       = "UpdateTTLString"
	UpdateTTLStringTemplate = `` /* 861-byte string literal not displayed */

)

UpdateString - 寫入一個字串

View Source
const (
	UpdateValueID       = "UpdateValue"
	UpdateValueTemplate = `` /* 1473-byte string literal not displayed */

)

UpdateValue - 寫入一個數字

View Source
const (
	UpdateZsetID       = "UpdateZset"
	UpdateZsetTemplate = `` /* 1012-byte string literal not displayed */

)

UpdateZset - 減少數值

View Source
const (
	ZAddID       = "ZAdd"
	ZAddTemplate = `` /* 567-byte string literal not displayed */

)

ZAdd - 爬key

View Source
const (
	ZRangeID       = "ZRange"
	ZRangeTemplate = `` /* 447-byte string literal not displayed */

)

ZRange - 爬key

Variables

View Source
var LuaScripts = map[string]string{

	RoomJoinID:       RoomJoinTemplate,
	RoomLeftID:       RoomLeftTemplate,
	RoomLeftSingleID: RoomLeftSingleTemplate,
	RoomListID:       RoomListTemplate,
	RoomPlayerID:     RoomPlayerTemplate,
	RoomIDPlayerID:   RoomIDPlayerTemplate,

	IncValueID:              IncValueTemplate,
	GetValueID:              GetValueTemplate,
	GetValueAllID:           GetValueAllTemplate,
	UpdateValueID:           UpdateValueTemplate,
	DecValueID:              DecValueTemplate,
	DelValueID:              DelValueTemplate,
	TakeValueID:             TakeValueTemplate,
	DecNegativeValueID:      DecNegativeValueTemplate,
	IncValueBatchID:         IncValueBatchTemplate,
	DecValueBatchID:         DecValueBatchTemplate,
	IncValueBatchFixedTTLID: IncValueBatchFixedTTLTemplate,
	IncValueBeforeID:        IncValueBeforeTemplate,
	DecValueBeforeID:        DecValueBeforeTemplate,

	IncCountDownID: IncCountDownTemplate,
	GetCountDownID: GetCountDownTemplate,
	DecCountDownID: DecCountDownTemplate,
	DelCountDownID: DelCountDownTemplate,

	NewStringID:       NewStringTemplate,
	UpdateStringID:    UpdateStringTemplate,
	GetStringID:       GetStringTemplate,
	DelStringID:       DelStringTemplate,
	UpdateTTLStringID: UpdateTTLStringTemplate,

	NewHashID:         NewHashTemplate,
	GetHashID:         GetHashTemplate,
	GetHashAllID:      GetHashAllTemplate,
	UpdateHashID:      UpdateHashTemplate,
	DelHashID:         DelHashTemplate,
	DelHashAllID:      DelHashAllTemplate,
	UpdateHashListID:  UpdateHashListTemplate,
	GetHashNormalID:   GetHashNormalTemplate,
	UpdateHashTTLID:   UpdateHashTTLTemplate,
	UpdateHashBatchID: UpdateHashBatchTemplate,

	NewListID:         NewListTemplate,
	GetListID:         GetListTemplate,
	GetListPopID:      GetListPopTemplate,
	GetListAllID:      GetListAllTemplate,
	GetListLengthID:   GetListLengthTemplate,
	UpdateListID:      UpdateListTemplate,
	DelListID:         DelListTemplate,
	DelListAllID:      DelListAllTemplate,
	NewListBatchID:    NewListBatchTemplate,
	GetListPopBatchID: GetListPopBatchTemplate,

	NewSetID:       NewSetTemplate,
	GetSetID:       GetSetTemplate,
	GetSetRandomID: GetSetRandomTemplate,
	GetSetPopID:    GetSetPopTemplate,
	GetSetAllID:    GetSetAllTemplate,
	UpdateSetID:    UpdateSetTemplate,
	DelSetID:       DelSetTemplate,
	DelSetAllID:    DelSetAllTemplate,

	NewZsetID:         NewZsetTemplate,
	GetZsetID:         GetZsetTemplate,
	GetZsetAllID:      GetZsetAllTemplate,
	GetZsetAllRevID:   GetZsetAllRevTemplate,
	GetZsetRankID:     GetZsetRankTemplate,
	GetZsetCountID:    GetZsetCountTemplate,
	GetZsetAllCountID: GetZsetAllCountTemplate,
	GetZsetRangeID:    GetZsetRangeTemplate,
	UpdateZsetID:      UpdateZsetTemplate,
	DelZsetID:         DelZsetTemplate,
	DelZsetAllID:      DelZsetAllTemplate,

	GetUUIDID:       GetUUIDTemplate,
	TTLKeyID:        TTLKeyTemplate,
	ExpireKEYID:     ExpireKEYTemplate,
	IncBase62ID:     IncBase62Template,
	IncBase10ID:     IncBase10Template,
	ExistsKEYID:     ExistsKEYTemplate,
	FlushDBID:       FlushDBTemplate,
	ScanKeyID:       ScanKeyTemplate,
	KeyTypeID:       KeyTypeTemplate,
	SetID:           SetTemplate,
	GetID:           GetTemplate,
	SAddID:          SAddTemplate,
	SMembersID:      SMembersTemplate,
	HGetAllID:       HGetAllTemplate,
	HSetID:          HSetTemplate,
	ScanMatchKeyID:  ScanMatchKeyTemplate,
	ScanMatchKeysID: ScanMatchKeysTemplate,
	SetTTLID:        SetTTLTemplate,
	GetSystemRTPID:  GetSystemRTPTemplate,
	ZAddID:          ZAddTemplate,
	ZRangeID:        ZRangeTemplate,
}

Functions

This section is empty.

Types

type MyScriptor

type MyScriptor struct {
	Scriptor *goredis.Scriptor
}

func (*MyScriptor) BroadCast added in v0.0.17

func (s *MyScriptor) BroadCast(channeltype, channeltarget string, msg []byte)

BroadCast function - channeltype, channeltarget string, args[] string

func (*MyScriptor) CloseSubscribe

func (s *MyScriptor) CloseSubscribe(Channel string)

func (*MyScriptor) DecCountDown

func (s *MyScriptor) DecCountDown(keys, args []string) (int64, int64)

DecCountDown function - keys, args[] string - return int64 , int64

func (*MyScriptor) DecNegativeValue added in v0.0.19

func (s *MyScriptor) DecNegativeValue(keys, args []string) (int64, error)

DecNegativeValue function - keys, args[] string - return int64 , error

func (*MyScriptor) DecValue

func (s *MyScriptor) DecValue(keys, args []string) (int64, error)

DecValue function - keys, args[] string - return int64 , error

func (*MyScriptor) DecValueBatch added in v0.0.47

func (s *MyScriptor) DecValueBatch(keys []string, args ...interface{}) (*[]RedisResult, error)

DecValueBatch function - keys []string, args ...interface{} - return *[]RedisResult , error

func (*MyScriptor) DecValueBefore added in v0.0.70

func (s *MyScriptor) DecValueBefore(keys, args []string) (int64, int64, error)

DecValueBefore function - keys, args[] string - return int64 , error

func (*MyScriptor) DelCountDown

func (s *MyScriptor) DelCountDown(keys, args []string) (int64, int64)

DelCountDown function - keys, args[] string - return int64 , int64

func (*MyScriptor) DelHash

func (s *MyScriptor) DelHash(keys, args []string)

DelHash function - keys, args[] string

func (*MyScriptor) DelHashAll

func (s *MyScriptor) DelHashAll(keys, args []string)

DelHashAll function - keys, args[] string

func (*MyScriptor) DelList

func (s *MyScriptor) DelList(keys, args []string)

DelList function - keys, args[] string

func (*MyScriptor) DelListAll

func (s *MyScriptor) DelListAll(keys, args []string)

DelListAll function - keys, args[] string

func (*MyScriptor) DelSet

func (s *MyScriptor) DelSet(keys, args []string)

DelSet function - keys, args[] string

func (*MyScriptor) DelSetAll

func (s *MyScriptor) DelSetAll(keys, args []string)

DelSetAll function - keys, args[] string

func (*MyScriptor) DelString

func (s *MyScriptor) DelString(keys, args []string)

DelString function - keys, args[] string

func (*MyScriptor) DelValue

func (s *MyScriptor) DelValue(keys, args []string)

DelValue function - keys, args[] string

func (*MyScriptor) DelZset

func (s *MyScriptor) DelZset(keys, args []string)

DelZset function - keys, args[] string

func (*MyScriptor) DelZsetAll

func (s *MyScriptor) DelZsetAll(keys, args []string)

DelZsetAll function - keys, args[] string

func (*MyScriptor) ExistsKEY added in v0.0.49

func (s *MyScriptor) ExistsKEY(keys, args []string) (bool, error)

ExistsKEY function - keys, args[] string - return string , error

func (*MyScriptor) ExpireKEY

func (s *MyScriptor) ExpireKEY(keys, args []string) (string, error)

ExpireKEY function - keys, args[] string - return string , error

func (*MyScriptor) FlushDB added in v0.0.50

func (s *MyScriptor) FlushDB(keys []string) (string, error)

FlushDB function - keys, args[] string - return string , error

func (*MyScriptor) Get added in v0.0.58

func (s *MyScriptor) Get(keys, args []string) (string, error)

Get function - keys, args[] string - return string , error

func (*MyScriptor) GetCountDown

func (s *MyScriptor) GetCountDown(keys, args []string) (int64, int64)

GetCountDown function - keys, args[] string - return int64 , int64

func (*MyScriptor) GetHash

func (s *MyScriptor) GetHash(keys, args []string) (string, error)

GetHash function - keys, args[] string - return string , error

func (*MyScriptor) GetHashAll

func (s *MyScriptor) GetHashAll(keys, args []string) (*[]RedisResult, error)

GetHashAll function - keys, args[] string - return *[]HashResult , error

func (*MyScriptor) GetHashNormal added in v0.0.29

func (s *MyScriptor) GetHashNormal(keys, args []string) (string, error)

GetHashNormal function - keys, args[] string - return string , error

func (*MyScriptor) GetList

func (s *MyScriptor) GetList(keys, args []string) (string, error)

GetList function - keys, args[] string - return string , error

func (*MyScriptor) GetListAll

func (s *MyScriptor) GetListAll(keys, args []string) (*[]RedisResult, error)

GetListAll function - keys, args[] string - return *[]RedisResult] , error

func (*MyScriptor) GetListLength

func (s *MyScriptor) GetListLength(keys, args []string) (int64, error)

GetListLength function - keys, args[] string - return int64 , error

func (*MyScriptor) GetListPop

func (s *MyScriptor) GetListPop(keys, args []string) (*RedisResult, error)

GetListPop function - keys, args[] string - return RedisResult , error model : L lpush list前 // R rpush list後

func (*MyScriptor) GetListPopBatch added in v0.0.75

func (s *MyScriptor) GetListPopBatch(keys, args []string) ([]RedisResult, error)

GetListPopBatch function - keys, args[] string - return RedisResult , error model : L lpush list前 // R rpush list後

func (*MyScriptor) GetSet

func (s *MyScriptor) GetSet(keys, args []string) (string, error)

GetSet function - keys, args[] string - return string , error

func (*MyScriptor) GetSetAll

func (s *MyScriptor) GetSetAll(keys, args []string) (*[]RedisResult, error)

GetSetAll function - keys, args[] string - return *[]HashResult , error

func (*MyScriptor) GetSetPop added in v0.0.20

func (s *MyScriptor) GetSetPop(keys, args []string) (string, error)

GetSetPop function - keys, args[subkey,request datacount] string - return *[]RedisResult , error

func (*MyScriptor) GetSetRandom

func (s *MyScriptor) GetSetRandom(keys, args []string) (*[]RedisResult, error)

GetSetRandom function - keys, args[subkey,request datacount] string - return *[]RedisResult , error

func (*MyScriptor) GetString

func (s *MyScriptor) GetString(keys, args []string) (string, error)

GetString function - keys, args[] string - return string , error

func (*MyScriptor) GetSystemRTP added in v0.0.68

func (s *MyScriptor) GetSystemRTP(keys, args []string) (map[string]interface{}, error)

GetSystemRTP function - keys, args[] string - return map[string]interface{}, error

func (*MyScriptor) GetUUID

func (s *MyScriptor) GetUUID(stringCount int64) (string, error)

GetUUID function - StringCount int64 - return string , error

func (*MyScriptor) GetValue

func (s *MyScriptor) GetValue(keys, args []string) (int64, error)

GetValue function - keys, args[] string - return int64 , error

func (*MyScriptor) GetValueAll added in v0.0.6

func (s *MyScriptor) GetValueAll(keys, args []string) (*[]RedisResult, error)

GetValueAll function - keys, args[] string - return *[]HashResult , error

func (*MyScriptor) GetZset

func (s *MyScriptor) GetZset(keys, args []string) (*RedisResult, error)

GetZset function - keys, args[] string - return int64 , error

func (*MyScriptor) GetZsetAll

func (s *MyScriptor) GetZsetAll(keys, args []string) (*[]RedisResult, error)

GetZsetAll function - keys, args[] string - return int64 , error

func (*MyScriptor) GetZsetAllCount added in v0.0.31

func (s *MyScriptor) GetZsetAllCount(keys, args []string) (int64, error)

DelSet function - keys, args[] string

func (*MyScriptor) GetZsetAllRev added in v0.0.31

func (s *MyScriptor) GetZsetAllRev(keys, args []string) (*[]RedisResult, error)

GetZsetAll function - keys, args[] string - return int64 , error

func (*MyScriptor) GetZsetCount added in v0.0.31

func (s *MyScriptor) GetZsetCount(keys, args []string) (int64, error)

DelSet function - keys, args[] string

func (*MyScriptor) GetZsetRange added in v0.0.36

func (s *MyScriptor) GetZsetRange(keys, args []string) (*[]RedisResult, error)

GetZsetRange function - keys, args[] string - return RedisResult , error

func (*MyScriptor) GetZsetRank added in v0.0.32

func (s *MyScriptor) GetZsetRank(keys, args []string) (int64, error)

GetZsetAll function - keys, args[] string - return int64 , error

func (*MyScriptor) HGetAll added in v0.0.60

func (s *MyScriptor) HGetAll(keys, args []string) (*[]RedisResult, error)

HGetAll function - keys, args[] string - return *[]HashResult , error

func (*MyScriptor) HSet added in v0.0.60

func (s *MyScriptor) HSet(keys []string, args ...interface{}) (*[]RedisResult, error)

HSet function - keys []string, args ...interface{} - return *[]RedisResult , error

func (*MyScriptor) IncBase10 added in v0.0.72

func (s *MyScriptor) IncBase10(keys, args []string) (string, error)

IncBase10 function - keys, args[] string - return string , error

func (*MyScriptor) IncBase62 added in v0.0.16

func (s *MyScriptor) IncBase62(keys, args []string) (string, error)

IncBase62 function - keys, args[] string - return string , error

func (*MyScriptor) IncCountDown

func (s *MyScriptor) IncCountDown(keys, args []string) (int64, int64)

IncCountDown function - keys, args[] string - return int64 , int64

func (*MyScriptor) IncValue

func (s *MyScriptor) IncValue(keys, args []string) (int64, error)

IncValue function - keys, args[] string - return int64 , error

func (*MyScriptor) IncValueBatch added in v0.0.47

func (s *MyScriptor) IncValueBatch(keys []string, args ...interface{}) (*[]RedisResult, error)

IncValueBatch function - keys []string, args ...interface{} - return *[]RedisResult , error

func (*MyScriptor) IncValueBatchFixedTTL added in v0.0.55

func (s *MyScriptor) IncValueBatchFixedTTL(keys []string, args ...interface{}) (*[]RedisResult, error)

IncValueBatchFixedTTL function - keys []string, args ...interface{} - return *[]RedisResult , error

func (*MyScriptor) IncValueBefore added in v0.0.70

func (s *MyScriptor) IncValueBefore(keys, args []string) (int64, int64, error)

IncValueBefore function - keys, args[] string - return int64 , error

func (*MyScriptor) KeyType added in v0.0.56

func (s *MyScriptor) KeyType(keys, args []string) (string, error)

KeyType function - keys, args[] string - return string , error

func (*MyScriptor) NewHash

func (s *MyScriptor) NewHash(keys, args []string) (string, error)

NewHash function - keys, args []string - return string , error

func (*MyScriptor) NewList

func (s *MyScriptor) NewList(keys, args []string) (string, error)

NewList function - keys, args[] string - return string , error

func (*MyScriptor) NewListBatch added in v0.0.73

func (s *MyScriptor) NewListBatch(keys []string, args ...interface{}) (int64, error)

NewListBatch function - keys, args[] string - return string , error

func (*MyScriptor) NewSet

func (s *MyScriptor) NewSet(keys, args []string) (string, error)

NewSet function - keys, args[] string - return string , error

func (*MyScriptor) NewString

func (s *MyScriptor) NewString(keys, args []string) (string, error)

NewString function - keys, args[] string - return string , error

func (*MyScriptor) NewZset

func (s *MyScriptor) NewZset(keys, args []string) (*RedisResult, error)

NewZset function - keys, args[] string - return string , error

func (*MyScriptor) Publish

func (s *MyScriptor) Publish(Channel string, data interface{})

Publish function - Channel string, data interface{} -

func (*MyScriptor) RoomIDPlayer added in v0.0.54

func (s *MyScriptor) RoomIDPlayer(
	keys []string,
	platformID string,
	gameID string,
	countryCode string,
	roomID string,
) (interface{}, error)

RoomIDPlayer function - keys, args[] string - return interface{} , error

func (*MyScriptor) RoomJoin

func (s *MyScriptor) RoomJoin(
	keys []string,
	platformID string,
	gameID string,
	countryCode string,
	playerID string,
	maxPlayerCount int,
	seatsCount int,
	date string,
	isBot bool,
	roomId string,
) (string, error)

RoomJoin function - args[] string - return string , error

func (*MyScriptor) RoomLeft

func (s *MyScriptor) RoomLeft(
	keys []string,
	platformID string,
	gameID string,
	countryCode string,
	playerID string,
) (interface{}, error)

RoomLeft function - keys, args[] string - return string , error

func (*MyScriptor) RoomLeftSingle added in v0.0.53

func (s *MyScriptor) RoomLeftSingle(
	keys []string,
	platformID string,
	gameID string,
	countryCode string,
	playerID string,
) (interface{}, error)

RoomLeftSingle function - keys, args[] string - return string , error

func (*MyScriptor) RoomList

func (s *MyScriptor) RoomList(
	keys []string,
) (interface{}, error)

RoomList function - keys, args[] string - return interface{} , error

func (*MyScriptor) RoomPlayer

func (s *MyScriptor) RoomPlayer(
	keys []string,
	platformID string,
	gameID string,
	countryCode string,
) (interface{}, error)

RoomPlayer function - keys, args[] string - return interface{} , error

func (*MyScriptor) SAdd added in v0.0.58

func (s *MyScriptor) SAdd(keys, args []string) (string, error)

SAdd function - keys, args[] string - return string , error

func (*MyScriptor) SMembers added in v0.0.58

func (s *MyScriptor) SMembers(keys, args []string) (*[]RedisResult, error)

SMembers function - keys, args[] string - return *[]RedisResult , error

func (*MyScriptor) ScanKey added in v0.0.56

func (s *MyScriptor) ScanKey(keys, args []string) (*[]RedisResult, error)

ScanKey function - keys, args[] string - return *[]RedisResult , error

func (*MyScriptor) ScanMatchKey added in v0.0.62

func (s *MyScriptor) ScanMatchKey(keys, args []string) (*[]RedisResult, error)

ScanMatchKey function - keys, args[] string - return *[]RedisResult , error

func (*MyScriptor) ScanMatchKeys added in v0.0.64

func (s *MyScriptor) ScanMatchKeys(keys, args []string) (*[]RedisResult, error)

ScanMatchKeys function - keys, args[] string - return *[]RedisResult , error

func (*MyScriptor) Set added in v0.0.58

func (s *MyScriptor) Set(keys, args []string) (string, error)

Set function - keys, args[] string - return string , error

func (*MyScriptor) SetTTL added in v0.0.66

func (s *MyScriptor) SetTTL(keys, args []string) (string, error)

SetTTL function - keys, args[] string - return string , error

func (*MyScriptor) SubscribeString

func (s *MyScriptor) SubscribeString(Channel string, callback func(string))

SubscribeString -

func (*MyScriptor) TTLKey

func (s *MyScriptor) TTLKey(keys, args []string) (string, error)

TTLKey function - keys, args[] string - return string , error

func (*MyScriptor) TakeValue added in v0.0.6

func (s *MyScriptor) TakeValue(keys, args []string) (int64, error)

TakeValue function - keys, args[] string - return int64 , error

func (*MyScriptor) UpdateCountDown

func (s *MyScriptor) UpdateCountDown(keys, args []string) (int64, int64)

UpdateCountDown function - keys, args[] string - return int64 , int64

func (*MyScriptor) UpdateHash

func (s *MyScriptor) UpdateHash(keys, args []string) (string, error)

UpdateHash function - keys, args[] string - return string , error

func (*MyScriptor) UpdateHashBatch added in v0.0.46

func (s *MyScriptor) UpdateHashBatch(keys []string, args ...interface{}) (*[]RedisResult, error)

UpdateHashBatch function - keys []string, args ...interface{} - return *[]RedisResult , error

func (*MyScriptor) UpdateHashList added in v0.0.10

func (s *MyScriptor) UpdateHashList(keys, args []string) (*[]RedisResult, error)

UpdateHashList function - keys, args[] string - return string , error

func (*MyScriptor) UpdateHashTTL added in v0.0.34

func (s *MyScriptor) UpdateHashTTL(keys, args []string) (string, error)

UpdateHashTTL function - keys, args[] string - return string , error

func (*MyScriptor) UpdateList

func (s *MyScriptor) UpdateList(keys, args []string) (string, error)

UpdateList function - keys, args[] string - return string , error

func (*MyScriptor) UpdateSet

func (s *MyScriptor) UpdateSet(keys, args []string) (string, error)

UpdateSet function - keys, args[] string - return string , error

func (*MyScriptor) UpdateString

func (s *MyScriptor) UpdateString(keys, args []string) (string, error)

UpdateString function - keys, args[] string - return string , eror

func (*MyScriptor) UpdateTTLString

func (s *MyScriptor) UpdateTTLString(keys, args []string) (string, error)

UpdateTTLString function - keys, args[] string - return string , eror

func (*MyScriptor) UpdateValue

func (s *MyScriptor) UpdateValue(keys, args []string) (int64, error)

UpdateValue function - keys, args[] string - return int64 , error

func (*MyScriptor) UpdateZset

func (s *MyScriptor) UpdateZset(keys, args []string) (*RedisResult, error)

NewZset function - keys, args[] string - return string , error

func (*MyScriptor) ZAdd added in v0.0.71

func (s *MyScriptor) ZAdd(keys, args []string) (string, int64, error)

ZAdd function - keys, args[] string - return string , error

func (*MyScriptor) ZRange added in v0.0.71

func (s *MyScriptor) ZRange(keys, args []string) ([]RedisResult, error)

ZRange function - keys, args[] string - return string , error

type RedisResult

type RedisResult struct {
	Value       string
	Value2      string
	CountDown   int64
	EndTime     int64
	ValueInt64  int64
	Value2Int64 int64
	Key         string
	Type        string
	Count       int64
}

RedisResult -

type RedisType added in v0.0.57

type RedisType int
const (
	NONE   RedisType = iota //KEY不存在
	STRING                  //字符串
	LIST                    //列表
	SET                     //集合
	ZSET                    //有序集合
	HASH                    //哈希表
)

func (RedisType) String added in v0.0.57

func (state RedisType) String() string

Redis Type 種類

type RoomJoinError

type RoomJoinError struct {
	Error struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	} `json:"error"`
}

type RoomJoinResult

type RoomJoinResult struct {
	RoomID  string       `json:"roomId"`
	SeatID  string       `json:"seatId"`
	Players []RoomPlayer `json:"players"`
}

type RoomPlayer

type RoomPlayer struct {
	SeatID   string `json:"SeatID"`
	UserID   string `json:"UserID"`
	Credit   string `json:"Credit"`
	BetIndex string `json:"BetIndex"`
}

type SubscribeResult

type SubscribeResult struct {
	Channel string
	Payload string
}

SubscribeResult -

Source Files

Jump to

Keyboard shortcuts

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