common

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

ErrorResponse error response format

func NewResponse

func NewResponse(err error) *ErrorResponse

type Neighbor

type Neighbor struct {
	Address  string `json:"address"`
	OutBound bool   `json:"out_bound"`
}

Neighbor P2P debug neighbor format

type ReportMsg

type ReportMsg struct {
	ReportPeer string    `json:"report_peer"`
	From       string    `json:"from"`
	Time       time.Time `json:"time"`
}

ReportMsg P2P debug report message format

Jump to

Keyboard shortcuts

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