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 ¶
AttachChiRouter attaches API routes to the provided chi router.
Click to show internal directories.
Click to hide internal directories.