Versions in this module Expand all Collapse all v2 v2.0.5 Mar 9, 2021 Changes in this version + func GetErrorNum(err error) (errorNum int, ok bool) + func GetStatusCode(err error) (code int, ok bool) + func HasErrorNum(err error, errorNum ...int) bool + func HasStatusCode(err error, statusCode ...int) bool + func IsErrForbidden(err error) bool + func IsErrInvalidRequest(err error) bool + func IsErrNotFound(err error) bool + func IsErrUnauthorized(err error) bool + func IsErrUnique(err error) bool + type Database struct + func NewDatabase(opts ...Option) *Database + func (db *Database) Connect(ctx context.Context) error + func (db *Database) Options(opts ...Option) + func (db *Database) Run(ctx context.Context, v interface{}, q Runnable) error + func (db *Database) Send(ctx context.Context, q Runnable) (Response, error) + type Document struct + ID string + Key string + Rev string + type Edge struct + From string + To string + type LogVerbosity int + const LogDebug + const LogNone + const LogSummary + type Logger interface + Print func(v ...interface{}) + type Option func(db *Database) + func OptBasicAuth(username, password string) Option + func OptDatabaseName(dbName string) Option + func OptEndpoint(endpoint string) Option + func OptHTTPClient(cli *http.Client) Option + func OptJWTAuth(username, password string) Option + func OptLogging(logger Logger, verbosity LogVerbosity) Option + type Response interface + Cursor func() string + HasMore func() bool + Raw func() json.RawMessage + RawResult func() json.RawMessage + StatusCode func() int + Unmarshal func(v interface{}) error + UnmarshalResult func(v interface{}) error + type Runnable interface + Generate func() []byte + Method func() string + Path func() string Other modules containing this package github.com/asmaloney/arangolite