Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Monitor ¶ added in v0.2.3
type Monitor struct {
// contains filtered or unexported fields
}
We'll use this to run the services, with a bonus that we can use it during tests as well.
func NewServiceMonitor ¶
func NewServiceMonitor() *Monitor
func (*Monitor) ErrorsEncountered ¶ added in v0.2.3
func (*Monitor) ShutdownServers ¶ added in v0.2.3
func (monitor *Monitor) ShutdownServers()
Sends shutdown signals. Forces shutdown after 10 seconds.
func (*Monitor) StartServers ¶ added in v0.2.3
func (monitor *Monitor) StartServers()
Start monitoring the servers
func (*Monitor) WaitOnShutdown ¶ added in v0.2.3
func (monitor *Monitor) WaitOnShutdown()
BLocks until servers are shut down.
type StalkForecastServer ¶
type StalkForecastServer struct{}
func (*StalkForecastServer) ForecastPrices ¶
func (server *StalkForecastServer) ForecastPrices( ctx context.Context, ticker *stalkproto.Ticker, ) (*stalkproto.Forecast, error)
Click to show internal directories.
Click to hide internal directories.