Documentation ¶
Index ¶
- func WalletNameLookup(uri, currency string) (string, error)
- type Domain
- type EcdsaSig
- type NetkiError
- type NetkiPartner
- func (n NetkiPartner) CreateNewDomain(domainName string, partner Partner) (Domain, error)
- func (n NetkiPartner) CreateNewPartner(partnerName string) (Partner, error)
- func (n NetkiPartner) CreateNewWalletName(domain Domain, name string, wallets []Wallet, externalId string) WalletName
- func (n NetkiPartner) DeleteDomain(domain Domain) error
- func (n NetkiPartner) DeletePartner(partner Partner) error
- func (n NetkiPartner) GetDomainDnssec(domain Domain) (returnDomain Domain, err error)
- func (n NetkiPartner) GetDomainStatus(domain Domain) (returnDomain Domain, err error)
- func (n NetkiPartner) GetDomains() ([]Domain, error)
- func (n NetkiPartner) GetKeySigningKey() string
- func (n NetkiPartner) GetPartners() ([]Partner, error)
- func (n NetkiPartner) GetUserPublicKey() string
- func (n NetkiPartner) GetWalletNames(domain Domain, externalId string) ([]WalletName, error)
- func (n NetkiPartner) SetKeySignature(sig []byte)
- func (n NetkiPartner) SetKeySigningKey(signingKey *ecdsa.PublicKey)
- func (n NetkiPartner) SetUserKey(userKey *ecdsa.PrivateKey)
- type NetkiRequest
- type NetkiRequester
- type Partner
- type Wallet
- type WalletName
- func (w WalletName) Delete(partner *NetkiPartner) error
- func (w WalletName) GetAddress(currency string) string
- func (w *WalletName) RemoveCurrency(currency string)
- func (w *WalletName) Save(partner *NetkiPartner) error
- func (w *WalletName) SetCurrencyAddress(currency string, address string)
- func (w WalletName) UsedCurrencies() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WalletNameLookup ¶
WalletNameLookup resolves an address from a netki address and currency.
Types ¶
type NetkiError ¶
Define our Error Type
func (NetkiError) Error ¶
func (e NetkiError) Error() string
type NetkiPartner ¶
type NetkiPartner struct { Requester NetkiRequest PartnerId string ApiKey string ApiUrl string UserKey *ecdsa.PrivateKey KeySigningKey *ecdsa.PublicKey KeySignature []byte }
func NewNetkiPartner ¶
func NewNetkiPartner(partnerId string, apiKey string, apiUrl string) *NetkiPartner
Constructor / NetkiPartner Factory
func NewNetkiRemotePartner ¶
func NewNetkiRemotePartner(apiUrl string, userKey *ecdsa.PrivateKey, keySigningKey *ecdsa.PublicKey, keySignature []byte) *NetkiPartner
func (NetkiPartner) CreateNewDomain ¶
func (n NetkiPartner) CreateNewDomain(domainName string, partner Partner) (Domain, error)
Domain Handlers
func (NetkiPartner) CreateNewPartner ¶
func (n NetkiPartner) CreateNewPartner(partnerName string) (Partner, error)
Define NetkiPartner methods
func (NetkiPartner) CreateNewWalletName ¶
func (n NetkiPartner) CreateNewWalletName(domain Domain, name string, wallets []Wallet, externalId string) WalletName
func (NetkiPartner) DeleteDomain ¶
func (n NetkiPartner) DeleteDomain(domain Domain) error
func (NetkiPartner) DeletePartner ¶
func (n NetkiPartner) DeletePartner(partner Partner) error
func (NetkiPartner) GetDomainDnssec ¶
func (n NetkiPartner) GetDomainDnssec(domain Domain) (returnDomain Domain, err error)
func (NetkiPartner) GetDomainStatus ¶
func (n NetkiPartner) GetDomainStatus(domain Domain) (returnDomain Domain, err error)
func (NetkiPartner) GetDomains ¶
func (n NetkiPartner) GetDomains() ([]Domain, error)
func (NetkiPartner) GetKeySigningKey ¶
func (n NetkiPartner) GetKeySigningKey() string
func (NetkiPartner) GetPartners ¶
func (n NetkiPartner) GetPartners() ([]Partner, error)
func (NetkiPartner) GetUserPublicKey ¶
func (n NetkiPartner) GetUserPublicKey() string
Define NetkiPartner Utility methods
func (NetkiPartner) GetWalletNames ¶
func (n NetkiPartner) GetWalletNames(domain Domain, externalId string) ([]WalletName, error)
func (NetkiPartner) SetKeySignature ¶
func (n NetkiPartner) SetKeySignature(sig []byte)
func (NetkiPartner) SetKeySigningKey ¶
func (n NetkiPartner) SetKeySigningKey(signingKey *ecdsa.PublicKey)
func (NetkiPartner) SetUserKey ¶
func (n NetkiPartner) SetUserKey(userKey *ecdsa.PrivateKey)
type NetkiRequest ¶
type NetkiRequest interface {
ProcessRequest(partner *NetkiPartner, uri string, method string, bodyData string) (*simplejson.Json, error)
}
type NetkiRequester ¶
func (NetkiRequester) ProcessRequest ¶
func (n NetkiRequester) ProcessRequest(partner *NetkiPartner, uri string, method string, bodyData string) (*simplejson.Json, error)
Generic Request Handling
func (NetkiRequester) SignRequest ¶
func (n NetkiRequester) SignRequest(uri string, bodyData string, key *ecdsa.PrivateKey) (string, error)
Sign Request
type WalletName ¶
type WalletName struct { Id string DomainName string Name string Wallets []Wallet ExternalId string }
func (WalletName) Delete ¶
func (w WalletName) Delete(partner *NetkiPartner) error
func (WalletName) GetAddress ¶
func (w WalletName) GetAddress(currency string) string
Defined WalletName Methods
func (*WalletName) RemoveCurrency ¶
func (w *WalletName) RemoveCurrency(currency string)
func (*WalletName) Save ¶
func (w *WalletName) Save(partner *NetkiPartner) error
func (*WalletName) SetCurrencyAddress ¶
func (w *WalletName) SetCurrencyAddress(currency string, address string)
func (WalletName) UsedCurrencies ¶
func (w WalletName) UsedCurrencies() []string
Click to show internal directories.
Click to hide internal directories.