entries

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name    string    `db:"name"`
	Message string    `db:"message"`
	Date    time.Time `db:"date"`
}

func New

func New(name, message string) Entry

type Mocker

type Mocker struct{}

func (Mocker) GetAll

func (m Mocker) GetAll() ([]Entry, error)

func (Mocker) Write

func (m Mocker) Write(e Entry) error

type Retriever

type Retriever interface {
	GetAll() ([]Entry, error)
	Write(Entry) error
}

Jump to

Keyboard shortcuts

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