api

package
v0.1.1-0...-99c9eb7 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2017 License: BSD-3-Clause Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidAccountAuth = errors.New("invalid account authentication")

ErrInvalidAccountAuth is returned by (a *API).accountID(…) when the http.Request does not cary valid sessiontoken.

Functions

This section is empty.

Types

type API

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

API service for cpserver

func New

func New(log *logrus.Entry, db *sqlx.DB, postcodeAPI postcodenl.API, molliePaymentService *mollieServices.PaymentService, selfHTTPAddress string) *API

New creates a new instance of the API service

func (*API) AttachChiRouter

func (a *API) AttachChiRouter(r chi.Router)

AttachChiRouter attaches API routes to the provided chi router.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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