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 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 PublisherArgs ¶
type PublisherArgs struct { }
PublisherArgs represents the arguments for a data publisher.
func (PublisherArgs) ToProto ¶
func (e PublisherArgs) ToProto() *proto.PublisherArgs