subscriptionManager

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SubscriptionManager

type SubscriptionManager interface {
	AddPodToMarketplace(podAddress, owner common.Address, pod, title, desc, thumbnail string, price uint64, daysValid uint16, category, nameHash [32]byte, key *ecdsa.PrivateKey) error
	HidePodFromMarketplace(owner common.Address, subHash [32]byte, hide bool, key *ecdsa.PrivateKey) error
	RequestAccess(subscriber common.Address, subHash, nameHash [32]byte, key *ecdsa.PrivateKey) error
	AllowAccess(owner common.Address, si *rpc.ShareInfo, requestHash, secret [32]byte, key *ecdsa.PrivateKey) error
	GetSubscription(infoLocation []byte, secret [32]byte) (*rpc.ShareInfo, error)
	GetSubscriptions(nameHash [32]byte) ([]datahub.DataHubSubItem, error)
	GetAllSubscribablePods() ([]datahub.DataHubSub, error)
	GetOwnSubscribablePods(owner common.Address) ([]datahub.DataHubSub, error)
	GetSubscribablePodInfo(subHash [32]byte) (*rpc.SubscriptionItemInfo, error)
	GetSubRequests(owner common.Address) ([]datahub.DataHubSubRequest, error)
	GetSub(subHash [32]byte) (*datahub.DataHubSub, error)
}

Directories

Path Synopsis
rpc

Jump to

Keyboard shortcuts

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