api

package
v0.0.110 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EpochScoreResp added in v0.0.46

type EpochScoreResp struct {
	TotalFee     string `json:"totalFee"`
	DaoFee       string `json:"daoFee"`
	AverageOI    string `json:"averageOI"`
	AverageStake string `json:"averageStake"`
	Score        string `json:"score"`
	Proportion   string `json:"proportion"`
}

type EpochTotalStatsResp added in v0.0.46

type EpochTotalStatsResp struct {
	TotalTrader     int64  `json:"totalTrader"`
	TotalFee        string `json:"totalFee"`
	TotalDaoFee     string `json:"totalDaoFee"`
	TotalStakeScore string `json:"totalStakeScore"`
	TotalOI         string `json:"totalOI"`
	TotalScore      string `json:"totalScore"`
}

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 MultiEpochScoreResp added in v0.0.58

type MultiEpochScoreResp struct {
	TotalFee     map[string]string `json:"totalFee"`
	DaoFee       map[string]string `json:"daoFee"`
	BaseDaoFee   map[string]string `json:"baseDaoFee"`
	AverageOI    map[string]string `json:"averageOI"`
	AverageStake map[string]string `json:"averageStake"`
	Score        string            `json:"score"`
	Proportion   string            `json:"proportion"`
}

type TMServer

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

func NewTMServer

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

func (*TMServer) OnQueryMultiScore added in v0.0.58

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

func (*TMServer) OnQueryScore added in v0.0.46

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

func (*TMServer) OnQueryTotalStats added in v0.0.46

func (s *TMServer) OnQueryTotalStats(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