Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
Connection represents the connection to the pulse database.
func Dial ¶
func Dial(connectString string, db string, collection string) (*Connection, error)
Dial establishes a new connection to a pulse database.
func (*Connection) Get ¶
func (conn *Connection) Get(namespace string) ([]Pulse, error)
Get retrieves all pulses for the given namespace.
func (*Connection) Record ¶
func (conn *Connection) Record(namespace string) error
Record records a new pulse in the database.
Click to show internal directories.
Click to hide internal directories.