invoicesrpc: add SubscribeSingleInvoice rpc

This commit is contained in:
Joost Jager
2019-01-03 19:15:14 +01:00
parent 4c4536a488
commit 70c874be88
7 changed files with 241 additions and 19 deletions

15
lnrpc/file_utils.go Normal file
View File

@@ -0,0 +1,15 @@
package lnrpc
import (
"os"
)
// FileExists reports whether the named file or directory exists.
func FileExists(name string) bool {
if _, err := os.Stat(name); err != nil {
if os.IsNotExist(err) {
return false
}
}
return true
}