Documentation ¶
Index ¶
- Constants
- Variables
- type MyScriptor
- func (s *MyScriptor) BroadCast(channeltype, channeltarget string, msg []byte)
- func (s *MyScriptor) CloseSubscribe(Channel string)
- func (s *MyScriptor) DecCountDown(keys, args []string) (int64, int64)
- func (s *MyScriptor) DecNegativeValue(keys, args []string) (int64, error)
- func (s *MyScriptor) DecValue(keys, args []string) (int64, error)
- func (s *MyScriptor) DecValueBatch(keys []string, args ...interface{}) (*[]RedisResult, error)
- func (s *MyScriptor) DecValueBefore(keys, args []string) (int64, int64, error)
- func (s *MyScriptor) DelCountDown(keys, args []string) (int64, int64)
- func (s *MyScriptor) DelHash(keys, args []string)
- func (s *MyScriptor) DelHashAll(keys, args []string)
- func (s *MyScriptor) DelList(keys, args []string)
- func (s *MyScriptor) DelListAll(keys, args []string)
- func (s *MyScriptor) DelSet(keys, args []string)
- func (s *MyScriptor) DelSetAll(keys, args []string)
- func (s *MyScriptor) DelString(keys, args []string)
- func (s *MyScriptor) DelValue(keys, args []string)
- func (s *MyScriptor) DelZset(keys, args []string)
- func (s *MyScriptor) DelZsetAll(keys, args []string)
- func (s *MyScriptor) ExistsKEY(keys, args []string) (bool, error)
- func (s *MyScriptor) ExpireKEY(keys, args []string) (string, error)
- func (s *MyScriptor) FlushDB(keys []string) (string, error)
- func (s *MyScriptor) Get(keys, args []string) (string, error)
- func (s *MyScriptor) GetCountDown(keys, args []string) (int64, int64)
- func (s *MyScriptor) GetHash(keys, args []string) (string, error)
- func (s *MyScriptor) GetHashAll(keys, args []string) (*[]RedisResult, error)
- func (s *MyScriptor) GetHashNormal(keys, args []string) (string, error)
- func (s *MyScriptor) GetList(keys, args []string) (string, error)
- func (s *MyScriptor) GetListAll(keys, args []string) (*[]RedisResult, error)
- func (s *MyScriptor) GetListLength(keys, args []string) (int64, error)
- func (s *MyScriptor) GetListPop(keys, args []string) (*RedisResult, error)
- func (s *MyScriptor) GetListPopBatch(keys, args []string) ([]RedisResult, error)
- func (s *MyScriptor) GetSet(keys, args []string) (string, error)
- func (s *MyScriptor) GetSetAll(keys, args []string) (*[]RedisResult, error)
- func (s *MyScriptor) GetSetPop(keys, args []string) (string, error)
- func (s *MyScriptor) GetSetRandom(keys, args []string) (*[]RedisResult, error)
- func (s *MyScriptor) GetString(keys, args []string) (string, error)
- func (s *MyScriptor) GetSystemRTP(keys, args []string) (map[string]interface{}, error)
- func (s *MyScriptor) GetUUID(stringCount int64) (string, error)
- func (s *MyScriptor) GetValue(keys, args []string) (int64, error)
- func (s *MyScriptor) GetValueAll(keys, args []string) (*[]RedisResult, error)
- func (s *MyScriptor) GetZset(keys, args []string) (*RedisResult, error)
- func (s *MyScriptor) GetZsetAll(keys, args []string) (*[]RedisResult, error)
- func (s *MyScriptor) GetZsetAllCount(keys, args []string) (int64, error)
- func (s *MyScriptor) GetZsetAllRev(keys, args []string) (*[]RedisResult, error)
- func (s *MyScriptor) GetZsetCount(keys, args []string) (int64, error)
- func (s *MyScriptor) GetZsetRange(keys, args []string) (*[]RedisResult, error)
- func (s *MyScriptor) GetZsetRank(keys, args []string) (int64, error)
- func (s *MyScriptor) HGetAll(keys, args []string) (*[]RedisResult, error)
- func (s *MyScriptor) HSet(keys []string, args ...interface{}) (*[]RedisResult, error)
- func (s *MyScriptor) IncBase10(keys, args []string) (string, error)
- func (s *MyScriptor) IncBase62(keys, args []string) (string, error)
- func (s *MyScriptor) IncCountDown(keys, args []string) (int64, int64)
- func (s *MyScriptor) IncValue(keys, args []string) (int64, error)
- func (s *MyScriptor) IncValueBatch(keys []string, args ...interface{}) (*[]RedisResult, error)
- func (s *MyScriptor) IncValueBatchFixedTTL(keys []string, args ...interface{}) (*[]RedisResult, error)
- func (s *MyScriptor) IncValueBefore(keys, args []string) (int64, int64, error)
- func (s *MyScriptor) KeyType(keys, args []string) (string, error)
- func (s *MyScriptor) NewHash(keys, args []string) (string, error)
- func (s *MyScriptor) NewList(keys, args []string) (string, error)
- func (s *MyScriptor) NewListBatch(keys []string, args ...interface{}) (int64, error)
- func (s *MyScriptor) NewSet(keys, args []string) (string, error)
- func (s *MyScriptor) NewString(keys, args []string) (string, error)
- func (s *MyScriptor) NewZset(keys, args []string) (*RedisResult, error)
- func (s *MyScriptor) Publish(Channel string, data interface{})
- func (s *MyScriptor) RoomIDPlayer(keys []string, platformID string, gameID string, countryCode string, ...) (interface{}, error)
- func (s *MyScriptor) RoomJoin(keys []string, platformID string, gameID string, countryCode string, ...) (string, error)
- func (s *MyScriptor) RoomLeft(keys []string, platformID string, gameID string, countryCode string, ...) (interface{}, error)
- func (s *MyScriptor) RoomLeftSingle(keys []string, platformID string, gameID string, countryCode string, ...) (interface{}, error)
- func (s *MyScriptor) RoomList(keys []string) (interface{}, error)
- func (s *MyScriptor) RoomPlayer(keys []string, platformID string, gameID string, countryCode string) (interface{}, error)
- func (s *MyScriptor) SAdd(keys, args []string) (string, error)
- func (s *MyScriptor) SMembers(keys, args []string) (*[]RedisResult, error)
- func (s *MyScriptor) ScanKey(keys, args []string) (*[]RedisResult, error)
- func (s *MyScriptor) ScanMatchKey(keys, args []string) (*[]RedisResult, error)
- func (s *MyScriptor) ScanMatchKeys(keys, args []string) (*[]RedisResult, error)
- func (s *MyScriptor) Set(keys, args []string) (string, error)
- func (s *MyScriptor) SetTTL(keys, args []string) (string, error)
- func (s *MyScriptor) SubscribeString(Channel string, callback func(string))
- func (s *MyScriptor) TTLKey(keys, args []string) (string, error)
- func (s *MyScriptor) TakeValue(keys, args []string) (int64, error)
- func (s *MyScriptor) UpdateCountDown(keys, args []string) (int64, int64)
- func (s *MyScriptor) UpdateHash(keys, args []string) (string, error)
- func (s *MyScriptor) UpdateHashBatch(keys []string, args ...interface{}) (*[]RedisResult, error)
- func (s *MyScriptor) UpdateHashList(keys, args []string) (*[]RedisResult, error)
- func (s *MyScriptor) UpdateHashTTL(keys, args []string) (string, error)
- func (s *MyScriptor) UpdateList(keys, args []string) (string, error)
- func (s *MyScriptor) UpdateSet(keys, args []string) (string, error)
- func (s *MyScriptor) UpdateString(keys, args []string) (string, error)
- func (s *MyScriptor) UpdateTTLString(keys, args []string) (string, error)
- func (s *MyScriptor) UpdateValue(keys, args []string) (int64, error)
- func (s *MyScriptor) UpdateZset(keys, args []string) (*RedisResult, error)
- func (s *MyScriptor) ZAdd(keys, args []string) (string, int64, error)
- func (s *MyScriptor) ZRange(keys, args []string) ([]RedisResult, error)
- type RedisResult
- type RedisType
- type RoomJoinError
- type RoomJoinResult
- type RoomPlayer
- type SubscribeResult
Constants ¶
const ( BroadCastID = "BroadCast" BroadCastTemplate = `` /* 155-byte string literal not displayed */ )
BroadCast - 寫入一個數字
const ( DecCountDownID = "DecCountDown" DecCountDownTemplate = `` /* 2068-byte string literal not displayed */ )
DecCountDown - 計數器減少
const ( DecNegativeValueID = "DecNegativeValue" DecNegativeValueTemplate = `` /* 1146-byte string literal not displayed */ )
DecNegativeValue - 減少數值
const ( DecValueBatchID = "DecValueBatch" DecValueBatchTemplate = `` /* 1102-byte string literal not displayed */ )
DecValueBatch - 批量增加數字
const ( DecValueBeforeID = "DecValueBefore" DecValueBeforeTemplate = `` /* 1158-byte string literal not displayed */ )
DecValueBefore - 減少數字且查詢原始數字
const ( DecValueID = "DecValue" DecValueTemplate = `` /* 1123-byte string literal not displayed */ )
DecValue - 減少數值
const ( DelCountDownID = "DelCountDown" DelCountDownTemplate = `` /* 1471-byte string literal not displayed */ )
DelCountDown - 刪除計數器
const ( DelHashAllID = "DelHashAll" DelHashAllTemplate = `` /* 652-byte string literal not displayed */ )
DelHashAll - 減少數值
const ( DelHashID = "DelHash" DelHashTemplate = `` /* 728-byte string literal not displayed */ )
DelHash - 減少數值
const ( DelListAllID = "DelListAll" DelListAllTemplate = `` /* 652-byte string literal not displayed */ )
DelListAll - 減少數值
const ( DelListID = "DelList" DelListTemplate = `` /* 819-byte string literal not displayed */ )
DelList - 減少數值
const ( DelSetAllID = "DelSetAll" DelSetAllTemplate = `` /* 653-byte string literal not displayed */ )
DelSetAll - 減少數值
const ( DelSetID = "DelSet" DelSetTemplate = `` /* 729-byte string literal not displayed */ )
DelSet - 減少數值
const ( DelStringID = "DelString" DelStringTemplate = `` /* 1055-byte string literal not displayed */ )
DelString - 寫入一個字串
const ( DelValueID = "DelValue" DelValueTemplate = `` /* 1284-byte string literal not displayed */ )
DelValue - 刪除一個數值
const ( DelZsetAllID = "DelZsetAll" DelZsetAllTemplate = `` /* 652-byte string literal not displayed */ )
DelZsetAll - 寫入一個數字
const ( DelZsetID = "DelZset" DelZsetTemplate = `` /* 727-byte string literal not displayed */ )
DelZset - 寫入一個數字
const ( ExistsKEYID = "ExistsKEY" ExistsKEYTemplate = `` /* 696-byte string literal not displayed */ )
ExistsKEY - 檢查key存在否
const ( ExpireKEYID = "ExpireKEY" ExpireKEYTemplate = `` /* 875-byte string literal not displayed */ )
ExpireKEY - 寫入一個字串
const ( FlushDBID = "FlushDB" FlushDBTemplate = `` /* 378-byte string literal not displayed */ )
FlushDB - 清空指定DB
const ( GetCountDownID = "GetCountDown" GetCountDownTemplate = `` /* 1415-byte string literal not displayed */ )
GetCountDown - 計數器減少
const ( GetHashAllID = "GetHashAll" GetHashAllTemplate = `` /* 767-byte string literal not displayed */ )
GetHashAll - 減少數值
const ( GetHashNormalID = "GetHashNormal" GetHashNormalTemplate = `` /* 643-byte string literal not displayed */ )
GetHashNormal - 減少數值
const ( GetHashID = "GetHash" GetHashTemplate = `` /* 837-byte string literal not displayed */ )
GetHash - 減少數值
const ( GetListAllID = "GetListAll" GetListAllTemplate = `` /* 774-byte string literal not displayed */ )
GetListAll - 減少數值
const ( GetListLengthID = "GetListLength" GetListLengthTemplate = `` /* 783-byte string literal not displayed */ )
GetListLength - 減少數值
const ( GetListPopBatchID = "GetListPopBatch" GetListPopBatchTemplate = `` /* 1512-byte string literal not displayed */ )
GetListPop - 取出List的資料
const ( GetListPopID = "GetListPop" GetListPopTemplate = `` /* 909-byte string literal not displayed */ )
GetListPop - 取出List的資料
const ( GetListID = "GetList" GetListTemplate = `` /* 859-byte string literal not displayed */ )
GetList - 減少數值
const ( GetSetAllID = "GetSetAll" GetSetAllTemplate = `` /* 702-byte string literal not displayed */ )
GetSetAll - 減少數值
const ( GetSetPopID = "GetSetPop" GetSetPopTemplate = `` /* 776-byte string literal not displayed */ )
GetSetPop - 減少數值
const ( GetSetRandomID = "GetSetRandom" GetSetRandomTemplate = `` /* 790-byte string literal not displayed */ )
GetSetRandom - 減少數值
const ( GetSetID = "GetSet" GetSetTemplate = `` /* 818-byte string literal not displayed */ )
GetSet - 減少數值
const ( GetStringID = "GetString" GetStringTemplate = `` /* 1133-byte string literal not displayed */ )
GetString - 寫入一個字串
const ( GetSystemRTPID = "GetSystemRTP" GetSystemRTPTemplate = `` /* 773-byte string literal not displayed */ )
GetSystemRTP - 獲取系統RTP
const ( GetID = "Get" GetTemplate = `` /* 401-byte string literal not displayed */ )
Get - 爬key
const ( GetUUIDID = "GetUUID" GetUUIDTemplate = `` /* 646-byte string literal not displayed */ )
GetUUID - 寫入一個字串
const ( GetValueAllID = "GetValueAll" GetValueAllTemplate = `` /* 767-byte string literal not displayed */ )
GetValueAll - 取得數值陣列
const ( GetValueID = "GetValue" GetValueTemplate = `` /* 1226-byte string literal not displayed */ )
GetValue - 取得數字
const ( GetZsetAllCountID = "GetZsetAllCount" GetZsetAllCountTemplate = `` /* 694-byte string literal not displayed */ )
GetZsetAll - 寫入一個字串
const ( GetZsetAllRevID = "GetZsetAllRev" GetZsetAllRevTemplate = `` /* 848-byte string literal not displayed */ )
GetZsetAll - 寫入一個字串
const ( GetZsetAllID = "GetZsetAll" GetZsetAllTemplate = `` /* 842-byte string literal not displayed */ )
GetZsetAll - 寫入一個字串
const ( GetZsetCountID = "GetZsetCount" GetZsetCountTemplate = `` /* 846-byte string literal not displayed */ )
GetZsetAll - 寫入一個字串
const ( GetZsetRangeID = "GetZsetRange" GetZsetRangeTemplate = `` /* 857-byte string literal not displayed */ )
GetZsetRange - 寫入一個字串
const ( GetZsetRankID = "GetZsetRank" GetZsetRankTemplate = `` /* 755-byte string literal not displayed */ )
GetZsetAll - 寫入一個字串
const ( GetZsetID = "GetZset" GetZsetTemplate = `` /* 876-byte string literal not displayed */ )
GetZset - 寫入一個字串
const ( HGetAllID = "HGetAll" HGetAllTemplate = `` /* 525-byte string literal not displayed */ )
HGetAll - 取得該Hash底下所有的kv
const ( HSetID = "HSet" HSetTemplate = `` /* 660-byte string literal not displayed */ )
HSet - 批量更新Hash
const ( IncBase10ID = "IncBase10" IncBase10Template = `` /* 2483-byte string literal not displayed */ )
IncBase10 - 增加數字
const ( IncBase62ID = "IncBase62" IncBase62Template = `` /* 2535-byte string literal not displayed */ )
IncValue - 增加數字
const ( IncCountDownID = "IncCountDown" IncCountDownTemplate = `` /* 2069-byte string literal not displayed */ )
IncCountDown - 計數器+
const ( IncValueBatchFixedTTLID = "IncValueBatchFixedTTL" IncValueBatchFixedTTLTemplate = `` /* 1391-byte string literal not displayed */ )
IncValueBatchFixedTTL - 批量增加數字(設定一個固定的TTL)
const ( IncValueBatchID = "IncValueBatch" IncValueBatchTemplate = `` /* 1099-byte string literal not displayed */ )
IncValueBatch - 批量增加數字
const ( IncValueBeforeID = "IncValueBefore" IncValueBeforeTemplate = `` /* 1678-byte string literal not displayed */ )
IncValueBefore - 增加數字且查詢原始數字
const ( IncValueID = "IncValue" IncValueTemplate = `` /* 1595-byte string literal not displayed */ )
IncValue - 增加數字
const ( KeyTypeID = "KeyType" KeyTypeTemplate = `` /* 462-byte string literal not displayed */ )
KeyType - 爬key
const ( NewHashID = "NewHash" NewHashTemplate = `` /* 886-byte string literal not displayed */ )
NewHash - 減少數值
const ( NewListBatchID = "NewListBatch" NewListBatchTemplate = `` /* 969-byte string literal not displayed */ )
NewListBatch - 批量新增List
const ( NewListID = "NewList" NewListTemplate = `` /* 988-byte string literal not displayed */ )
NewList - 新增List
const ( NewSetID = "NewSet" NewSetTemplate = `` /* 851-byte string literal not displayed */ )
NewSet - 減少數值
const ( NewStringID = "NewString" NewStringTemplate = `` /* 1456-byte string literal not displayed */ )
NewString - 寫入一個字串
const ( NewZsetID = "NewZset" NewZsetTemplate = `` /* 1006-byte string literal not displayed */ )
NewZset - 減少數值
const ( RoomIDPlayerID = "RoomIDPlayer" RoomIDPlayerTemplate = `` /* 1233-byte string literal not displayed */ )
RoomIDPlayer - 查詢特定房間玩家
const ( RoomJoinID = "RoomJoin" RoomJoinTemplate = `` /* 6419-byte string literal not displayed */ )
RoomJoin - 減少數值
const ( RoomLeftSingleID = "RoomLeftSingle" RoomLeftSingleTemplate = `` /* 4355-byte string literal not displayed */ )
RoomLeft - 減少數值
const ( RoomLeftID = "RoomLeft" RoomLeftTemplate = `` /* 4061-byte string literal not displayed */ )
RoomLeft - 減少數值
const ( RoomListID = "RoomList" RoomListTemplate = `` /* 1405-byte string literal not displayed */ )
RoomList - 減少數值
const ( RoomPlayerID = "RoomPlayer" RoomPlayerTemplate = `` /* 1194-byte string literal not displayed */ )
RoomPlayer - 查詢玩家
const ( SAddID = "SAdd" SAddTemplate = `` /* 472-byte string literal not displayed */ )
SAdd - 爬key
const ( ScanKeyID = "ScanKey" ScanKeyTemplate = `` /* 762-byte string literal not displayed */ )
ScanKey - 爬key
const ( ScanMatchKeyID = "ScanMatchKey" ScanMatchKeyTemplate = `` /* 653-byte string literal not displayed */ )
ScanMatchKey - 爬key
const ( ScanMatchKeysID = "ScanMatchKeys" ScanMatchKeysTemplate = `` /* 799-byte string literal not displayed */ )
ScanMatchKey - 爬key
const ( SetTTLID = "SetTTL" SetTTLTemplate = `` /* 612-byte string literal not displayed */ )
SetTTL - 修改Key的TTL
const ( SetID = "Set" SetTemplate = `` /* 469-byte string literal not displayed */ )
Set - 爬key
const ( SMembersID = "SMembers" SMembersTemplate = `` /* 415-byte string literal not displayed */ )
SMembers - 爬key
const ( TakeValueID = "TakeValue" TakeValueTemplate = `` /* 1140-byte string literal not displayed */ )
TakeValue - 取得數字
const ( TTLKeyID = "TTLKey" TTLKeyTemplate = `` /* 693-byte string literal not displayed */ )
TTLKey - 寫入一個字串
const ( UpdateCountDownID = "UpdateCountDown" UpdateCountDownTemplate = `` /* 1815-byte string literal not displayed */ )
UpdateCountDown - 計數器減少
const ( UpdateHashBatchID = "UpdateHashBatch" UpdateHashBatchTemplate = `` /* 894-byte string literal not displayed */ )
UpdateHashBatch - 批量更新Hash
const ( UpdateHashListID = "UpdateHashList" UpdateHashListTemplate = `` /* 1366-byte string literal not displayed */ )
UpdateHashList - 減少數值
const ( UpdateHashTTLID = "UpdateHashTTL" UpdateHashTTLTemplate = `` /* 1008-byte string literal not displayed */ )
UpdateHashTTL - 減少數值
const ( UpdateHashID = "UpdateHash" UpdateHashTemplate = `` /* 889-byte string literal not displayed */ )
UpdateHash - 減少數值
const ( UpdateListID = "UpdateList" UpdateListTemplate = `` /* 1241-byte string literal not displayed */ )
UpdateList - 減少數值
const ( UpdateSetID = "UpdateSet" UpdateSetTemplate = `` /* 960-byte string literal not displayed */ )
UpdateSet - 減少數值
const ( UpdateStringID = "UpdateString" UpdateStringTemplate = `` /* 1293-byte string literal not displayed */ )
UpdateString - 寫入一個字串
const ( UpdateTTLStringID = "UpdateTTLString" UpdateTTLStringTemplate = `` /* 861-byte string literal not displayed */ )
UpdateString - 寫入一個字串
const ( UpdateValueID = "UpdateValue" UpdateValueTemplate = `` /* 1473-byte string literal not displayed */ )
UpdateValue - 寫入一個數字
const ( UpdateZsetID = "UpdateZset" UpdateZsetTemplate = `` /* 1012-byte string literal not displayed */ )
UpdateZset - 減少數值
const ( ZAddID = "ZAdd" ZAddTemplate = `` /* 567-byte string literal not displayed */ )
ZAdd - 爬key
const ( ZRangeID = "ZRange" ZRangeTemplate = `` /* 447-byte string literal not displayed */ )
ZRange - 爬key
Variables ¶
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 ¶
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 RoomJoinError ¶
type RoomJoinResult ¶
type RoomJoinResult struct { RoomID string `json:"roomId"` SeatID string `json:"seatId"` Players []RoomPlayer `json:"players"` }
type RoomPlayer ¶
type SubscribeResult ¶
SubscribeResult -
Source Files ¶
- broadCastTemplet.go
- decCountdownTemplet.go
- decNegativeValueTemplet.go
- decValueBatchTemplet.go
- decValueGetBeforeTemplet.go
- decValueTemplet.go
- delCountdownTemplet.go
- delHashAllTemplet.go
- delHashTemplet.go
- delListAllTemplet.go
- delListTemplet.go
- delSetAllTemplet.go
- delSetTemplet.go
- delStringTemplet.go
- delValueTemplet.go
- delZsetAllTemplet.go
- delZsetTemplet.go
- existsKeyTemplet.go
- exprieKeyTemplet.go
- flushDBTemplet.go
- getCountdownTemplet.go
- getHashAllTemplet.go
- getHashNormalTemplet.go
- getHashTemplet.go
- getListAllTemplet.go
- getListLengthTemplet.go
- getListPopBatchTemplet.go
- getListPopTemplet.go
- getListTemplet.go
- getSetAllTemplet.go
- getSetPopTemplet.go
- getSetRandomTemplet.go
- getSetTemplet.go
- getStringTemplet.go
- getSystemRTPTemplet.go
- getTemplet.go
- getUUIDTemplet.go
- getValueAllTemplet.go
- getValueTemplet.go
- getZsetAllCountTemplet.go
- getZsetAllRevTemplaet.go
- getZsetAllTemplet.go
- getZsetCountTemplet.go
- getZsetRangeTemplet.go
- getZsetRankTemplet.go
- getZsetTemplet.go
- hgetallTemplet.go
- hsetTemplet.go
- incBase10Templet.go
- incBase62Templet.go
- incCountdownTemplet.go
- incValueBatchFixedTTLTemplet.go
- incValueBatchTemplet.go
- incValueGetBeforeTemplet.go
- incValueTemplet.go
- keyTypeTemplet.go
- newHashTemplet.go
- newListBatchTemplet.go
- newListTemplet.go
- newSetTemplet.go
- newStringTemplet.go
- newZsetTemplet.go
- roomIDPlayerTemplet.go
- roomJoinTemplet.go
- roomLeftSingleTemplet.go
- roomLeftTemplet.go
- roomListTemplet.go
- roomPlayerTemplet.go
- saddTemplet.go
- scanKeyTemplet.go
- scanMatchKeyTemplet.go
- scanMatchKeysTemplet.go
- scriptor.go
- setTTLTemplet.go
- setTemplet.go
- smembersTemplet.go
- takeValueTemplet.go
- ttlKeyTemplet.go
- updateCountdownTemplet.go
- updateHashBatchTemplet.go
- updateHashListTemplet.go
- updateHashTTLTemplet.go
- updateHashTemplet.go
- updateListTemplet.go
- updateSetTemplet.go
- updateStringTemplet.go
- updateTTLStringTemplet.go
- updateValueTemplet.go
- updateZsetTemplet.go
- util.go
- zaddTemplet.go
- zrangeTemplet.go