pulse

package module
v0.0.0-...-73770af Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2014 License: GPL-2.0, GPL-3.0 Imports: 3 Imported by: 0

README

pulse

Little pulse server that can be used to record pulses from remote locations via http.

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

func (conn *Connection) Close()

Close closes the connection.

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.

type Pulse

type Pulse struct {
	Namespace string
	Time      time.Time
}

Pulse represents a single pulse.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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