| 1 | package rethinkdbscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ |
| 2 | |
| 3 | import ( |
| 4 | "reflectscip-go gomod github.com/golang/go/src go1.14 reflect/" |
| 5 | |
| 6 | "github.com/sirupsen/logrusscip-go gomod github.com/sirupsen/logrus v1.0.6 `github.com/sirupsen/logrus`/" |
| 7 | |
| 8 | "gopkg.in/rethinkdb/rethinkdb-go.v6/encodingscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/encoding`/" |
| 9 | "io/ioutilscip-go gomod github.com/golang/go/src go1.14 `io/ioutil`/" |
| 10 | ) |
| 11 | |
| 12 | var ( |
| 13 | // Log is logger for debug purpuses. |
| 14 | // deprecated |
| 15 | Logscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Log. *logrusscip-go gomod github.com/sirupsen/logrus v1.0.6 `github.com/sirupsen/logrus`/.Loggerscip-go gomod github.com/sirupsen/logrus v1.0.6 `github.com/sirupsen/logrus`/Logger# |
| 16 | ) |
| 17 | |
| 18 | const ( |
| 19 | SystemDatabasescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/SystemDatabase. = "rethinkdb" |
| 20 | |
| 21 | TableConfigSystemTablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/TableConfigSystemTable. = "table_config" |
| 22 | ServerConfigSystemTablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ServerConfigSystemTable. = "server_config" |
| 23 | DBConfigSystemTablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/DBConfigSystemTable. = "db_config" |
| 24 | ClusterConfigSystemTablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ClusterConfigSystemTable. = "cluster_config" |
| 25 | TableStatusSystemTablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/TableStatusSystemTable. = "table_status" |
| 26 | ServerStatusSystemTablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ServerStatusSystemTable. = "server_status" |
| 27 | CurrentIssuesSystemTablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/CurrentIssuesSystemTable. = "current_issues" |
| 28 | UsersSystemTablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/UsersSystemTable. = "users" |
| 29 | PermissionsSystemTablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/PermissionsSystemTable. = "permissions" |
| 30 | JobsSystemTablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/JobsSystemTable. = "jobs" |
| 31 | StatsSystemTablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/StatsSystemTable. = "stats" |
| 32 | LogsSystemTablescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/LogsSystemTable. = "logs" |
| 33 | ) |
| 34 | |
| 35 | func initscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/init().() { |
| 36 | // Set encoding package |
| 37 | encodingscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/encoding`/.IgnoreTypescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/encoding`/IgnoreType().(reflectscip-go gomod github.com/golang/go/src go1.14 reflect/.TypeOfscip-go gomod github.com/golang/go/src go1.14 reflect/TypeOf().(Termscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Term#{})) |
| 38 | |
| 39 | Logscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Log. = logrusscip-go gomod github.com/sirupsen/logrus v1.0.6 `github.com/sirupsen/logrus`/.Newscip-go gomod github.com/sirupsen/logrus v1.0.6 `github.com/sirupsen/logrus`/New().() |
| 40 | Logscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Log..Outscip-go gomod github.com/sirupsen/logrus v1.0.6 `github.com/sirupsen/logrus`/Logger#Out. = ioutilscip-go gomod github.com/golang/go/src go1.14 `io/ioutil`/.Discardscip-go gomod github.com/golang/go/src go1.14 `io/ioutil`/Discard. // By default don't log anything |
| 41 | } |
| 42 | |
| 43 | // SetVerbose allows the driver logging level to be set. If true is passed then |
| 44 | // the log level is set to Debug otherwise it defaults to Info. |
| 45 | func SetVerbosescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/SetVerbose().(verbose bool) { |
| 46 | if verbose { |
| 47 | Logscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Log..Levelscip-go gomod github.com/sirupsen/logrus v1.0.6 `github.com/sirupsen/logrus`/Logger#Level. = logrusscip-go gomod github.com/sirupsen/logrus v1.0.6 `github.com/sirupsen/logrus`/.DebugLevelscip-go gomod github.com/sirupsen/logrus v1.0.6 `github.com/sirupsen/logrus`/DebugLevel. |
| 48 | return |
| 49 | } |
| 50 | |
| 51 | Logscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Log..Levelscip-go gomod github.com/sirupsen/logrus v1.0.6 `github.com/sirupsen/logrus`/Logger#Level. = logrusscip-go gomod github.com/sirupsen/logrus v1.0.6 `github.com/sirupsen/logrus`/.InfoLevelscip-go gomod github.com/sirupsen/logrus v1.0.6 `github.com/sirupsen/logrus`/InfoLevel. |
| 52 | } |
| 53 | |
| 54 | // SetTags allows you to override the tags used when decoding or encoding |
| 55 | // structs. The driver will check for the tags in the same order that they were |
| 56 | // passed into this function. If no parameters are passed then the driver will |
| 57 | // default to checking for the rethinkdb tag (the rethinkdb tag is always included) |
| 58 | // Old-style gorethink tag is also supported but deprecated |
| 59 | func SetTagsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/SetTags().(tags ...string) { |
| 60 | encodingscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/encoding`/.Tagsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/encoding`/Tags. = append(tags, encodingscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/encoding`/.TagNamescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/encoding`/TagName., encodingscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/encoding`/.OldTagNamescip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6/encoding`/OldTagName.) |
| 61 | } |