provider

package
v0.0.0-...-c5f9841 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustSetup

func MustSetup(logger log.Logger)

func Register

func Register(p string, handler Provider) error

Types

type Base

type Base struct{}

func (*Base) CreateOrderResponse

func (b *Base) CreateOrderResponse(*model.Order) (interface{}, error)

func (*Base) Notify

func (b *Base) Notify(request interface{}) (*model.Trade, interface{}, error)

type Provider

type Provider interface {
	Setup(log.Logger) error
	CreateOrderResponse(*model.Order) (interface{}, error)
	Notify(request interface{}) (trade *model.Trade, response interface{}, err error)
}

func WithName

func WithName(p string) Provider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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