servers

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: May 30, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunGrpc

func RunGrpc(
	monitor *Monitor,
)

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 *Monitor) ErrorsEncountered() bool

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)

Jump to

Keyboard shortcuts

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