MCPcopy Create free account

hub / github.com/TobiEiss/aranGoDriver / functions

Functions96 in github.com/TobiEiss/aranGoDriver

↓ 23 callersMethodQuery
Query with auth
Session.go:46
↓ 10 callersMethodListDBs
databases
Session.go:18
↓ 7 callersFunctionassertTrue
(test bool)
aranGoDriver_test.go:171
↓ 7 callersFunctionfailOnError
(err error, msg string)
aranGoDriver_test.go:177
↓ 4 callersMethodDropDB
(dbname string)
Session.go:20
↓ 3 callersMethodCreateCollection
(dbname string, collectionName string)
Session.go:23
↓ 3 callersMethodCreateDB
(dbname string)
Session.go:19
↓ 2 callersMethodConnect
(username string, password string)
Session.go:8
↓ 2 callersMethodCreateDocument
(dbname string, collectionName string, object interface{})
Session.go:39
↓ 2 callersMethodGetCollectionByID
GetCollectionByID search collection by id returns: -> result as map -> error if applicable
Session.go:38
↓ 2 callersMethodUpdateDocument
UpdateDocument updates an Object
aranGoSession.go:246
↓ 2 callersFunctionfindByParam
(session *TestSession, dbname string, keyName string, valueV string)
testSession.go:35
↓ 2 callersFunctionobjectToMap
(object interface{})
testSession.go:48
↓ 1 callersMethodAddAqlFake
(aql string, fake AqlFake)
testSession.go:191
↓ 1 callersMethodAqlQuery
AqlQuery send a query
aranGoSession.go:213
↓ 1 callersMethodAqlQuery
AqlQuery returns: result as array-map, error
Session.go:43
↓ 1 callersMethodCreateCollection
CreateCollection creates a collection
aranGoSession.go:135
↓ 1 callersMethodCreateDocument
CreateDocument creates a document in a collection in a database
aranGoSession.go:206
↓ 1 callersMethodCreateEdgeCollection
(dbname string, edgeName string)
Session.go:27
↓ 1 callersMethodCreateGraph
(dbname string, graphName string, edgeDefinitions []models.EdgeDefinition)
Session.go:30
↓ 1 callersMethodDB
DB returns a database-model.
framed/FramedConnection.go:15
↓ 1 callersMethodDropCollection
(dbname string, collectionName string)
Session.go:24
↓ 1 callersMethodDropGraph
(dbname string, graphName string)
Session.go:32
↓ 1 callersFunctionFind
Find a element in slice index := session.database.Find(func(index int, value string) bool { return value == term })
sliceTricks/stringSlice.go:7
↓ 1 callersMethodHTTPDo
HTTPDo function runs the HTTP request and processes its response in a new goroutine.
aranGoConnection/aranGoConnection.go:30
↓ 1 callersMethodListCollections
(dbname string)
Session.go:22
↓ 1 callersMethodListCollections
ListCollections returns an array of all collections in catabase
framed/Database.go:17
↓ 1 callersMethodListDBs
()
testSession.go:90
↓ 1 callersMethodListGraphs
(dbname string)
Session.go:31
↓ 1 callersMethodMigrate
(migration ...Migration)
Session.go:48
↓ 1 callersMethodSetJwtKey
SetJwtKey sets the JWT-Token
aranGoConnection/aranGoConnection.go:25
↓ 1 callersMethodTruncateCollection
(dbname string, collectionName string)
Session.go:25
↓ 1 callersMethodUpdateDocument
(dbname string, id string, object interface{})
Session.go:40
↓ 1 callersMethodVersion
()
Session.go:9
↓ 1 callersFunctionwaitForConnection
(ctx context.Context, connectFunc func() error)
aranGoDriverDocker/testSessionDocker.go:60
MethodAqlQuery
(typ interface{}, dbname string, query string, count bool, batchSize int)
testSession.go:184
MethodConnect
Connect to arangoDB
aranGoSession.go:35
MethodConnect
Connect test
testSession.go:60
FunctionContains
Contains check if a string is contained in a string slice
sliceTricks/stringSlice.go:17
MethodCreateCollection
(dbname string, collectionName string)
testSession.go:120
MethodCreateCollection
CreateCollection creates a new collection. After that search for the right collection via ListCollections().
framed/Database.go:41
MethodCreateDB
CreateDB creates a new db
aranGoSession.go:119
MethodCreateDB
CreateDB test create a db
testSession.go:106
MethodCreateDB
CreateDB creates a new database
framed/FramedConnection.go:20
MethodCreateDocument
(dbname string, collectionName string, object interface{})
testSession.go:164
MethodCreateEdgeCollection
CreateEdgeCollection creates a edge to DB
aranGoSession.go:144
MethodCreateEdgeCollection
(dbname string, edgeName string)
testSession.go:130
MethodCreateEdgeDocument
(dbname string, edgeName string, from string, to string)
aranGoSession.go:175
MethodCreateEdgeDocument
(dbname string, edgeName string, from string, to string)
Session.go:28
MethodCreateEdgeDocument
(dbname string, edgeName string, from string, to string)
testSession.go:134
MethodCreateGraph
(dbname string, graphName string, edgeDefinitions []models.EdgeDefinition)
aranGoSession.go:153
MethodCreateGraph
(dbname string, graphName string, edgeDefinitions []models.EdgeDefinition)
testSession.go:138
MethodCreateUser
Add a new database user
aranGoSession.go:61
MethodCreateUser
users
Session.go:12
MethodCreateUser
(username string, password string)
testSession.go:74
MethodDropCollection
DropCollection deletes a collection
aranGoSession.go:192
MethodDropCollection
(dbname string, collectionName string)
testSession.go:150
MethodDropDB
DropDB drop a database
aranGoSession.go:128
MethodDropDB
(dbname string)
testSession.go:115
MethodDropDB
DropDB drops the database
framed/FramedConnection.go:26
MethodDropGraph
(dbname string, graphName string)
aranGoSession.go:169
MethodDropGraph
(dbname string, graphName string)
testSession.go:146
MethodDropUser
Delete an existing user
aranGoSession.go:74
MethodDropUser
(username string)
Session.go:13
MethodDropUser
(username string)
testSession.go:78
MethodGetCollectionByID
GetCollectionByID search collection by id
aranGoSession.go:238
MethodGetCollectionByID
(dbname string, id string)
testSession.go:196
MethodGrantCollection
Set the accesslevel for an user on a collection Possible values for level are: rw, ro and none
aranGoSession.go:97
MethodGrantCollection
(dbname string, collectionName string, username string, level string)
Session.go:15
MethodGrantCollection
(dbname string, collectionName string, username string, level string)
testSession.go:86
MethodGrantDB
Set the accesslevel for an user on a database Possible values for level are: rw, ro and none
aranGoSession.go:84
MethodGrantDB
(dbname string, username string, level string)
Session.go:14
MethodGrantDB
(dbname string, username string, level string)
testSession.go:82
MethodListCollections
(dbname string)
aranGoSession.go:184
MethodListCollections
(dbname string)
testSession.go:100
MethodListDBs
ListDBs lists all db's
aranGoSession.go:109
MethodListGraphs
(dbname string)
aranGoSession.go:163
MethodListGraphs
(dbname string)
testSession.go:142
MethodMigrate
Migrate migrates a migration
aranGoSession.go:253
MethodMigrate
(migrations ...Migration)
testSession.go:213
FunctionNewAranGoConnection
NewAranGoConnection creates a new instance of a AranGoDriver-Connection. Need a host (e.g. "http://localhost:8529/")
aranGoConnection/aranGoConnection.go:20
FunctionNewAranGoDriverSession
NewAranGoDriverSession creates a new instance of a AranGoDriver-Session. Need a host (e.g. "http://localhost:8529/")
aranGoSession.go:30
FunctionNewFramedConnection
NewFramedConnection creates a new framedConnection which wraps a session.
framed/FramedConnection.go:10
FunctionNewTestSession
()
testSession.go:28
MethodQuery
(typ interface{}, methode string, route string, body interface{})
aranGoSession.go:49
MethodQuery
(typ interface{}, methode string, route string, body interface{})
testSession.go:65
MethodQuery
Query queries the "route" with the http-"methode". The typ ist the pointer for your result
aranGoConnection/aranGoConnection.go:51
FunctionSetupDockerTest
* SetupDockerTest setups a arangoDB-docker-image, connects a session and return this Session. Also retuns a purge-function to defer. password := "pas
aranGoDriverDocker/testSessionDocker.go:24
FunctionTestArangoDBDocker
(t *testing.T)
aranGoDriverDocker/testSessionDocker_test.go:10
FunctionTestArangoDBDockerVersion
(t *testing.T)
aranGoDriverDocker/testSessionDocker_test.go:22
FunctionTestMain
(t *testing.T)
aranGoDriver_test.go:22
MethodTruncateCollection
TruncateCollection truncate collections
aranGoSession.go:199
MethodTruncateCollection
(dbname string, collectionName string)
testSession.go:159
MethodUpdateDocument
(dbname string, id string, object interface{})
testSession.go:204
MethodVersion
Version returns current version
aranGoSession.go:54
MethodVersion
Version returns hard-codeed the testDB as Version
testSession.go:70