Code review comment for lp:~chipaca/ubuntu-push/introducing-sqlevelmap

Revision history for this message
Samuele Pedroni (pedronis) wrote :

PACKAGE DOCUMENTATION

package levelmap
    import "/home/pedronis/canonical/go-ws/src/launchpad.net/ubuntu-push/client/session/levelmap"

    levelmap holds an implementation of the LevelMap that the client session

^^^ implementations

    uses to keep track of what messages it has seen.

TYPES

type LevelMap interface {
    // Set() (re)sets the given level to the given value.
    Set(level string, top int64) error
    // GetAll() returns a "simple" map of the current levels.
    GetAll() (map[string]int64, error)
}

func NewLevelMap() (LevelMap, error)
    default constructor

^^^ in-memory something something

func NewSqliteLevelMap(filename string) (LevelMap, error)

^^^ sqlite-backed something something

review: Approve

« Back to merge proposal