sync

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(config Config) error

Init sync module

func Price

func Price()

Price updates prices in local storage

func PriceLastDay

func PriceLastDay()

PriceLastDay updates prices only for the last day

Types

type Config

type Config struct {
	MongoURL   string `json:"mongoURL"`
	DbName     string `json:"dbName"`
	TcsToken   string `json:"tcsToken"`
	TcsTimeout int32  `json:"tcsTimeout"`
}

Config represents configuration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL