rsserver

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	Name         string
	ItemTable    *rssitem.Table
	ChannelTable *rsschannel.Table
	// contains filtered or unexported fields
}

DB contains the database information and connections.

func (*DB) Close

func (db *DB) Close() (err error)

Close close the database connection.

func (*DB) Create added in v1.2.0

func (db *DB) Create() (err error)

Create creates the table that is used in rsschannel and rssitem package. If their is an existing table, than it will throw error. Drop should be done manually.

func (*DB) Open

func (db *DB) Open(name, address, id, password string) (err error)

Open make a connection to database with the following parameters. It use db name, host address, db ID and password.

func (*DB) Update added in v1.1.0

func (db *DB) Update() (err error)

Update updates the database for example, channel information and channel items.

Directories

Path Synopsis
Package rsschannel provides functionality to act with rsserver's channel Table.
Package rsschannel provides functionality to act with rsserver's channel Table.
Package rssitem provides functionality to act with rsserver's item Table.
Package rssitem provides functionality to act with rsserver's item Table.

Jump to

Keyboard shortcuts

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