core

package
v0.0.0-...-2d06dbd Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultHeaders = map[string]string{
	"Connection":                "keep-alive",
	"Expires":                   "-1",
	"Upgrade-Insecure-Requests": "1",
	"User-Agent":                "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
}

Functions

This section is empty.

Types

type MockReader

type MockReader struct {
	// contains filtered or unexported fields
}

func (*MockReader) FetchData

func (m *MockReader) FetchData() (map[string][]Record, error)

type Reader

type Reader interface {
	FetchData() (map[string][]Record, error)
}

func GetReaderFromProviderString

func GetReaderFromProviderString(provider string, initArgs any) (Reader, error)

type Record

type Record struct {
	Date  string  `json:"date"`
	Open  float32 `json:"open"`
	Close float32 `json:"close"`
}

type StooqDataReader

type StooqDataReader struct {
	// contains filtered or unexported fields
}

func NewStooqReader

func NewStooqReader(initArgsMap map[string]interface{}) (*StooqDataReader, error)

func (StooqDataReader) FetchData

func (s StooqDataReader) FetchData() (map[string][]Record, error)

Jump to

Keyboard shortcuts

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