Documentation ¶
Index ¶
- Constants
- Variables
- func DisposeNonce(n uint64)
- func IndyBaseDir() string
- func NewNonce() uint64
- func NewNonceStr() string
- func NonceNum(s string) uint64
- func NonceToStr(n uint64) string
- func ParseNonce(ns string) uint64
- func ReserveNonce(n uint64) uint64
- func UUID() string
- type Hub
- func (h *Hub) ExportPath() string
- func (h *Hub) GRPCAdmin() string
- func (h *Hub) HostAddr() string
- func (h *Hub) LocalTestMode() bool
- func (h *Hub) RegisterBackupInterval() time.Duration
- func (h *Hub) RegisterBackupName() string
- func (h *Hub) RegisterName() string
- func (h *Hub) ServiceName() string
- func (h *Hub) ServiceName2() string
- func (h *Hub) SetExportPath(exportPath string)
- func (h *Hub) SetGRPCAdmin(gRPCAdmin string)
- func (h *Hub) SetHostAddr(ipName string)
- func (h *Hub) SetLocalTestMode(localTestMode bool)
- func (h *Hub) SetRegisterBackupInterval(interval time.Duration)
- func (h *Hub) SetRegisterBackupName(name string)
- func (h *Hub) SetRegisterName(registerName string)
- func (h *Hub) SetServiceName(n string)
- func (h *Hub) SetServiceName2(n string)
- func (h *Hub) SetTimeout(to time.Duration)
- func (h *Hub) SetVersionInfo(info string)
- func (h *Hub) SetWalletBackupPath(path string)
- func (h *Hub) SetWalletBackupTime(t string)
- func (h *Hub) SetWsName(n string)
- func (h *Hub) Timeout() time.Duration
- func (h *Hub) VersionInfo() string
- func (h *Hub) WalletBackupPath() string
- func (h *Hub) WalletBackupTime() string
- func (h *Hub) WalletExportPath(filename string) (exportPath, url string)
- func (h *Hub) WebOnboardWalletKey() string
- func (h *Hub) WebOnboardWalletName() string
- func (h *Hub) WsServiceName() string
- type Reg
Constants ¶
const HTTPReqTimeout = 1 * time.Minute
Variables ¶
var Settings = &Hub{}
var Version = "0.10"
Functions ¶
func DisposeNonce ¶
func DisposeNonce(n uint64)
DisposeNonce frees the nonce value for others to use.
func IndyBaseDir ¶
func IndyBaseDir() string
func NewNonceStr ¶
func NewNonceStr() string
NewNonceStr generates new nonce with Go's crypto package, and returns value as string.
func NonceToStr ¶
func ParseNonce ¶
func ReserveNonce ¶
Types ¶
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
func (*Hub) ExportPath ¶
func (*Hub) LocalTestMode ¶
func (*Hub) RegisterBackupInterval ¶
func (*Hub) RegisterBackupName ¶
func (*Hub) RegisterName ¶
func (*Hub) ServiceName ¶
func (*Hub) ServiceName2 ¶
ServiceName2 returns service name to new worker EA based endpoints. This is something that will be refactored later.
func (*Hub) SetExportPath ¶
SetExportPath sets path for wallet exports.
func (*Hub) SetGRPCAdmin ¶
func (*Hub) SetHostAddr ¶
SetHostAddr sets current host name of this service agency. The host name is used in the URLs and endpoints.
func (*Hub) SetLocalTestMode ¶
func (*Hub) SetRegisterBackupInterval ¶
func (*Hub) SetRegisterBackupName ¶
func (*Hub) SetRegisterName ¶
func (*Hub) SetServiceName ¶
SetServiceName sets the service name of this agency. Service name is used in the URLs and endpoint addresses.
func (*Hub) SetServiceName2 ¶
func (*Hub) SetTimeout ¶
SetTimeout sets the default timeout for HTTP and WS requests.
func (*Hub) SetVersionInfo ¶
SetVersionInfo sets current version info of this agency. The info is shown in the certain API calls like Ping.
func (*Hub) SetWalletBackupPath ¶
func (*Hub) SetWalletBackupTime ¶
func (*Hub) SetWsName ¶
SetWsName sets web socket service name. It's in the different URL than HTTP.
func (*Hub) VersionInfo ¶
func (*Hub) WalletBackupPath ¶
func (*Hub) WalletBackupTime ¶
func (*Hub) WalletExportPath ¶
func (*Hub) WebOnboardWalletKey ¶
WebOnboardWalletKey returns wallet key for web boarding wallet
func (*Hub) WebOnboardWalletName ¶
WebOnboardWalletName returns wallet name for web boarding wallet