maint

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckFollows

type CheckFollows struct {
	Delete     bool
	Processed  int
	BadFollows int
}

func NewCheckFollows

func NewCheckFollows(delete bool) *CheckFollows

func (*CheckFollows) Check

func (c *CheckFollows) Check() error

type PopulateAddr

type PopulateAddr struct {
	Checked int64
	Saved   int64
	Inputs  bool
	// contains filtered or unexported fields
}

func NewPopulateAddr

func NewPopulateAddr(inputs bool) *PopulateAddr

func (*PopulateAddr) GetHasError

func (p *PopulateAddr) GetHasError() bool

func (*PopulateAddr) GetShardStatus

func (p *PopulateAddr) GetShardStatus(shard uint32) *item.ProcessStatus

func (*PopulateAddr) GetStatusName

func (p *PopulateAddr) GetStatusName() string

func (*PopulateAddr) Populate

func (p *PopulateAddr) Populate(newRun bool) error

func (*PopulateAddr) SetHasError

func (p *PopulateAddr) SetHasError(hasError bool)

func (*PopulateAddr) SetShardStatus

func (p *PopulateAddr) SetShardStatus(shard uint32, status []byte)

type PopulateP2sh

type PopulateP2sh struct {
	BlocksProcessed int
	Ctx             context.Context
}

func NewPopulateP2sh

func NewPopulateP2sh(ctx context.Context) *PopulateP2sh

func (*PopulateP2sh) Populate

func (p *PopulateP2sh) Populate(startHeight int64) error

type PopulateP2shDirect

type PopulateP2shDirect struct {
	Checked int64
	Saved   int64
	Ctx     context.Context
	// contains filtered or unexported fields
}

func NewPopulateP2shDirect

func NewPopulateP2shDirect(ctx context.Context) *PopulateP2shDirect

func (*PopulateP2shDirect) GetHasError

func (p *PopulateP2shDirect) GetHasError() bool

func (*PopulateP2shDirect) GetShardStatus

func (p *PopulateP2shDirect) GetShardStatus(shard uint32) *item.ProcessStatus

func (*PopulateP2shDirect) Populate

func (p *PopulateP2shDirect) Populate(newRun bool) error

func (*PopulateP2shDirect) SetHasError

func (p *PopulateP2shDirect) SetHasError(hasError bool)

func (*PopulateP2shDirect) SetShardStatus

func (p *PopulateP2shDirect) SetShardStatus(shard uint32, status []byte)

type PopulateSeenPost

type PopulateSeenPost struct {
	Posts int
	Ctx   context.Context
}

func NewPopulateSeenPost

func NewPopulateSeenPost(ctx context.Context) *PopulateSeenPost

func (*PopulateSeenPost) Populate

func (p *PopulateSeenPost) Populate() error

type ShardProcess

type ShardProcess struct {
	Errors []error
	Mutex  sync.Mutex
	Wg     sync.WaitGroup
}

func (*ShardProcess) AddError

func (p *ShardProcess) AddError(shard uint32, err error)

Jump to

Keyboard shortcuts

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