Back to godoc.org

Package service

v0.0.1-rc1
Latest Go to latest

The latest major version is .

Published: Sep 8, 2020 | License: Apache-2.0 | Module: github.com/bonedaddy/mychurnero

Index

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier