loop: extract code from client package into new loop primary package

This commit is contained in:
Olaoluwa Osuntokun 2019-03-06 18:22:46 -08:00
parent f552bc06b1
commit 908d82acdb
No known key found for this signature in database
GPG key ID: CE58F7F8E20FD9A2
21 changed files with 126 additions and 147 deletions

15
config.go Normal file
View file

@ -0,0 +1,15 @@
package loop
import (
"time"
"github.com/lightninglabs/loop/lndclient"
)
// clientConfig contains config items for the swap client.
type clientConfig struct {
LndServices *lndclient.LndServices
Server swapServerClient
Store swapClientStore
CreateExpiryTimer func(expiry time.Duration) <-chan time.Time
}