Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 |
Click to show internal directories.
Click to hide internal directories.