Documentation ¶
Index ¶
- func MinStatus() tzpro.BlockId
- type GenericProvider
- func (p *GenericProvider) ConnectBlock(ctx context.Context, block *tzpro.Block) error
- func (p *GenericProvider) ConnectOp(ctx context.Context, op *tzpro.Op) error
- func (p *GenericProvider) DisconnectBlock(ctx context.Context, block *tzpro.Block) error
- func (p *GenericProvider) DisconnectOp(ctx context.Context, op *tzpro.Op) error
- func (p *GenericProvider) Enabled() bool
- func (p *GenericProvider) FillHistory(ctx context.Context) error
- func (p *GenericProvider) Init(ctx context.Context, c *tzpro.Client, addr tezos.Address) error
- func (p *GenericProvider) Name() string
- func (p *GenericProvider) Status() tzpro.BlockId
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GenericProvider ¶
type GenericProvider struct {
// contains filtered or unexported fields
}
func (*GenericProvider) ConnectBlock ¶
func (*GenericProvider) DisconnectBlock ¶
func (*GenericProvider) DisconnectOp ¶
func (*GenericProvider) Enabled ¶
func (p *GenericProvider) Enabled() bool
func (*GenericProvider) FillHistory ¶
func (p *GenericProvider) FillHistory(ctx context.Context) 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 NewGenericProvider ¶
func NewGenericProvider() Provider
Click to show internal directories.
Click to hide internal directories.