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) 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) 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) 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) 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) 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) NewHash(keys, args []string) (string, error)
- func (s *MyScriptor) NewList(keys, args []string) (string, 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) 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) 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)
- type RedisResult
- 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 = `` /* 1183-byte string literal not displayed */ )
DecNegativeValue - 減少數值
const ( DecValueBatchID = "DecValueBatch" DecValueBatchTemplate = `` /* 1102-byte string literal not displayed */ )
DecValueBatch - 批量增加數字
const ( DecValueID = "DecValue" DecValueTemplate = `` /* 1156-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 = `` /* 803-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 = `` /* 766-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 = `` /* 781-byte string literal not displayed */ )
GetListAll - 減少數值
const ( GetListLengthID = "GetListLength" GetListLengthTemplate = `` /* 790-byte string literal not displayed */ )
GetListLength - 減少數值
const ( GetListPopID = "GetListPop" GetListPopTemplate = `` /* 867-byte string literal not displayed */ )
GetListPop - 減少數值
const ( GetListID = "GetList" GetListTemplate = `` /* 866-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 ( 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 ( IncBase62ID = "IncBase62" IncBase62Template = `` /* 2374-byte string literal not displayed */ )
IncValue - 增加數字
const ( IncCountDownID = "IncCountDown" IncCountDownTemplate = `` /* 2069-byte string literal not displayed */ )
IncCountDown - 計數器+
const ( IncValueBatchID = "IncValueBatch" IncValueBatchTemplate = `` /* 1099-byte string literal not displayed */ )
IncValueBatch - 批量增加數字
const ( IncValueID = "IncValue" IncValueTemplate = `` /* 1627-byte string literal not displayed */ )
IncValue - 增加數字
const ( NewHashID = "NewHash" NewHashTemplate = `` /* 886-byte string literal not displayed */ )
NewHash - 減少數值
const ( NewListID = "NewList" NewListTemplate = `` /* 995-byte string literal not displayed */ )
NewList - 減少數值
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 ( 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 = `` /* 1195-byte string literal not displayed */ )
RoomPlayer - 減少數值
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 - 減少數值
Variables ¶
var LuaScripts = map[string]string{ RoomJoinID: RoomJoinTemplate, RoomLeftID: RoomLeftTemplate, RoomLeftSingleID: RoomLeftSingleTemplate, RoomListID: RoomListTemplate, RoomPlayerID: RoomPlayerTemplate, IncValueID: IncValueTemplate, GetValueID: GetValueTemplate, GetValueAllID: GetValueAllTemplate, UpdateValueID: UpdateValueTemplate, DecValueID: DecValueTemplate, DelValueID: DelValueTemplate, TakeValueID: TakeValueTemplate, DecNegativeValueID: DecNegativeValueTemplate, IncValueBatchID: IncValueBatchTemplate, DecValueBatchID: DecValueBatchTemplate, 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, 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, ExistsKEYID: ExistsKEYTemplate, FlushDBID: FlushDBTemplate, }
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) 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) 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) 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) 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) 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) 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) 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) 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) 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
type RedisResult ¶
type RedisResult struct { Value string Value2 string CountDown int64 EndTime int64 ValueInt64 int64 Key string }
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
- 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
- getListPopTemplet.go
- getListTemplet.go
- getSetAllTemplet.go
- getSetPopTemplet.go
- getSetRandomTemplet.go
- getSetTemplet.go
- getStringTemplet.go
- getUUIDTemplet.go
- getValueAllTemplet.go
- getValueTemplet.go
- getZsetAllCountTemplet.go
- getZsetAllRevTemplaet.go
- getZsetAllTemplet.go
- getZsetCountTemplet.go
- getZsetRangeTemplet.go
- getZsetRankTemplet.go
- getZsetTemplet.go
- incBase62Templet.go
- incCountdownTemplet.go
- incValueBatchTemplet.go
- incValueTemplet.go
- newHashTemplet.go
- newListTemplet.go
- newSetTemplet.go
- newStringTemplet.go
- newZsetTemplet.go
- roomJoinTemplet.go
- roomLeftSingleTemplet.go
- roomLeftTemplet.go
- roomListTemplet.go
- roomPlayerTemplet.go
- scriptor.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