Documentation ¶
Index ¶
- type SubscriptionManager
- func (s *SubscriptionManager) AddPodToMarketplace(podAddress, owner common.Address, pod, title, desc, thumbnail string, ...) error
- func (s *SubscriptionManager) AllowAccess(owner common.Address, si *rpc.ShareInfo, requestHash, secret [32]byte, ...) error
- func (s *SubscriptionManager) GetAllSubscribablePods() ([]datahub.DataHubSub, error)
- func (s *SubscriptionManager) GetOwnSubscribablePods(owner common.Address) ([]datahub.DataHubSub, error)
- func (s *SubscriptionManager) GetSub(subHash [32]byte) (*datahub.DataHubSub, error)
- func (s *SubscriptionManager) GetSubRequests(owner common.Address) ([]datahub.DataHubSubRequest, error)
- func (s *SubscriptionManager) GetSubscribablePodInfo(subHash [32]byte) (*rpc.SubscriptionItemInfo, error)
- func (s *SubscriptionManager) GetSubscription(infoLocation []byte, secret [32]byte) (*rpc.ShareInfo, error)
- func (s *SubscriptionManager) GetSubscriptions(nameHash [32]byte) ([]datahub.DataHubSubItem, error)
- func (s *SubscriptionManager) HidePodFromMarketplace(owner common.Address, subHash [32]byte, hide bool, key *ecdsa.PrivateKey) error
- func (s *SubscriptionManager) RequestAccess(subscriber common.Address, subHash, nameHash [32]byte, key *ecdsa.PrivateKey) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SubscriptionManager ¶
type SubscriptionManager struct {
// contains filtered or unexported fields
}
func NewMockSubscriptionManager ¶
func NewMockSubscriptionManager() *SubscriptionManager
NewMockSubscriptionManager returns a new mock subscriptionManager manager client
func (*SubscriptionManager) AddPodToMarketplace ¶
func (s *SubscriptionManager) AddPodToMarketplace(podAddress, owner common.Address, pod, title, desc, thumbnail string, price uint64, daysValid uint16, category, nameHash [32]byte, key *ecdsa.PrivateKey) error
func (*SubscriptionManager) AllowAccess ¶
func (s *SubscriptionManager) AllowAccess(owner common.Address, si *rpc.ShareInfo, requestHash, secret [32]byte, key *ecdsa.PrivateKey) error
func (*SubscriptionManager) GetAllSubscribablePods ¶
func (s *SubscriptionManager) GetAllSubscribablePods() ([]datahub.DataHubSub, error)
func (*SubscriptionManager) GetOwnSubscribablePods ¶
func (s *SubscriptionManager) GetOwnSubscribablePods(owner common.Address) ([]datahub.DataHubSub, error)
func (*SubscriptionManager) GetSub ¶
func (s *SubscriptionManager) GetSub(subHash [32]byte) (*datahub.DataHubSub, error)
func (*SubscriptionManager) GetSubRequests ¶
func (s *SubscriptionManager) GetSubRequests(owner common.Address) ([]datahub.DataHubSubRequest, error)
func (*SubscriptionManager) GetSubscribablePodInfo ¶
func (s *SubscriptionManager) GetSubscribablePodInfo(subHash [32]byte) (*rpc.SubscriptionItemInfo, error)
func (*SubscriptionManager) GetSubscription ¶
func (*SubscriptionManager) GetSubscriptions ¶
func (s *SubscriptionManager) GetSubscriptions(nameHash [32]byte) ([]datahub.DataHubSubItem, error)
func (*SubscriptionManager) HidePodFromMarketplace ¶
func (s *SubscriptionManager) HidePodFromMarketplace(owner common.Address, subHash [32]byte, hide bool, key *ecdsa.PrivateKey) error
func (*SubscriptionManager) RequestAccess ¶
func (s *SubscriptionManager) RequestAccess(subscriber common.Address, subHash, nameHash [32]byte, key *ecdsa.PrivateKey) error
Click to show internal directories.
Click to hide internal directories.