adminapi

package
v0.0.0-...-5f38ebe Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceOnline  = "online"
	ServiceOffline = "offline"
)

Variables

This section is empty.

Functions

func ApproveMarketHandler

func ApproveMarketHandler(e echo.Context) (err error)

func CreateMarketHandler

func CreateMarketHandler(e echo.Context) (err error)

func DeleteOrderHandler

func DeleteOrderHandler(e echo.Context) (err error)

func EditMarketHandler

func EditMarketHandler(e echo.Context) (err error)

func GetBalancesHandler

func GetBalancesHandler(e echo.Context) (err error)

func GetOrdersHandler

func GetOrdersHandler(e echo.Context) (err error)

func GetStatusHandler

func GetStatusHandler(e echo.Context) (err error)

func GetTradesHandler

func GetTradesHandler(e echo.Context) (err error)

func ListMarketsHandler

func ListMarketsHandler(e echo.Context) (err error)

func RestartEngineHandler

func RestartEngineHandler(e echo.Context) (err error)

func StartServer

func StartServer(ctx context.Context)

func ToStatus

func ToStatus(httpCode int) string

Types

type HealthCheckOptions

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

type HealthCheckService

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

func (*HealthCheckService) CheckApi

func (h *HealthCheckService) CheckApi() string

func (*HealthCheckService) CheckEngine

func (h *HealthCheckService) CheckEngine() string

func (*HealthCheckService) CheckLauncher

func (h *HealthCheckService) CheckLauncher() string

func (*HealthCheckService) CheckWatcher

func (h *HealthCheckService) CheckWatcher() string

func (*HealthCheckService) CheckWeb

func (h *HealthCheckService) CheckWeb() string

func (*HealthCheckService) CheckWebSocket

func (h *HealthCheckService) CheckWebSocket() string

type IHealthCheckMonitor

type IHealthCheckMonitor interface {
	CheckWeb() string
	CheckApi() string
	CheckEngine() string
	CheckLauncher() string
	CheckWatcher() string
	CheckWebSocket() string
}

return status of services

func NewHealthCheckService

func NewHealthCheckService(options *HealthCheckOptions) IHealthCheckMonitor

Jump to

Keyboard shortcuts

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