services

package
v3.0.0-alpha5.0...-c974331 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Faucet

func Faucet(ctx context.Context) *accounts.Faucet

func Heimdall

func Heimdall(ctx context.Context) *polygon.Heimdall

func InitSubscriptions

func InitSubscriptions(ctx context.Context, methods []requests.SubMethod)

func ProofGenerator

func ProofGenerator(ctx context.Context) *polygon.ProofGenerator

func UnsubscribeAll

func UnsubscribeAll()

UnsubscribeAll closes all the client subscriptions and empties their global subscription channel

Types

type Subscription

type Subscription struct {
	Client    *rpc.Client
	ClientSub *rpc.ClientSubscription
	Name      requests.SubMethod
	SubChan   chan interface{}
}

Subscription houses the client subscription, name and channel for its delivery

func GetSubscription

func GetSubscription(chainName string, method requests.SubMethod) *Subscription

func NewSubscription

func NewSubscription(name requests.SubMethod) *Subscription

NewSubscription returns a new Subscription instance

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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