generated from mrz1836/go-template
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #176 from BuxOrg/feat/BUX-430/removeLogs
BUX-430/Remove logs and debug flag
- Loading branch information
Showing
17 changed files
with
19 additions
and
319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,19 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/BuxOrg/go-buxclient/xpriv" | ||
"log" | ||
|
||
"github.com/BuxOrg/go-buxclient" | ||
"github.com/BuxOrg/go-buxclient/xpriv" | ||
) | ||
|
||
func main() { | ||
|
||
// Generate keys | ||
keys, resErr := xpriv.Generate() | ||
if resErr != nil { | ||
log.Fatalln(resErr.Error()) | ||
} | ||
keys, _ := xpriv.Generate() | ||
|
||
// Create a client | ||
buxClient, err := buxclient.New( | ||
_, _ = buxclient.New( | ||
buxclient.WithXPriv(keys.XPriv()), | ||
buxclient.WithGraphQL("localhost:3001"), | ||
buxclient.WithDebugging(true), | ||
buxclient.WithSignRequest(true), | ||
) | ||
if err != nil { | ||
log.Fatalln(err.Error()) | ||
} | ||
|
||
log.Printf("client loaded - bux debug: %v", buxClient.IsDebug()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,19 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/BuxOrg/go-buxclient/xpriv" | ||
"log" | ||
|
||
"github.com/BuxOrg/go-buxclient" | ||
"github.com/BuxOrg/go-buxclient/xpriv" | ||
) | ||
|
||
func main() { | ||
|
||
// Generate keys | ||
keys, resErr := xpriv.Generate() | ||
if resErr != nil { | ||
log.Fatalln(resErr.Error()) | ||
} | ||
keys, _ := xpriv.Generate() | ||
|
||
// Create a client | ||
buxClient, err := buxclient.New( | ||
_, _ = buxclient.New( | ||
buxclient.WithXPriv(keys.XPriv()), | ||
buxclient.WithHTTP("localhost:3001"), | ||
buxclient.WithDebugging(true), | ||
buxclient.WithSignRequest(true), | ||
) | ||
if err != nil { | ||
log.Fatalln(err.Error()) | ||
} | ||
|
||
log.Printf("client loaded - bux debug: %v", buxClient.IsDebug()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,37 +2,22 @@ package main | |
|
||
import ( | ||
"context" | ||
"github.com/BuxOrg/go-buxclient/xpriv" | ||
"log" | ||
|
||
"github.com/BuxOrg/go-buxclient" | ||
"github.com/BuxOrg/go-buxclient/xpriv" | ||
) | ||
|
||
func main() { | ||
|
||
// Generate keys | ||
keys, resErr := xpriv.Generate() | ||
if resErr != nil { | ||
log.Fatalln(resErr.Error()) | ||
} | ||
keys, _ := xpriv.Generate() | ||
|
||
// Create a client | ||
buxClient, err := buxclient.New( | ||
buxClient, _ := buxclient.New( | ||
buxclient.WithXPriv(keys.XPriv()), | ||
buxclient.WithHTTP("localhost:3001"), | ||
buxclient.WithDebugging(true), | ||
buxclient.WithSignRequest(true), | ||
) | ||
if err != nil { | ||
log.Fatalln(err.Error()) | ||
} | ||
|
||
log.Printf("client loaded - bux debug: %v", buxClient.IsDebug()) | ||
err = buxClient.NewPaymail(context.Background(), keys.XPub().String(), "[email protected]", "", "Foo", nil) | ||
|
||
if err != nil { | ||
log.Fatalln(err.Error()) | ||
} | ||
log.Printf("paymail added") | ||
_ = buxClient.NewPaymail(context.Background(), keys.XPub().String(), "[email protected]", "", "Foo", nil) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.