lbrynet

package
v0.6.0-dev Latest Latest
Warning

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

Go to latest
Published: May 24, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client = ljsonrpc.NewClient(config.Settings.GetString("Lbrynet"))

Client is a LBRY SDK jsonrpc client instance

Functions

func AccountExists

func AccountExists(email string) bool

AccountExists checks if account exists at the local SDK instance. In case of any errors apart from AccountNotFound we like want to break the flow of the caller and return true.

func AccountNameFromEmail

func AccountNameFromEmail(email string) string

AccountNameFromEmail returns email formatted for internal use

func CreateAccount added in v0.6.1

func CreateAccount(email string) (*ljsonrpc.AccountCreateResponse, error)

CreateAccount creates a new account with the SDK

func GetAccount added in v0.6.1

func GetAccount(email string) (*ljsonrpc.Account, error)

GetAccount finds account in account_list by email

func RemoveAccount added in v0.6.1

func RemoveAccount(email string) (*ljsonrpc.AccountRemoveResponse, error)

RemoveAccount removes an account from the SDK by email

Types

type AccountConflict added in v0.6.1

type AccountConflict struct {
	Email string
}

func (AccountConflict) Error added in v0.6.1

func (e AccountConflict) Error() string

type AccountNotFound added in v0.6.1

type AccountNotFound struct {
	Email string
}

func (AccountNotFound) Error added in v0.6.1

func (e AccountNotFound) Error() string

Jump to

Keyboard shortcuts

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