tcssync

package module
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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(configPath string)

Init filler

func SyncPrice

func SyncPrice()

SyncPrice updates prices in local storage

func SyncPriceLastDay

func SyncPriceLastDay()

SyncPriceLastDay 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"`
	SyncFrom   int64  `json:"syncFromTimestamp"`
}

Config represents configuration

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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