binance_spot

package
v0.0.0-...-c74069a Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Service Service
}

func NewHandler

func NewHandler(service Service) Handler

func (*Handler) SetupApp

func (h *Handler) SetupApp(app *fiber.App)

type Repository

type Repository struct {
	MongoClient *mongo.Client
}

func NewRepository

func NewRepository(uri string) Repository

func (*Repository) GetSpotsIteratable

func (r *Repository) GetSpotsIteratable() error

func (*Repository) UpdateDb

func (r *Repository) UpdateDb(symbol []*binance.SymbolPrice)

type Service

type Service struct {
	Repository Repository
}

func NewService

func NewService(repository Repository) Service

type SymbolPrice

type SymbolPrice struct {
	Symbol string `json:"symbol"`
	Price  string `json:"price"`
}

type SymbolPriceEntity

type SymbolPriceEntity struct {
	Symbol string `bson:"symbol"`
	Price  string `bson:"price"`
}

type SymbolPriceEntityList

type SymbolPriceEntityList struct {
	SymbolPrices []interface{} `bson:"symbol_prices"`
}

Jump to

Keyboard shortcuts

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