Documentation ¶
Index ¶
- func Arg2Key(arg []byte) []interface{}
- func GetIndex(client *qclient.GsiClient, bucket, indexName string) (*mclient.IndexMetadata, bool)
- func HandleCommand(client *qclient.GsiClient, cmd *Command, verbose bool, w io.Writer) (err error)
- func WaitUntilIndexState(client *qclient.GsiClient, defnIDs []uint64, state c.IndexState, ...) ([]c.IndexState, error)
- type Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleCommand ¶
HandleCommand after parsing it with ParseArgs().
func WaitUntilIndexState ¶
func WaitUntilIndexState( client *qclient.GsiClient, defnIDs []uint64, state c.IndexState, period, timeout time.Duration) ([]c.IndexState, error)
WaitUntilIndexState comes to desired `state`, retry for every `period` mS until `timeout` mS.
Types ¶
type Command ¶
type Command struct { OpType string // basic options. Server string IndexName string Bucket string AdminPort string QueryPort string Auth string // options for create-index. Using string ExprType string PartnStr string WhereStr string SecStrs []string IsPrimary bool With string WithPlan map[string]interface{} // options for build index Bindexes []string // options for Range, Statistics, Count Low c.SecondaryKey High c.SecondaryKey Equal c.SecondaryKey Inclusion qclient.Inclusion Limit int64 Distinct bool Consistency c.Consistency // Configuration ConfigKey string ConfigVal string Help bool }
Command object containing parsed result from command-line or program constructued list of args.
Click to show internal directories.
Click to hide internal directories.