Documentation
¶
Overview ¶
Package common holds data structures shared between different packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyMember ¶ added in v0.0.2
KeyMember is used by the Score method, and other places internally. It's probably not useful to external users.
type KeyScoreMember ¶
KeyScoreMember represents one entry in a ZSET.
func (KeyScoreMember) MarshalJSON ¶
func (ksm KeyScoreMember) MarshalJSON() ([]byte, error)
MarshalJSON makes sure that the strings in KeyScoreMember are marshalled properly as byte sequences (i.e. base64 encoded in the JSON data; the JSON string encoding is neither efficient nor reliable for arbitrary byte sequences).
func (*KeyScoreMember) UnmarshalJSON ¶
func (ksm *KeyScoreMember) UnmarshalJSON(data []byte) error
UnmarshalJSON makes sure that the strings in KeyScoreMember are unmarshalled properly from byte sequences (i.e. base64 encoded in the JSON data; the JSON string encoding is neither efficient nor reliable for arbitrary byte sequences).