service

package
v0.0.0-...-e2a2c74 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2016 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OrderHandler

func OrderHandler(h command.Handler) func(resp http.ResponseWriter, req *http.Request)

Types

type AuthConfig

type AuthConfig struct {
	CookieSigningKey    string `json:"CookieSigningKey"`
	CookieEncryptionKey string `json:"CookieEncryptionKey"`
	BoltPath            string `json:"BoltPath"`
	TokenFile           string `json:"TokenFile"`
}

func (AuthConfig) Tokens

func (c AuthConfig) Tokens() (values []string, err error)

type ExchangeService

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

func NewExchangeService

func NewExchangeService(logger log.Logger, cfg ExchangeServiceConfig) *ExchangeService

func (*ExchangeService) Start

func (s *ExchangeService) Start() error

func (*ExchangeService) Stop

func (s *ExchangeService) Stop()

type ExchangeServiceConfig

type ExchangeServiceConfig struct {
	Host       string     `json:"Host"`
	Port       int32      `json:"Port"`
	AuthConfig AuthConfig `json:"AuthConfig"`
}

type Message

type Message struct {
	Price orderbook.Price
}

Jump to

Keyboard shortcuts

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