Documentation
¶
Index ¶
- Variables
- func AccountExists(email string) bool
- func AccountNameFromEmail(email string) string
- func CreateAccount(email string) (*ljsonrpc.AccountCreateResponse, error)
- func GetAccount(email string) (*ljsonrpc.Account, error)
- func RemoveAccount(email string) (*ljsonrpc.AccountRemoveResponse, error)
- type AccountConflict
- type AccountNotFound
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 ¶
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 ¶
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
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
Click to show internal directories.
Click to hide internal directories.