sub

package
v0.7.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainEvent

type ChainEvent struct {
	Block           uint64 `json:"block"`
	From            string `json:"from"`
	To              string `json:"to"`
	ContractAddress string `json:"contractAddress"`
	Success         bool   `json:"success"`
	TxHash          string `json:"transactionHash"`
	TxIndex         uint   `json:"transactionIndex"`
	Value           uint64 `json:"value"`
}

type Sub

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

func NewSub

func NewSub(o SubOpts) (*Sub, error)

func (*Sub) Close

func (s *Sub) Close()

func (*Sub) Process

func (s *Sub) Process() error

type SubOpts

type SubOpts struct {
	CustodialContainer *custodial.Custodial
	JsCtx              nats.JetStreamContext
	Logg               logf.Logger
	NatsConn           *nats.Conn
}

Jump to

Keyboard shortcuts

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