topup

package
v0.0.0-...-7a6fcb1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	AddTopUp(context.Context, domain.TopUp) (domain.TopUp, error)

	TxnExec(context.Context, func(context.Context) (interface{}, error)) (interface{}, error)
}

type Service

type Service interface {
	AddTopUp(context.Context, uint64, api.AddTopUpRequest) (domain.TopUp, error)
}

func NewService

func NewService(repo Repository, uidGenerator uid.Generator) Service

Jump to

Keyboard shortcuts

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