bidengine

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotRunning = errors.New("not running")

Declaring new error with message "not running"

Functions

This section is empty.

Types

type Service

type Service interface {
	StatusClient
	Close() error
	Done() <-chan struct{}
}

Service handles bidding on orders.

func NewService

func NewService(ctx context.Context, session session.Session, cluster cluster.Cluster, bus pubsub.Bus) (Service, error)

NewService creates new service instance and returns error incase of failure

type Status added in v0.6.0

type Status struct {
	Orders uint32
}

Status stores orders

type StatusClient added in v0.3.4

type StatusClient interface {
	Status(context.Context) (*Status, error)
}

StatusClient interface predefined with Status method

Jump to

Keyboard shortcuts

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