commands

package
v0.0.0-...-751bb45 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2015 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliasCmd

type AliasCmd struct{}

func (*AliasCmd) Create

func (c *AliasCmd) Create(d backend.Resource) (string, bool)

func (*AliasCmd) GetAll

func (c *AliasCmd) GetAll(d backend.Resource) (string, bool)

func (*AliasCmd) Move

func (c *AliasCmd) Move(dFrom backend.Resource, dTarget backend.Resource) (string, bool)

func (*AliasCmd) Remove

func (c *AliasCmd) Remove(d backend.Resource) (string, bool)

type CloseCmd

type CloseCmd struct{}

func (*CloseCmd) Do

func (c *CloseCmd) Do(d backend.Resource) (string, bool)

type CountCmd

type CountCmd struct{}

func (*CountCmd) Get

func (c *CountCmd) Get(d backend.Resource) (string, bool)

type DocCmd

type DocCmd struct{}

func (*DocCmd) Delete

func (c *DocCmd) Delete(d backend.Resource) (string, bool)

curl -XDELETE 'http://localhost:9200/twitter/tweet/1'

func (*DocCmd) Get

func (c *DocCmd) Get(d backend.Resource) (string, bool)

type Duplicate

type Duplicate struct {
	IdList []string
	Value  string
	Count  int
}

type DuplicatesCountCmd

type DuplicatesCountCmd struct{}

func (*DuplicatesCountCmd) Do

type EnvCmd

type EnvCmd struct{}

func (*EnvCmd) Get

func (c *EnvCmd) Get(d backend.Resource) (string, bool)

func (*EnvCmd) SetHost

func (c *EnvCmd) SetHost(d backend.Resource) (string, bool)

func (*EnvCmd) SetIndex

func (c *EnvCmd) SetIndex(d backend.Resource) (string, bool)

func (*EnvCmd) SetPort

func (c *EnvCmd) SetPort(d backend.Resource) (string, bool)

type FlushCmd

type FlushCmd struct{}

func (*FlushCmd) Do

func (c *FlushCmd) Do(d backend.Resource) (string, bool)

type IndexCmd

type IndexCmd struct{}

func (*IndexCmd) Create

func (c *IndexCmd) Create(d backend.Resource) (string, bool)

func (*IndexCmd) Delete

func (c *IndexCmd) Delete(d backend.Resource) (string, bool)

type MappingCmd

type MappingCmd struct{}

func (*MappingCmd) Get

func (c *MappingCmd) Get(d backend.Resource) (string, bool)

type OpenCmd

type OpenCmd struct{}

func (*OpenCmd) Do

func (c *OpenCmd) Do(d backend.Resource) (string, bool)

type OptimizeCmd

type OptimizeCmd struct{}

func (*OptimizeCmd) Do

func (c *OptimizeCmd) Do(d backend.Resource) (string, bool)

type Pair

type Pair struct {
	Key       string
	Duplicate *Duplicate
}

type PairList

type PairList []Pair

A slice of Pairs that implements sort.Interface to sort by Value.

func (PairList) Len

func (p PairList) Len() int

func (PairList) Less

func (p PairList) Less(i, j int) bool

func (PairList) Swap

func (p PairList) Swap(i, j int)

type RecoveryCmd

type RecoveryCmd struct{}

func (*RecoveryCmd) Do

func (c *RecoveryCmd) Do(d backend.Resource) (string, bool)

type RefreshCmd

type RefreshCmd struct{}

func (*RefreshCmd) Do

func (c *RefreshCmd) Do(d backend.Resource) (string, bool)

type ReindexCmd

type ReindexCmd struct{}

func (*ReindexCmd) Reindex

func (c *ReindexCmd) Reindex(dSource backend.Resource, dTarget backend.Resource) (string, bool)

type SegmentsCmd

type SegmentsCmd struct{}

func (*SegmentsCmd) Do

func (c *SegmentsCmd) Do(d backend.Resource) (string, bool)

type SettingsCmd

type SettingsCmd struct{}

func (*SettingsCmd) Get

func (c *SettingsCmd) Get(d backend.Resource) (string, bool)

type StatsCmd

type StatsCmd struct{}

func (*StatsCmd) Get

func (c *StatsCmd) Get(d backend.Resource) (string, bool)

type StatusCmd

type StatusCmd struct{}

func (*StatusCmd) Get

func (c *StatusCmd) Get(d backend.Resource) (string, bool)

type VersionCmd

type VersionCmd struct{}

func (*VersionCmd) Get

func (c *VersionCmd) Get(d backend.Resource) (string, bool)

Jump to

Keyboard shortcuts

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