locks

package
v0.0.0-...-b4989b1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddChannel

func AddChannel(topic, channel, organization string, enabled bool) error

func Delete

func Delete(doc *utils.M) error

func Get

func Get(org, topic string, enabled bool) (error, *db.Locks)

func GetAll

func GetAll(org string) []db.Topic

func GetAllDisabled

func GetAllDisabled(org string) []db.Locks

func GetAllEnabled

func GetAllEnabled(org string) []db.Locks

func Insert

func Insert(preference *db.Locks) string

func IsLocked

func IsLocked(org string, topic, channel string, enabled bool) bool

func RemoveChannel

func RemoveChannel(topic, channel, organization string, enabled bool) error

func Update

func Update(id bson.ObjectId, doc utils.M) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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