provider

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MinStatus

func MinStatus() tzpro.BlockId

Types

type GenericProvider

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

func (*GenericProvider) ConnectBlock

func (p *GenericProvider) ConnectBlock(ctx context.Context, block *tzpro.Block) error

func (*GenericProvider) ConnectOp

func (p *GenericProvider) ConnectOp(ctx context.Context, op *tzpro.Op) error

func (*GenericProvider) DisconnectBlock

func (p *GenericProvider) DisconnectBlock(ctx context.Context, block *tzpro.Block) error

func (*GenericProvider) DisconnectOp

func (p *GenericProvider) DisconnectOp(ctx context.Context, op *tzpro.Op) error

func (*GenericProvider) Enabled

func (p *GenericProvider) Enabled() bool

func (*GenericProvider) FillHistory

func (p *GenericProvider) FillHistory(ctx context.Context) error

func (*GenericProvider) Init

func (p *GenericProvider) Init(ctx context.Context, c *tzpro.Client, addr tezos.Address) error

func (*GenericProvider) Name

func (p *GenericProvider) Name() string

func (*GenericProvider) Status

func (p *GenericProvider) Status() tzpro.BlockId

type Provider

type Provider interface {
	Init(ctx context.Context, c *tzpro.Client, addr tezos.Address) error
	Enabled() bool
	Name() string
	Status() tzpro.BlockId
	ConnectBlock(ctx context.Context, block *tzpro.Block) error
	DisconnectBlock(ctx context.Context, block *tzpro.Block) error
	FillHistory(ctx context.Context) error
}

func GetProvider

func GetProvider(name string) (Provider, bool)

func NewGenericProvider

func NewGenericProvider() Provider

func Providers

func Providers() []Provider

Jump to

Keyboard shortcuts

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