server

package
v0.0.0-...-070c868 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExchangeRate

type ExchangeRate struct {
	Rate string `json:"5. Exchange Rate"`
}

type ExchangeRates

type ExchangeRates struct {
	R ExchangeRate `json:"Realtime Currency Exchange Rate"`
}

ExchangeRates is a struct composed of ExchangeRate It is used to unmarshal FOREX JSON data from the Alpha Vantage API

type WatcherServer

type WatcherServer struct {
	pb.UnimplementedWatcherServer
	// contains filtered or unexported fields
}

func NewWatcher

func NewWatcher(sp *data.StockPrices, l *log.Logger) *WatcherServer

func (*WatcherServer) Echo

Echo returns the request that was passed to it

func (*WatcherServer) GetInfo

GetInfo returns a TickerResponse containing the price of the security in USD

func (*WatcherServer) MoreInfo

MoreInfo returns a CompanyResponse containing important financial ratios

Jump to

Keyboard shortcuts

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