repoimpl

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMemorySumHistory

func NewMemorySumHistory(v []*model.SumHistory) repository.SumHistory

NewMemorySumHistory create new MemorySumHistory repository

Types

type MemorySumHistory

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

MemorySumHistory represents on memory repository of sum history

func (*MemorySumHistory) Add

func (m *MemorySumHistory) Add(sumHistory *model.SumHistory)

Add add new sum history to repository

func (*MemorySumHistory) List

func (m *MemorySumHistory) List(limit int) []*model.SumHistory

List return list of sum history

Jump to

Keyboard shortcuts

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