controller

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	ProcessWalletCommand(command query.WalletCommanderCommand)
	UpdateClientConnected(clientId string, conncted bool)
}

func New

func New(vault vault.Vault, store store.Store, client client.Client, eaClient *earnalliance.EarnAllianceClient) (Controller, error)

func NewDevController

func NewDevController(store store.Store, mode types.DevMockMode) Controller

type DevController

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

func (*DevController) ProcessWalletCommand

func (d *DevController) ProcessWalletCommand(command query.WalletCommanderCommand)

func (*DevController) UpdateClientConnected added in v0.1.5

func (d *DevController) UpdateClientConnected(clientId string, connected bool)

type WalletCommanderController

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

func (*WalletCommanderController) ProcessWalletCommand

func (w *WalletCommanderController) ProcessWalletCommand(command query.WalletCommanderCommand)

func (*WalletCommanderController) UpdateClientConnected added in v0.1.5

func (w *WalletCommanderController) UpdateClientConnected(clientId string, connected bool)

Jump to

Keyboard shortcuts

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