server

package
v0.0.0-...-f82fb7c Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

Engine is a fully-plumbed orderbook and account system hooked up to an echo server with a metrics client plugged in.

func NewServer

func NewServer(
	accounts accounts.AccountManager,
	in chan *orderbook.Order,
	out chan *orderbook.Match,
	fills chan []*orderbook.Order,
	status chan []*orderbook.Order,
) *Engine

NewServer returns a new server.Engine that wires together API requests to the orderbook. startingx

func (*Engine) Run

func (eng *Engine) Run() error

Run starts the engine at defaultPort

type Template

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

Template holds a specific instance of a rendered Template

func (*Template) Render

func (t *Template) Render(w io.Writer, name string, data interface{}, c echo.Context) error

Render ties Go templates to echo Contexts

Jump to

Keyboard shortcuts

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