availability
import "github.com/bloock/bloock-sdk-go/v2/entity/availability"
Index
- type HostedLoader
- type HostedPublisher
- type IpfsLoader
- type IpfsPublisher
- type Loader
- type LoaderArgs
- type Publisher
- type PublisherArgs
HostedLoader
type HostedLoader
HostedLoader represents a loader for hosted data availability.
type HostedLoader struct {
Type proto.DataAvailabilityType
Args LoaderArgs
}
NewHostedLoader
func NewHostedLoader
func NewHostedLoader(id string) HostedLoader
NewHostedLoader creates a HostedLoader instance with the provided identifier (ex: c137fded-cb04-4c6e-9415-1e7baf48b659).
HostedLoader.ToProto
func (HostedLoader) ToProto
func (e HostedLoader) ToProto() *proto.Loader
HostedPublisher
type HostedPublisher
HostedPublisher represents a publisher for hosted data availability.
type HostedPublisher struct {
Type proto.DataAvailabilityType
Args PublisherArgs
}
NewHostedPublisher
func NewHostedPublisher
func NewHostedPublisher() HostedPublisher
NewHostedPublisher creates a HostedPublisher instance with default publisher arguments.
HostedPublisher.ToProto
func (HostedPublisher) ToProto
func (e HostedPublisher) ToProto() *proto.Publisher
IpfsLoader
type IpfsLoader
IpfsLoader represents a loader for IPFS data availability.
type IpfsLoader struct {
Type proto.DataAvailabilityType
Args LoaderArgs
}
NewIpfsLoader
func NewIpfsLoader
func NewIpfsLoader(hash string) IpfsLoader
NewIpfsLoader creates an IpfsLoader instance with the provided IPFS hash.
IpfsLoader.ToProto
func (IpfsLoader) ToProto
func (e IpfsLoader) ToProto() *proto.Loader
IpfsPublisher
type IpfsPublisher
IpfsPublisher represents a publisher for IPFS data availability.
type IpfsPublisher struct {
Type proto.DataAvailabilityType
Args PublisherArgs
}
NewIpfsPublisher
func NewIpfsPublisher
func NewIpfsPublisher() IpfsPublisher
IpfsPublisher represents a publisher for IPFS data availability.
IpfsPublisher.ToProto
func (IpfsPublisher) ToProto
func (e IpfsPublisher) ToProto() *proto.Publisher
Loader
type Loader
type Loader interface {
ToProto() *proto.Loader
}
LoaderArgs
type LoaderArgs
LoaderArgs represents the arguments for a data loader.
type LoaderArgs struct {
// Id is a unique identifier associated with the loader.
Id string
}
LoaderArgs.ToProto
func (LoaderArgs) ToProto
func (e LoaderArgs) ToProto() *proto.LoaderArgs
Publisher
type Publisher
type Publisher interface {
ToProto() *proto.Publisher
}
PublisherArgs
type PublisherArgs
PublisherArgs represents the arguments for a data publisher.
type PublisherArgs struct {
}
PublisherArgs.ToProto
func (PublisherArgs) ToProto
func (e PublisherArgs) ToProto() *proto.PublisherArgs
Generated by gomarkdoc