documents

package
v0.0.0-...-6740b9f Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2014 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Documents

type Documents struct {
	AppEngineContext appengine.Context
	Storage          *Storage
}

func NewDocuments

func NewDocuments(appEngineContext appengine.Context) *Documents

func (*Documents) Create

func (self *Documents) Create(document *t.Document) error

func (*Documents) CreateFile

func (self *Documents) CreateFile(part *multipart.Part) (string, error)

func (*Documents) Delete

func (self *Documents) Delete(id t.DocumentId) error

func (*Documents) Find

func (self *Documents) Find(id t.DocumentId) (t.Document, error)

func (*Documents) FindAll

func (self *Documents) FindAll(status t.DocumentStatus) (t.Documents, error)

func (*Documents) FindAllActive

func (self *Documents) FindAllActive() (t.Documents, error)

func (*Documents) FindAllByPaymentId

func (self *Documents) FindAllByPaymentId(paymentId t.PaymentId) (t.Documents, error)

func (*Documents) FindMulti

func (self *Documents) FindMulti(ids t.DocumentIds) (t.Documents, error)

func (*Documents) Update

func (self *Documents) Update(document t.Document) (t.Document, error)

type Storage

type Storage struct {
	AppEngineContext appengine.Context
	// contains filtered or unexported fields
}

func NewStorage

func NewStorage(appEngineContext appengine.Context) *Storage

func (*Storage) Delete

func (self *Storage) Delete(id t.DocumentId) error

func (*Storage) Find

func (self *Storage) Find(id t.DocumentId) (t.Document, error)

func (*Storage) FindAllActive

func (self *Storage) FindAllActive() (t.Documents, error)

func (*Storage) FindAllByPaymentId

func (self *Storage) FindAllByPaymentId(paymentId t.PaymentId) (t.Documents, error)

func (*Storage) FindAllByStatus

func (self *Storage) FindAllByStatus(status t.DocumentStatus) (t.Documents, error)

func (*Storage) FindMulti

func (self *Storage) FindMulti(ids t.DocumentIds) (t.Documents, error)

func (*Storage) Save

func (self *Storage) Save(document *t.Document) error

func (*Storage) SaveFile

func (self *Storage) SaveFile(part *multipart.Part) (string, error)

func (*Storage) Update

func (self *Storage) Update(document t.Document) (t.Document, error)

Jump to

Keyboard shortcuts

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