services

package
v0.0.0-...-b1c7972 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UsersService

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

func NewUsersService

func NewUsersService(db db.SpenderDB, graphite *metrics.GraphiteClient) *UsersService

func (*UsersService) AddUser

func (us *UsersService) AddUser(user *models.User) error

func (*UsersService) DeleteSpending

func (us *UsersService) DeleteSpending(username, spendID string) error

func (*UsersService) GetAllDefaultSpendKinds

func (us *UsersService) GetAllDefaultSpendKinds() ([]models.SpendKind, error)

func (*UsersService) GetAllUsers

func (us *UsersService) GetAllUsers() (models.Users, error)

func (*UsersService) GetSpendKind

func (us *UsersService) GetSpendKind(username string, spendingKindID int) (*models.SpendKind, error)

func (*UsersService) GetUser

func (us *UsersService) GetUser(username string) (*models.User, error)

func (*UsersService) StoreSpending

func (us *UsersService) StoreSpending(user *models.User, spending models.Spending) error

func (*UsersService) UserExists

func (us *UsersService) UserExists(username string) bool

Jump to

Keyboard shortcuts

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