dao

package
v0.0.0-...-6d294ec Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chan

type Chan struct {
	Count int
	Name  string
	Last  int64
}

type Comment

type Comment struct {
	Id         int64
	Sender     string
	SenderName string
	IsReply    bool
	Subject    string
	Text       string
	Pending    bool
	Received   int64
	Body       string
	IsExtended bool
	ThreadHash string
}

type DAO

type DAO struct {
	Db *sql.DB
}

func (*DAO) AllKeys

func (d *DAO) AllKeys() ([]*Key, error)

func (*DAO) Comments

func (d *DAO) Comments(threadHash string) ([]*Comment, error)

func (*DAO) KeyByName

func (d *DAO) KeyByName(name string) *Key

func (*DAO) KeyByName2

func (d *DAO) KeyByName2(name string) (*Key, error)

func (*DAO) ThreadsByChanName

func (d *DAO) ThreadsByChanName(name string) ([]*Thread, error)

func (*DAO) TopChans

func (d *DAO) TopChans() ([]*Chan, error)

type Key

type Key struct {
	Name    string
	Address string
	Sigkey  string
	Deckey  string
	Enabled bool
}

type Thread

type Thread struct {
	Subject string
	Hash    string
	Last    int64
	Count   int
}

Jump to

Keyboard shortcuts

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