Documentation ¶
Index ¶
- type Client
- func (c *Client) AddPodToMarketplace(podAddress, owner common.Address, pod, title, desc, thumbnail string, ...) error
- func (c *Client) AllowAccess(owner common.Address, shareInfo *ShareInfo, requestHash, secret [32]byte, ...) error
- func (c *Client) GetAllSubscribablePods() ([]datahub.DataHubSub, error)
- func (c *Client) GetOwnSubscribablePods(owner common.Address) ([]datahub.DataHubSub, error)
- func (c *Client) GetSub(subHash [32]byte) (*datahub.DataHubSub, error)
- func (c *Client) GetSubRequests(owner common.Address) ([]datahub.DataHubSubRequest, error)
- func (c *Client) GetSubscribablePodInfo(subHash [32]byte) (*SubscriptionItemInfo, error)
- func (c *Client) GetSubscription(infoLocation []byte, secret [32]byte) (*ShareInfo, error)
- func (c *Client) GetSubscriptions(nameHash [32]byte) ([]datahub.DataHubSubItem, error)
- func (c *Client) HidePodFromMarketplace(owner common.Address, subHash [32]byte, hide bool, key *ecdsa.PrivateKey) error
- func (c *Client) RequestAccess(subscriber common.Address, subHash, nameHash [32]byte, key *ecdsa.PrivateKey) error
- type ShareInfo
- type SubscriptionInfoGetter
- type SubscriptionInfoPutter
- type SubscriptionItemInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(subConfig *contracts.SubscriptionConfig, logger logging.Logger, getter SubscriptionInfoGetter, putter SubscriptionInfoPutter) (*Client, error)
func (*Client) AddPodToMarketplace ¶
func (*Client) AllowAccess ¶
func (*Client) GetAllSubscribablePods ¶
func (c *Client) GetAllSubscribablePods() ([]datahub.DataHubSub, error)
func (*Client) GetOwnSubscribablePods ¶
func (*Client) GetSubRequests ¶
func (*Client) GetSubscribablePodInfo ¶
func (c *Client) GetSubscribablePodInfo(subHash [32]byte) (*SubscriptionItemInfo, error)
func (*Client) GetSubscription ¶
func (*Client) GetSubscriptions ¶
func (c *Client) GetSubscriptions(nameHash [32]byte) ([]datahub.DataHubSubItem, error)
func (*Client) HidePodFromMarketplace ¶
func (*Client) RequestAccess ¶
type SubscriptionInfoGetter ¶
type SubscriptionInfoPutter ¶
type SubscriptionItemInfo ¶
type SubscriptionItemInfo struct { Category string `json:"category"` Description string `json:"description"` FdpSellerNameHash string `json:"sellerNameHash"` ImageURL string `json:"imageUrl"` PodAddress string `json:"podAddress"` PodName string `json:"podName"` Price string `json:"price"` Title string `json:"title"` }
Click to show internal directories.
Click to hide internal directories.