n26aas

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: MIT Imports: 3 Imported by: 0

README

n26api as a Service

GitHub Releases Build Status codecov Go Report Card GoDevDoc Donate

n26aas provides n26api services using service locator pattern.

Prerequisites

  • Go >= 1.20

Install

go get github.com/nhatthm/n26aas

Usage

Examples

package mypackage

import (
	"github.com/google/uuid"
	"github.com/nhatthm/n26aas"
	"github.com/nhatthm/n26api"
)

func buildClient() (*n26api.Client, error) {
	deviceID := uuid.New()
	c := n26aas.NewClient(deviceID,
		n26api.WithUsername("john.doe"),
		n26api.WithPassword("123456"),
	)

	return c, nil
}
Providers

See https://github.com/nhatthm/n26aas/blob/master/provider.go

Donation

If this project help you reduce time to develop, you can give me a cup of coffee :)

Paypal donation

paypal

       or scan this

Documentation

Overview

Package n26aas provides n26api as a service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	*n26api.Client
}

Service is a N26 client wrapper.

func New

func New(deviceID uuid.UUID, options ...n26api.Option) *Service

New initiates a new N26 client as a service.

func (*Service) TransactionsFinder

func (s *Service) TransactionsFinder() transaction.Finder

TransactionsFinder provides N26 client as a transaction.Finder.

type TransactionsFinderProvider

type TransactionsFinderProvider interface {
	TransactionsFinder() transaction.Finder
}

TransactionsFinderProvider provides transaction.Finder.

Jump to

Keyboard shortcuts

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