db

package
v0.0.0-...-d3e27e6 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SaltSize = 16 // 128 bits
)

Variables

This section is empty.

Functions

func ConnectToDatabase

func ConnectToDatabase(user, database string) error

Types

type Preacher

type Preacher struct {
	// contains filtered or unexported fields
}

func ListPreachers

func ListPreachers() ([]*Preacher, error)

func NewPreacher

func NewPreacher(name string) (*Preacher, error)

func PreacherByID

func PreacherByID(id int) (*Preacher, error)

func (*Preacher) ID

func (p *Preacher) ID() int

func (*Preacher) MarshalJSON

func (p *Preacher) MarshalJSON() ([]byte, error)

func (*Preacher) Name

func (p *Preacher) Name() string

func (*Preacher) String

func (p *Preacher) String() string

type Recording

type Recording struct {
	// contains filtered or unexported fields
}

func NewRecording

func NewRecording(at *time.Time, path string, preacher *Preacher) (*Recording, error)

func (*Recording) At

func (r *Recording) At() *time.Time

func (*Recording) ID

func (r *Recording) ID() int

func (*Recording) MarshalJSON

func (r *Recording) MarshalJSON() ([]byte, error)

func (*Recording) Path

func (r *Recording) Path() string

func (*Recording) Preacher

func (r *Recording) Preacher() *Preacher

func (*Recording) Title

func (r *Recording) Title() string

type User

type User struct {
	// contains filtered or unexported fields
}

func CreateUser

func CreateUser(username, password string) (*User, error)

func Login

func Login(username, password string) (*User, error)

Jump to

Keyboard shortcuts

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