service

package
v0.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service provides monero churning service that takes care of automatically scanning the wallet determining which addresses need to be churned, and scheduling the sending of those addresses

func New

func New(ctx context.Context, cfg *config.Config) (*Service, error)

New returns a new Service starting all needed internal subprocesses

func (*Service) Close

func (s *Service) Close() error

Close is used to close the churning service

func (*Service) Context

func (s *Service) Context() context.Context

Context returns the underlying context

func (*Service) DB

func (s *Service) DB() *db.Client

DB returns the underlying database client

func (*Service) MC

func (s *Service) MC() *client.Client

MC returns the underlying monero-wallet-rpc client

func (*Service) Start

func (s *Service) Start()

Start is used to start the churning service

Jump to

Keyboard shortcuts

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