Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArangoFlags ¶ added in v0.4.0
The ArangoFlags function returns a []cli.Flag containing the following flags:
arangodb-pass: The password for the ArangoDB database.
This flag is required and can be set using the ARANGODB_PASS environment variable.
arangodb-user: The user for the ArangoDB database.
This flag is required and can be set using the ARANGODB_USER environment variable.
arangodb-host: The host for the ArangoDB database.
The default value is "arangodb" and can be overridden using the ARANGODB_SERVICE_HOST environment variable. This flag is required.
arangodb-port: The port for the ArangoDB database.
The default value is "8529" and can be overridden using the ARANGODB_SERVICE_PORT environment variable.
is-secure: A boolean flag indicating whether the ArangoDB endpoint is secured or unsecured.
Example usage:
flags := ArangoFlags() app := cli.NewApp() app.Flags = flags ... err := app.Run(os.Args)
The ArangoFlags function can be used in a command-line application to easily configure ArangoDB connection details.
func ArangodbFlags ¶
ArangodbFlags returns the cli based flag slice that includes command line arguments for connecting to an arangodb instance.
Types ¶
This section is empty.