Documentation ¶
Index ¶
- type DRMService
- func (s *DRMService) Address() common.Address
- func (s *DRMService) CallContractCloseChannel(ctx context.Context, hash []byte, channel common.Address) (*types.Receipt, error)
- func (s *DRMService) CallContractSetCreatorClicks(ctx context.Context, clicks []smartdrm.CreatorClicks) (*types.Receipt, error)
- func (s *DRMService) CallContractSetProof(ctx context.Context, proofs []smartdrm.ChannelProof) (*types.Receipt, error)
- func (s *DRMService) CallContractSplitBalance(ctx context.Context) (*types.Receipt, error)
- func (s *DRMService) DeployInstance(ctx context.Context) error
- func (s *DRMService) GetChannelFinishTimestamp(addr common.Address) (*time.Time, error)
- func (s *DRMService) SetClicks(ctx context.Context, clicks map[string]uint32) error
- func (s *DRMService) SetInstance(addr common.Address) error
- func (s *DRMService) SetProofs(ctx context.Context, proofs []proofsEntity.Proof) error
- func (s *DRMService) UserAddrToChannelAddr(userAddr string) (string, error)
- func (s *DRMService) ValidateProof(ctx context.Context, p proofsEntity.Proof) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DRMService ¶
type DRMService struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(url string, privateKey string) (*DRMService, error)
func (*DRMService) Address ¶
func (s *DRMService) Address() common.Address
func (*DRMService) CallContractCloseChannel ¶
func (*DRMService) CallContractSetCreatorClicks ¶
func (s *DRMService) CallContractSetCreatorClicks( ctx context.Context, clicks []smartdrm.CreatorClicks, ) (*types.Receipt, error)
func (*DRMService) CallContractSetProof ¶
func (s *DRMService) CallContractSetProof( ctx context.Context, proofs []smartdrm.ChannelProof, ) (*types.Receipt, error)
func (*DRMService) CallContractSplitBalance ¶
func (*DRMService) DeployInstance ¶
func (s *DRMService) DeployInstance(ctx context.Context) error
func (*DRMService) GetChannelFinishTimestamp ¶
func (*DRMService) SetInstance ¶
func (s *DRMService) SetInstance(addr common.Address) error
func (*DRMService) SetProofs ¶
func (s *DRMService) SetProofs(ctx context.Context, proofs []proofsEntity.Proof) error
func (*DRMService) UserAddrToChannelAddr ¶
func (s *DRMService) UserAddrToChannelAddr(userAddr string) (string, error)
func (*DRMService) ValidateProof ¶
func (s *DRMService) ValidateProof(ctx context.Context, p proofsEntity.Proof) (string, error)
Click to show internal directories.
Click to hide internal directories.