Documentation ¶
Index ¶
- Variables
- func CreateAccount(UID int) (*ljsonrpc.AccountCreateResponse, error)
- func GetAccount(UID int) (*ljsonrpc.Account, error)
- func MakeAccountName(UID int) string
- func RemoveAccount(UID int) (*ljsonrpc.AccountRemoveResponse, error)
- func Resolve(url string) (*ljsonrpc.Claim, error)
- type AccountConflict
- type AccountNotFound
Constants ¶
This section is empty.
Variables ¶
View Source
var Client = ljsonrpc.NewClient(config.GetLbrynet())
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 ¶
GetAccount finds account in account_list by UID
func MakeAccountName ¶
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
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
Click to show internal directories.
Click to hide internal directories.