Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents currencies service.
type Store ¶
type Store interface { // SetRate saves conversion rate into the DB. SetRate(base, target accounts.Currency, month string, rate float64) error // GetRate retrieves conversion rate from the DB. GetRate(base, target accounts.Currency, month string) (*Rate, error) }
Store is an interface for currencies DB API.
func NewGormStore ¶
Click to show internal directories.
Click to hide internal directories.