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)
}
PACKAGE DOCUMENTATION
package levelmap pedronis/ canonical/ go-ws/src/ launchpad. net/ubuntu- push/client/ session/ levelmap"
import "/home/
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 NewSqliteLevelM ap(filename string) (LevelMap, error)
^^^ sqlite-backed something something