mnoeth

package
v0.0.0-...-ffb6f1e Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListBocksResItem

type ListBocksResItem struct {
	Height    uint64  `json:"height"`
	Hash      string  `json:"hash"`
	WinningMN string  `json:"winning_mn"`
	MNReward  float64 `json:"mn_reward"`
	Timestamp int64   `json:"timestamp"`
}

ListBocksResItem data

type ListMasternodesItem

type ListMasternodesItem struct {
	Pubkey string `json:"pubkey"`
	IP     string `json:"ip"`
	Status string `json:"status"`
}

ListMasternodesItem data

type Service

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

Service is a masternodes.online API implemetation service (https://mnoeth.docs.apiary.io/#reference)

func New

func New(reader dao.IDAO, latency mtx.Histogram) *Service

New instance

func (*Service) ListBlocks

func (s *Service) ListBlocks(w http.ResponseWriter, r *http.Request)

ListBlocks ...

func (*Service) ListMasternodes

func (s *Service) ListMasternodes(w http.ResponseWriter, r *http.Request)

ListMasternodes ...

Jump to

Keyboard shortcuts

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