initializers

package
v0.0.0-...-90ad8ca Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalApiInterfaces []ApiInterface
View Source
var I18n *i18n.I18n

Functions

func Auth

func Auth(next echo.HandlerFunc) echo.HandlerFunc

func CloseAmqpConnection

func CloseAmqpConnection()

func GetRabbitMqConnect

func GetRabbitMqConnect() sneaker.RabbitMqConnect

func InitCacheData

func InitCacheData()

func InitI18n

func InitI18n()

func InitWorkers

func InitWorkers()

func InitializeAmqpConfig

func InitializeAmqpConfig()

func InitializeAmqpConnection

func InitializeAmqpConnection()

func IsRabbitMqConnected

func IsRabbitMqConnected() bool

func LimitTrafficWithEmail

func LimitTrafficWithEmail(context echo.Context) bool

func LimitTrafficWithIp

func LimitTrafficWithIp(context echo.Context) bool

func LoadCacheData

func LoadCacheData()

func LoadInterfaces

func LoadInterfaces()

func LoadLatestKLines

func LoadLatestKLines()

func LoadLatestTickers

func LoadLatestTickers()

Types

type ApiInterface

type ApiInterface struct {
	Method                string `yaml:"method"`
	Path                  string `yaml:"path"`
	Auth                  bool   `yaml:"auth"`
	Sign                  bool   `yaml:"sign"`
	CheckTimestamp        bool   `yaml:"check_timestamp"`
	LimitTrafficWithIp    bool   `yaml:"limit_traffic_with_ip"`
	LimitTrafficWithEmail bool   `yaml:"limit_traffic_with_email"`
	IsRabbitMqConnected   bool   `yaml:"is_rabbitmq_connected"`
}

type Payload

type Payload struct {
	Update string `json:"update"`
	Symbol int    `json:"symbol"`
}

func (*Payload) ReloadCurrencies

func (payload *Payload) ReloadCurrencies()

func (*Payload) ReloadMarkets

func (payload *Payload) ReloadMarkets()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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