application

package
v0.0.0-...-fa5135e Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AccountService

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

AccountService encapsulates the various operations our application offers for user accounts.

func NewAccountService

func NewAccountService(
	parameters AccountServiceParameters) AccountService

func (*AccountService) Create

func (a *AccountService) Create(ctx context.Context, account domain.Account) error

Create creates a new account.

func (*AccountService) Delete

func (a *AccountService) Delete(ctx context.Context, account domain.Account) error

Delete deletes an existing account.

func (*AccountService) Get

func (a *AccountService) Get(uuid u.UUID) (domain.Account, error)

Get retrieves an existing account.

func (*AccountService) Put

func (a *AccountService) Put(ctx context.Context, account domain.Account) error

Put upserts an account.

type AccountServiceParameters

type AccountServiceParameters struct {
	fx.In

	Uniter  unit.Uniter `name:"uniter"`
	Queryer infrastructure.Queryer
}

Jump to

Keyboard shortcuts

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