Documentation
¶
Index ¶
- Constants
- Variables
- func Delete(url *url.URL, header http.Header, _ interface{}, ...) (int, http.Header, interface{}, error)
- func Get(url *url.URL, header http.Header, _ interface{}, ...) (int, http.Header, *t.Payment, error)
- func GetComments(url *url.URL, header http.Header, _ interface{}, ...) (int, http.Header, t.Comments, error)
- func GetDocuments(url *url.URL, header http.Header, _ interface{}, ...) (int, http.Header, t.Documents, error)
- func Patch(url *url.URL, header http.Header, payment *t.Payment, ...) (int, http.Header, *t.Payment, error)
- func PostComments(url *url.URL, header http.Header, comment *t.Comment, ...) (int, http.Header, *t.Comment, error)
- func PostDocuments(url *url.URL, header http.Header, requestContext *h.RequestContext) (int, http.Header, interface{}, error)
- func Put(url *url.URL, header http.Header, payment *t.Payment, ...) (int, http.Header, *t.Payment, error)
- type Controller
- func (self *Controller) Delete(url *url.URL) error
- func (self *Controller) Get(url *url.URL) (t.Payment, error)
- func (self *Controller) GetComments(url *url.URL) (t.Comments, error)
- func (self *Controller) GetDocuments(url *url.URL) (t.Documents, error)
- func (self *Controller) Patch(url *url.URL, payment *t.Payment) error
- func (self *Controller) PostComment(comment *t.Comment) error
- func (self *Controller) PostDocuments(url *url.URL) error
- func (self *Controller) Put(url *url.URL, payment *t.Payment) error
- type Notificator
- type Service
- func (self *Service) CreateComment(comment *t.Comment, id t.PaymentId, user *t.User) error
- func (self *Service) CreateDocument(part *multipart.Part, id t.PaymentId, user *t.User) error
- func (self *Service) Delete(id t.PaymentId, user *t.User) error
- func (self *Service) Find(id t.PaymentId, user *t.User) (t.Payment, error)
- func (self *Service) FindAllComments(id t.PaymentId, user *t.User) (t.Comments, error)
- func (self *Service) FindAllDocuments(id t.PaymentId, user *t.User) (t.Documents, error)
- func (self *Service) Patch(payment *t.Payment, fields []string, user *t.User) error
- func (self *Service) Update(payment *t.Payment, user *t.User) error
- type Validator
- func (self *Validator) Create(payment *t.Payment) error
- func (self *Validator) CreateComment(comment *t.Comment) error
- func (self *Validator) CreateDocument(part *multipart.Part) error
- func (self *Validator) Patch(payment *t.Payment, fields []string) error
- func (self *Validator) Update(payment *t.Payment) error
Constants ¶
View Source
const (
LocationPath = "http://api.tripmoneymgmt.com/manager/overviews"
)
Variables ¶
View Source
var (
)Functions ¶
func GetComments ¶
func GetDocuments ¶
func PostComments ¶
func PostDocuments ¶
Types ¶
type Controller ¶
type Controller struct { AppEngineContext appengine.Context RequestContext *h.RequestContext // contains filtered or unexported fields }
func NewController ¶
func NewController(RequestContext *h.RequestContext) *Controller
func (*Controller) GetComments ¶
func (*Controller) GetDocuments ¶
func (*Controller) PostComment ¶
func (self *Controller) PostComment(comment *t.Comment) error
func (*Controller) PostDocuments ¶
func (self *Controller) PostDocuments(url *url.URL) error
type Notificator ¶
type Notificator struct { AppEngineContext appengine.Context RequestContext *h.RequestContext }
func NewNotificator ¶
func NewNotificator(RequestContext *h.RequestContext) *Notificator
func (*Notificator) CreateComment ¶
func (self *Notificator) CreateComment(comment *t.Comment) error
type Service ¶
type Service struct { AppEngineContext appengine.Context RequestContext *h.RequestContext Overviews *o.Overviews Payments *p.Payments Documents *d.Documents Comments *c.Comments // contains filtered or unexported fields }
func NewService ¶
func NewService(RequestContext *h.RequestContext) *Service
func (*Service) CreateComment ¶
func (*Service) CreateDocument ¶
func (*Service) FindAllComments ¶
func (*Service) FindAllDocuments ¶
type Validator ¶
type Validator struct { AppEngineContext appengine.Context RequestContext *h.RequestContext }
func NewValidator ¶
func NewValidator(RequestContext *h.RequestContext) *Validator
func (*Validator) CreateDocument ¶
Click to show internal directories.
Click to hide internal directories.