api

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EpochTradingMiningResp

type EpochTradingMiningResp struct {
	Fee        string `json:"fee"`
	OI         string `json:"oi"`
	Stake      string `json:"stake"`
	Score      string `json:"score"`
	Proportion string `json:"proportion"`
}

type InternalServer added in v0.0.7

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

func NewInternalServer added in v0.0.7

func NewInternalServer(ctx context.Context, logger logging.Logger) *InternalServer

func (*InternalServer) OnQueryHealthCheckup added in v0.0.7

func (s *InternalServer) OnQueryHealthCheckup(w http.ResponseWriter, r *http.Request)

func (*InternalServer) OnQuerySetEpoch added in v0.0.7

func (s *InternalServer) OnQuerySetEpoch(w http.ResponseWriter, r *http.Request)

func (*InternalServer) Run added in v0.0.7

func (s *InternalServer) Run() error

func (*InternalServer) Shutdown added in v0.0.7

func (s *InternalServer) Shutdown() error

type TMServer

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

func NewTMServer

func NewTMServer(ctx context.Context, logger logging.Logger) *TMServer

func (*TMServer) OnQueryTradingMining

func (s *TMServer) OnQueryTradingMining(w http.ResponseWriter, r *http.Request)

func (*TMServer) Run

func (s *TMServer) Run() error

func (*TMServer) Shutdown added in v0.0.2

func (s *TMServer) Shutdown() error

Jump to

Keyboard shortcuts

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