cola

package
v0.0.0-...-401f45e Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(repo ClientRepo) lms.Lms

New returns a new instance of Lms

Types

type ClientRepo

type ClientRepo interface {
	ByPersonalNumber(personalNumber string) (client domain.Client, found bool, err error)
	Save(client domain.Client) error
}

ClientRepo is used internally by lms package for loading/storing client information. This makes lms package independent of database technology.

func NewFakeClientRepo

func NewFakeClientRepo() ClientRepo

NewFakeClientRepo returns ClientRepo fake implementation storing everything in memory which is useful for testing lms.Lms without real database

Directories

Path Synopsis
Package domain provides core business logic which is independent of any other systems and repositories
Package domain provides core business logic which is independent of any other systems and repositories
infra
repo
Package repo provides lms.ClientRepo implementation which stores everything in memory
Package repo provides lms.ClientRepo implementation which stores everything in memory

Jump to

Keyboard shortcuts

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