|
|
|
@ -38,9 +38,14 @@ type ACN interface {
|
|
|
|
|
WaitTillBootstrapped() error
|
|
|
|
|
// Sets the callback function to be called when ACN status changes
|
|
|
|
|
SetStatusCallback(callback func(int, string))
|
|
|
|
|
|
|
|
|
|
GetStatusCallback() func(int, string)
|
|
|
|
|
|
|
|
|
|
// Sets the callback function to be called when ACN reboots to emit the version
|
|
|
|
|
SetVersionCallback(callback func(string))
|
|
|
|
|
|
|
|
|
|
GetVersionCallback() func(string)
|
|
|
|
|
|
|
|
|
|
// Restarts the underlying connection
|
|
|
|
|
Restart()
|
|
|
|
|
|
|
|
|
@ -57,8 +62,6 @@ type ACN interface {
|
|
|
|
|
// GetVersion returns a string of what the ACN returns when asked for a version
|
|
|
|
|
GetVersion() string
|
|
|
|
|
|
|
|
|
|
Callback() func(int, string)
|
|
|
|
|
|
|
|
|
|
GetInfo(onion string) (map[string]string, error)
|
|
|
|
|
|
|
|
|
|
Close()
|
|
|
|
|