services

package
v0.0.0-...-84af44b Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CandleService

type CandleService struct{}

func (*CandleService) Healthy

func (service *CandleService) Healthy(ctx context.Context) bool

func (*CandleService) Run

func (service *CandleService) Run(ctx context.Context) error

type Hub

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

func NewHub

func NewHub(spanner *spanner.Client) *Hub

func (*Hub) StartService

func (hub *Hub) StartService(name string) error

type KeyService

type KeyService struct{}

func (*KeyService) Healthy

func (service *KeyService) Healthy(ctx context.Context) bool

func (*KeyService) Run

func (service *KeyService) Run(ctx context.Context) error

type Service

type Service interface {
	Healthy(context.Context) bool
	Run(context.Context) error
}

type Trade

type Trade struct {
	Base      string    `json:"base"`
	Quote     string    `json:"quote"`
	Amount    string    `json:"amount"`
	Price     string    `json:"price"`
	CreatedAt time.Time `json:"created_at"`
	TradeId   string    `json:"trade_id"`
}

Jump to

Keyboard shortcuts

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