balance

package
v0.0.0-...-f3a18e2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(api *operations.LedgerAPI, service Service)

Configure setups handlers on api with Service

func DoesEntityExist

func DoesEntityExist(repo *repository, id string) (bool, string)

DoesEntityExist checks if a given entity exists in the entities table

Types

type Repository

type Repository interface {
	GetEntityBalance(ctx context.Context, params *balance.GetBalanceParams) (*models.Balance, error)
}

Repository interface for repo calls

func NewRepository

func NewRepository(db *sqlx.DB) Repository

NewRepository ...

type Service

type Service interface {
	GetEntityBalance(ctx context.Context, params *balance.GetBalanceParams) (*models.Balance, error)
}

Service ...

func NewService

func NewService(repo Repository) Service

NewService create a service instance

Jump to

Keyboard shortcuts

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