client

package
v0.0.0-...-506d704 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2017 License: Apache-2.0, Apache-2.0, Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "client",
	Short: "Fetch the current Ethereum block number and send it to an Eth project server.",
	Run: func(cmd *cobra.Command, args []string) {
		RunClient()
	},
}

Cmd represents the client command

View Source
var Timeout time.Duration = 1
View Source
var Url = "https://mainnet.infura.io/"

Functions

func CreateHtml

func CreateHtml(curBlock int64) (string, error)

func GetCurrentBlock

func GetCurrentBlock() (int64, error)

func RunClient

func RunClient()

func SendHtml

func SendHtml(host string, port int, html string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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