lbrynet

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Client is a LBRY SDK jsonrpc client instance

View Source
var ExampleStreamCreateRequest = `` /* 482-byte string literal not displayed */
View Source
var ExampleStreamCreateResponse = `` /* 4723-byte string literal not displayed */

Functions

func CreateAccount

func CreateAccount(UID int) (*ljsonrpc.AccountCreateResponse, error)

CreateAccount creates a new account with the SDK. Will return an error if account with this UID already exists.

func GetAccount

func GetAccount(UID int) (*ljsonrpc.Account, error)

GetAccount finds account in account_list by UID

func MakeAccountName

func MakeAccountName(UID int) string

MakeAccountName formats the UID for use with SDK. UID can be an email or an empty string, in which case a random identifier will be generated.

func RemoveAccount

func RemoveAccount(UID int) (*ljsonrpc.AccountRemoveResponse, error)

RemoveAccount removes an account from the SDK by uid

func Resolve

func Resolve(url string) (*ljsonrpc.Claim, error)

Resolve calls resolve method on the daemon and handles *frequent* SDK response format changes with grace instead of panicking.

Types

type AccountConflict

type AccountConflict struct {
	UID int
}

func (AccountConflict) Error

func (e AccountConflict) Error() string

type AccountNotFound

type AccountNotFound struct {
	UID int
}

func (AccountNotFound) Error

func (e AccountNotFound) Error() string

Jump to

Keyboard shortcuts

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