auth

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocationPath = "http://api.tripmoneymgmt.com/manager/clients"
)

Variables

View Source
var (
	ErrAuthOriginServiceRequired error = errors.New("client: Field 'auth_origin_service' is required!")
	ErrAuthOriginServiceNotValid error = errors.New("client: Field 'auth_origin_service' is not valid!")
)

Functions

func Delete

func Delete(url *url.URL, header http.Header, _ interface{}, requestContext *h.RequestContext) (int, http.Header, interface{}, error)

func Post

func Post(url *url.URL, header http.Header, client *t.Client, requestContext *h.RequestContext) (int, http.Header, *t.Client, error)

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) Delete

func (self *Controller) Delete(url *url.URL) error

func (*Controller) Post

func (self *Controller) Post(client *t.Client) (t.Client, error)

type Notificator

type Notificator struct {
	AppEngineContext appengine.Context
	RequestContext   *h.RequestContext
}

func NewNotificator

func NewNotificator(RequestContext *h.RequestContext) *Notificator

func (*Notificator) Create

func (self *Notificator) Create(client *t.Client) error

type Service

type Service struct {
	AppEngineContext appengine.Context
	RequestContext   *h.RequestContext

	Proof *p.Proof
	// contains filtered or unexported fields
}

func NewService

func NewService(RequestContext *h.RequestContext) *Service

func (*Service) Create

func (self *Service) Create(client *t.Client, user *t.User) (t.Client, error)

func (*Service) Delete

func (self *Service) Delete(id t.ClientId, user *t.User) error

type Validator

type Validator struct {
	AppEngineContext appengine.Context
	RequestContext   *h.RequestContext
}

func NewValidator

func NewValidator(RequestContext *h.RequestContext) *Validator

func (*Validator) Create

func (self *Validator) Create(client *t.Client) error

Jump to

Keyboard shortcuts

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