common

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2014 License: BSD-2-Clause Imports: 1 Imported by: 0

README

common

TODO

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyScoreMember

type KeyScoreMember struct {
	Key    string
	Score  float64
	Member string
}

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).

type KeyScoreMembers

type KeyScoreMembers []KeyScoreMember

KeyScoreMembers implements sort.Sort methods on a slice of KeyScoreMember.

func (KeyScoreMembers) Len

func (a KeyScoreMembers) Len() int

Len implements sort.Sort.

func (KeyScoreMembers) Less

func (a KeyScoreMembers) Less(i, j int) bool

Less implements sort.Sort.

func (KeyScoreMembers) Swap

func (a KeyScoreMembers) Swap(i, j int)

Swap implements sort.Sort.

Jump to

Keyboard shortcuts

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