Update and integrate price updater

PriceUpdater:
    - Pass context so that it can be canceled during an update loop
    - Define APITypes to make it explicit which API we are using
This commit is contained in:
Eduard S
2020-12-18 17:07:09 +01:00
parent 0bde608a1b
commit 56fffdcee5
5 changed files with 111 additions and 33 deletions

View File

@@ -97,6 +97,11 @@ type Coordinator struct {
// Node is the hermez node configuration.
type Node struct {
PriceUpdater struct {
Interval Duration `valudate:"required"`
URL string `valudate:"required"`
Type string `valudate:"required"`
} `validate:"required"`
StateDB struct {
Path string
} `validate:"required"`