erg

package module
v0.0.0-...-be1ceaa Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

README

erg

Command line client for querying range servers.

Install

# OSX
brew tap square/self
brew install erg

erg --help

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Erg

type Erg struct {
	Sort bool
	// contains filtered or unexported fields
}

Erg type Sort boolean - turn it off/on for sorting on expand default is true

func New

func New(host string, port int) *Erg

New(address string) returns a new erg takes two arguments host - hostname default - localhost port - port default - 8080 ssl - use https or not default - false

func NewWithClient

func NewWithClient(client *http.Client, host string, port int, ssl bool) *Erg

func NewWithSsl

func NewWithSsl(host string, port int) *Erg

func (*Erg) Compress

func (*Erg) Compress(nodes []string) (result string)

Compress takes a slice of strings as argument and returns a compressed form.

func (*Erg) Expand

func (e *Erg) Expand(query string) (result []string, err error)

Expand takes a range expression as argument and returns an slice of strings as result err is set to nil on success

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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