Documentation ¶
Index ¶
- Constants
- Variables
- func DecodeB64(str string) ([]byte, error)
- 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) DIDMethod() method.Type
- 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) SetDIDMethod(m method.Type)
- 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) 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) 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)
- type Reg
Constants ¶
View Source
const HTTPReqTimeout = 1 * time.Minute
Variables ¶
View Source
var Settings = &Hub{}
View Source
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
IndyBaseDir TODO: the function name is bad, why I cannot remember?
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 ¶
ServiceName returns service name for a2a communication
func (*Hub) SetDIDMethod ¶ added in v0.30.15
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 for a2a communication
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) VersionInfo ¶
func (*Hub) WalletBackupPath ¶
func (*Hub) WalletBackupTime ¶
func (*Hub) WalletExportPath ¶
Click to show internal directories.
Click to hide internal directories.