Documentation ¶
Overview ¶
SPDX-License-Identifier: ISC Copyright (c) 2014-2020 Bitmark Inc. Use of this source code is governed by an ISC license that can be found in the LICENSE file.
Index ¶
Constants ¶
View Source
const ( // Livenet - Defines the network type live Livenet = Network("livenet") // Testnet - Defines the network type test Testnet = Network("testnet") )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIError ¶
type APIError struct { Code int `json:"code"` Message string `json:"message"` Reason string `json:"reason"` }
APIError - struct that holds the API errors
type BackendImplementation ¶
type BackendImplementation struct { HTTPClient *http.Client URLAuthority string APIToken string MaxNetworkRetries int }
BackendImplementation - structure used by the API client
func GetAPIClient ¶
func GetAPIClient() *BackendImplementation
GetAPIClient - returns the API client
func (*BackendImplementation) Do ¶
func (s *BackendImplementation) Do(req *http.Request, v interface{}) error
Do - sends an HTTP request
func (*BackendImplementation) NewRequest ¶
func (s *BackendImplementation) NewRequest(method, path string, body io.Reader) (*http.Request, error)
NewRequest - returns a new Request given a method, URL and body
Directories ¶
Path | Synopsis |
---|---|
SPDX-License-Identifier: ISC Copyright (c) 2014-2020 Bitmark Inc.
|
SPDX-License-Identifier: ISC Copyright (c) 2014-2020 Bitmark Inc. |
bip39
SPDX-License-Identifier: ISC Copyright (c) 2014-2020 Bitmark Inc.
|
SPDX-License-Identifier: ISC Copyright (c) 2014-2020 Bitmark Inc. |
SPDX-License-Identifier: ISC Copyright (c) 2014-2020 Bitmark Inc.
|
SPDX-License-Identifier: ISC Copyright (c) 2014-2020 Bitmark Inc. |
SPDX-License-Identifier: ISC Copyright (c) 2014-2020 Bitmark Inc.
|
SPDX-License-Identifier: ISC Copyright (c) 2014-2020 Bitmark Inc. |
SPDX-License-Identifier: ISC Copyright (c) 2014-2020 Bitmark Inc.
|
SPDX-License-Identifier: ISC Copyright (c) 2014-2020 Bitmark Inc. |
SPDX-License-Identifier: ISC Copyright (c) 2014-2020 Bitmark Inc.
|
SPDX-License-Identifier: ISC Copyright (c) 2014-2020 Bitmark Inc. |
SPDX-License-Identifier: ISC Copyright (c) 2014-2020 Bitmark Inc.
|
SPDX-License-Identifier: ISC Copyright (c) 2014-2020 Bitmark Inc. |
SPDX-License-Identifier: ISC Copyright (c) 2014-2020 Bitmark Inc.
|
SPDX-License-Identifier: ISC Copyright (c) 2014-2020 Bitmark Inc. |
SPDX-License-Identifier: ISC Copyright (c) 2014-2020 Bitmark Inc.
|
SPDX-License-Identifier: ISC Copyright (c) 2014-2020 Bitmark Inc. |
Click to show internal directories.
Click to hide internal directories.