availability

package
v2.8.8 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostedLoader

type HostedLoader struct {
	Type proto.DataAvailabilityType
	Args LoaderArgs
}

HostedLoader represents a loader for hosted data availability.

func NewHostedLoader

func NewHostedLoader(id string) HostedLoader

NewHostedLoader creates a HostedLoader instance with the provided identifier (ex: c137fded-cb04-4c6e-9415-1e7baf48b659).

func (HostedLoader) ToProto

func (e HostedLoader) ToProto() *proto.Loader

type HostedPublisher

type HostedPublisher struct {
	Type proto.DataAvailabilityType
	Args PublisherArgs
}

HostedPublisher represents a publisher for hosted data availability.

func NewHostedPublisher

func NewHostedPublisher() HostedPublisher

NewHostedPublisher creates a HostedPublisher instance with default publisher arguments.

func (HostedPublisher) ToProto

func (e HostedPublisher) ToProto() *proto.Publisher

type IpfsLoader

type IpfsLoader struct {
	Type proto.DataAvailabilityType
	Args LoaderArgs
}

IpfsLoader represents a loader for IPFS data availability.

func NewIpfsLoader

func NewIpfsLoader(hash string) IpfsLoader

NewIpfsLoader creates an IpfsLoader instance with the provided IPFS hash.

func (IpfsLoader) ToProto

func (e IpfsLoader) ToProto() *proto.Loader

type IpfsPublisher

type IpfsPublisher struct {
	Type proto.DataAvailabilityType
	Args PublisherArgs
}

IpfsPublisher represents a publisher for IPFS data availability.

func NewIpfsPublisher

func NewIpfsPublisher() IpfsPublisher

IpfsPublisher represents a publisher for IPFS data availability.

func (IpfsPublisher) ToProto

func (e IpfsPublisher) ToProto() *proto.Publisher

type Loader

type Loader interface {
	ToProto() *proto.Loader
}

type LoaderArgs

type LoaderArgs struct {
	// Id is a unique identifier associated with the loader.
	Id string
}

LoaderArgs represents the arguments for a data loader.

func (LoaderArgs) ToProto

func (e LoaderArgs) ToProto() *proto.LoaderArgs

type Publisher

type Publisher interface {
	ToProto() *proto.Publisher
}

type PublisherArgs

type PublisherArgs struct {
}

PublisherArgs represents the arguments for a data publisher.

func (PublisherArgs) ToProto

func (e PublisherArgs) ToProto() *proto.PublisherArgs

Jump to

Keyboard shortcuts

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