app

package
v0.0.0-...-ccde174 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupEnvConfig

func SetupEnvConfig() *envConfig

Types

type Context

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

Context is application's content

func NewContext

func NewContext(tunnel tunnel.Tunnel, queue storage.Vwap, cfg *envConfig) *Context

NewContext instantiates new rte context object.

func (*Context) Run

func (s *Context) Run(ctx context.Context) (err error)

Run the App context, subscribe to the ws, and initiate the storage and calculation for the trading pairs. It is resilient tolerant. It will gracefully shut down and can receive an interrupt signal and safely to close the connexion.

Jump to

Keyboard shortcuts

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