1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
// Copyright 2019-present Facebook Inc. All rights reserved.
// This source code is licensed under the Apache 2.0 license found
// in the LICENSE file in the root directory of this source tree.
package gremlin
// Gremlin server operations.
const (
// OpsAuthentication used by the client to authenticate itself.
OpsAuthentication = "authentication"
// OpsBytecode used for a request that contains the Bytecode representation of a Traversal.
OpsBytecode = "bytecode"
// OpsEval used to evaluate a Gremlin script provided as a string.
OpsEval = "eval"
// OpsGather used to get a particular side-effect as produced by a previously executed Traversal.
OpsGather = "gather"
// OpsKeys used to get all the keys of all side-effects as produced by a previously executed Traversal.
OpsKeys = "keys"
// OpsClose used to get all the keys of all side-effects as produced by a previously executed Traversal.
OpsClose = "close"
)
// Gremlin server operation processors.
const (
// ProcessorTraversal is the default operation processor.
ProcessorTraversal = "traversal"
)
const (
// ArgsBatchSize allows to defines the number of iterations each ResponseMessage should contain
ArgsBatchSize = "batchSize"
// ArgsBindings allows to provide a map of key/value pairs to apply
// as variables in the context of the Gremlin script.
ArgsBindings = "bindings"
// ArgsAliases allows to define aliases that represent globally bound Graph and TraversalSource objects.
ArgsAliases = "aliases"
// ArgsGremlin corresponds to the Traversal to evaluate.
ArgsGremlin = "gremlin"
// ArgsSideEffect allows to specify the unique identifier for the request.
ArgsSideEffect = "sideEffect"
// ArgsSideEffectKey allows to specify the key for a specific side-effect.
ArgsSideEffectKey = "sideEffectKey"
// ArgsAggregateTo describes how side-effect data should be treated.
ArgsAggregateTo = "aggregateTo"
// ArgsLanguage allows to change the flavor of Gremlin used (e.g. gremlin-groovy).
ArgsLanguage = "language"
// ArgsEvalTimeout allows to override the server setting that determines
// the maximum time to wait for a script to execute on the server.
ArgsEvalTimeout = "scriptEvaluationTimeout"
// ArgsSasl defines the response to the server authentication challenge.
ArgsSasl = "sasl"
// ArgsSaslMechanism defines the SASL mechanism (e.g. PLAIN).
ArgsSaslMechanism = "saslMechanism"
)
|