annyong

package
v0.0.0-...-c9a5219 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd(cmd string) (interface{}, error)

func FindInterfaces

func FindInterfaces()

func FormNode

func FormNode() (*etcd.Node, error)

func GetIP

func GetIP() (string, error)

Using *nix system hostname command; find the host's broadcast IP Returns the IP as a string

func HoldDir

func HoldDir(ec *etcd.Client, directory string, ttl uint64)

Creates and holds specified directory and refreshes the ttl every 5 seconds

func HttpQuery

func HttpQuery(resource string) (interface{}, error)

func PostKey

func PostKey(ec *etcd.Client, key, value string, ttl uint64)

Post data to a key and refresh set ttl if specified

Types

This section is empty.

Jump to

Keyboard shortcuts

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