diff options
| author | Özgür Kesim <oec@codeblau.de> | 2024-04-05 18:06:35 +0200 |
|---|---|---|
| committer | Özgür Kesim <oec@codeblau.de> | 2024-04-05 18:06:35 +0200 |
| commit | 5733f293044bfe0d3210e7c4688172d53d54a7e0 (patch) | |
| tree | b8f3da57d83410a9b3f7efe0b856729ca48d804b /client/option.go | |
| parent | e735cff1d63145b89c4c48b9d73f037d3a4305f4 (diff) | |
client: started work on API for client, wip
- auction defines description of an auction
- client creates auction object, given a description
- commitment/* merged into client
Diffstat (limited to 'client/option.go')
| -rw-r--r-- | client/option.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/client/option.go b/client/option.go new file mode 100644 index 0000000..c2b1e5d --- /dev/null +++ b/client/option.go @@ -0,0 +1,18 @@ +package client + +import ( + "log" + "os" +) + +type Option func(auction *Auction) + +func OptVerbose(a *Auction) { + logger := log.New(os.Stdout, "[seal::client][verbose] ", log.LstdFlags) + a.verbose = logger.Printf +} + +func OptDebug(a *Auction) { + logger := log.New(os.Stdout, "[seal::client][debug] ", log.LstdFlags) + a.debug = logger.Printf +} |
