request

package
v0.38.0-preview.0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SubscribeEvents

type SubscribeEvents struct {
	StartBlockID flow.Identifier
	StartHeight  uint64

	EventTypes []string
	Addresses  []string
	Contracts  []string

	HeartbeatInterval uint64
}

func SubscribeEventsRequest

func SubscribeEventsRequest(r *common.Request) (SubscribeEvents, error)

SubscribeEventsRequest extracts necessary variables from the provided request, builds a SubscribeEvents instance, and validates it.

No errors are expected during normal operation.

func (*SubscribeEvents) Build

func (g *SubscribeEvents) Build(r *common.Request) error

func (*SubscribeEvents) Parse

func (g *SubscribeEvents) Parse(
	rawStartBlockID string,
	rawStartHeight string,
	rawTypes []string,
	rawAddresses []string,
	rawContracts []string,
	rawHeartbeatInterval string,
) error

Jump to

Keyboard shortcuts

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