exchange

package
v0.0.0-...-131c074 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExchangeConfig

type ExchangeConfig struct {
	Enabled         bool   `json:"enabled"`
	Name            string `json:"name"`
	Url             string `json:"url"`
	Timeout         string `json:"timeout"`
	RefreshInterval string `json:"refreshInterval"`
}

type ExchangeProcessor

type ExchangeProcessor struct {
	ExchangeConfig *ExchangeConfig
	// contains filtered or unexported fields
}

func StartExchangeProcessor

func StartExchangeProcessor(cfg *ExchangeConfig, backend *storage.RedisClient) *ExchangeProcessor

func (*ExchangeProcessor) Start

func (u *ExchangeProcessor) Start()

type ExchangeReply

type ExchangeReply []map[string]interface{}

type RestClient

type RestClient struct {
	sync.RWMutex
	Url  string
	Name string
	// contains filtered or unexported fields
}

func NewRestClient

func NewRestClient(name, url, timeout string) *RestClient

func (*RestClient) GetData

func (r *RestClient) GetData() (ExchangeReply, error)

Jump to

Keyboard shortcuts

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