batter

package
Version: v0.0.0-...-1335a43 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2013 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package batter provides a driver for a BitTorrent tracker to interface with the postgres database used by batter (github.com/wafflesfm/batter).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	*sql.DB
}

func (*Conn) LoadAllTorrents

func (c *Conn) LoadAllTorrents() ([]*models.Torrent, error)

func (*Conn) LoadAllUsers

func (c *Conn) LoadAllUsers(ids []uint64) ([]*models.User, error)

func (*Conn) LoadTorrents

func (c *Conn) LoadTorrents(ids []uint64) ([]*models.Torrent, error)

func (*Conn) LoadUsers

func (c *Conn) LoadUsers(ids []uint64) ([]*models.User, error)

func (*Conn) RecordAnnounce

func (c *Conn) RecordAnnounce(delta *storage.AnnounceDelta) error

func (*Conn) Start

func (c *Conn) Start() error

Source Files

Jump to

Keyboard shortcuts

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