Documentation
¶
Overview ¶
Package ravendb implements a driver for RavenDB NOSQL document database.
For more documentation see https://github.com/ravendb/ravendb-go-client/blob/master/readme.md
Index ¶
- Constants
- Variables
- func FieldsFor(s interface{}) []string
- func GetCollectionNameDefault(entityOrType interface{}) string
- func GetWrappedError(err error) error
- func IsPlural(word string) bool
- func IsSingular(word string) bool
- func NewHttpPost(uri string, data []byte) (*http.Request, error)
- func ParseTime(s string) (time.Time, error)
- func Pluralize(word string, count int, inclusive bool) string
- func RoundToServerTime(t time.Time) time.Time
- func ToPlural(word string) string
- func ToSingular(word string) string
- type AdvancedSessionExtensionBase
- type AdvancedSessionOperations
- func (o *AdvancedSessionOperations) AddAfterSaveChangesListener(handler func(*AfterSaveChangesEventArgs)) int
- func (o *AdvancedSessionOperations) AddBeforeDeleteListener(handler func(*BeforeDeleteEventArgs)) int
- func (o *AdvancedSessionOperations) AddBeforeQueryListener(handler func(*BeforeQueryEventArgs)) int
- func (o *AdvancedSessionOperations) AddBeforeStoreListener(handler func(*BeforeStoreEventArgs)) int
- func (o *AdvancedSessionOperations) Attachments() *AttachmentsSessionOperations
- func (o *AdvancedSessionOperations) Clear()
- func (o *AdvancedSessionOperations) Defer(commands ...ICommandData)
- func (o *AdvancedSessionOperations) Eagerly() *EagerSessionOperations
- func (o *AdvancedSessionOperations) Evict(entity interface{}) error
- func (o *AdvancedSessionOperations) Exists(id string) (bool, error)
- func (o *AdvancedSessionOperations) GetChangeVectorFor(instance interface{}) (*string, error)
- func (o *AdvancedSessionOperations) GetCurrentSessionNode() (*ServerNode, error)
- func (o *AdvancedSessionOperations) GetDocumentID(instance interface{}) string
- func (o *AdvancedSessionOperations) GetDocumentStore() *DocumentStore
- func (o *AdvancedSessionOperations) GetLastModifiedFor(instance interface{}) (*time.Time, error)
- func (o *AdvancedSessionOperations) GetMaxNumberOfRequestsPerSession() int
- func (o *AdvancedSessionOperations) GetMetadataFor(instance interface{}) (*MetadataAsDictionary, error)
- func (o *AdvancedSessionOperations) GetNumberOfRequests() int
- func (o *AdvancedSessionOperations) GetRequestExecutor() *RequestExecutor
- func (o *AdvancedSessionOperations) HasChanged(entity interface{}) (bool, error)
- func (o *AdvancedSessionOperations) HasChanges() bool
- func (o *AdvancedSessionOperations) IgnoreChangesFor(entity interface{}) error
- func (o *AdvancedSessionOperations) Increment(entity interface{}, path string, valueToAdd interface{}) error
- func (o *AdvancedSessionOperations) IncrementByID(id string, path string, valueToAdd interface{}) error
- func (o *AdvancedSessionOperations) IsLoaded(id string) bool
- func (o *AdvancedSessionOperations) Lazily() *LazySessionOperations
- func (o *AdvancedSessionOperations) LoadIntoStream(ids []string, output io.Writer) error
- func (o *AdvancedSessionOperations) LoadStartingWith(results interface{}, args *StartsWithArgs) error
- func (o *AdvancedSessionOperations) LoadStartingWithIntoStream(output io.Writer, args *StartsWithArgs) error
- func (o *AdvancedSessionOperations) Patch(entity interface{}, path string, value interface{}) error
- func (o *AdvancedSessionOperations) PatchArray(entity interface{}, pathToArray string, arrayAdder func(*JavaScriptArray)) error
- func (o *AdvancedSessionOperations) PatchArrayByID(id string, pathToArray string, arrayAdder func(*JavaScriptArray)) error
- func (o *AdvancedSessionOperations) PatchByID(id string, path string, value interface{}) error
- func (o *AdvancedSessionOperations) Query(opts *DocumentQueryOptions) *DocumentQuery
- func (o *AdvancedSessionOperations) QueryCollection(collectionName string) *DocumentQuery
- func (o *AdvancedSessionOperations) QueryCollectionForType(typ reflect.Type) *DocumentQuery
- func (o *AdvancedSessionOperations) QueryIndex(indexName string) *DocumentQuery
- func (o *AdvancedSessionOperations) RawQuery(rawQuery string) *RawDocumentQuery
- func (o *AdvancedSessionOperations) Refresh(entity interface{}) error
- func (o *AdvancedSessionOperations) RemoveAfterSaveChangesListener(handlerID int)
- func (o *AdvancedSessionOperations) RemoveBeforeDeleteListener(handlerID int)
- func (o *AdvancedSessionOperations) RemoveBeforeQueryListener(handlerID int)
- func (o *AdvancedSessionOperations) RemoveBeforeStoreListener(handlerID int)
- func (o *AdvancedSessionOperations) Revisions() *RevisionsSessionOperations
- func (o *AdvancedSessionOperations) SetMaxNumberOfRequestsPerSession(n int)
- func (o *AdvancedSessionOperations) Stream(args *StartsWithArgs) (*StreamIterator, error)
- func (o *AdvancedSessionOperations) StreamQuery(query *DocumentQuery, streamQueryStats *StreamQueryStatistics) (*StreamIterator, error)
- func (o *AdvancedSessionOperations) StreamQueryInto(query *DocumentQuery, output io.Writer) error
- func (o *AdvancedSessionOperations) StreamRawQuery(query *RawDocumentQuery, streamQueryStats *StreamQueryStatistics) (*StreamIterator, error)
- func (o *AdvancedSessionOperations) StreamRawQueryInto(query *RawDocumentQuery, output io.Writer) error
- func (o *AdvancedSessionOperations) WaitForIndexesAfterSaveChanges(options func(*IndexesWaitOptsBuilder))
- func (o *AdvancedSessionOperations) WaitForReplicationAfterSaveChanges(options func(*ReplicationWaitOptsBuilder))
- func (o *AdvancedSessionOperations) WhatChanged() (map[string][]*DocumentsChanges, error)
- type AfterSaveChangesEventArgs
- type AggregationDocumentQuery
- type AggressiveCacheOptions
- type AllTopologyNodesDownError
- type AttachmentDetails
- type AttachmentName
- type AttachmentResult
- type AttachmentType
- type AttachmentsSessionOperations
- type AuthorizationError
- type BadRequestError
- type BadResponseError
- type BatchCommand
- type BatchOperation
- type BatchOptions
- type BeforeDeleteEventArgs
- type BeforeQueryEventArgs
- type BeforeStoreEventArgs
- type BulkInsertAbortedError
- type BulkInsertCommand
- type BulkInsertOperation
- func (o *BulkInsertOperation) Abort() error
- func (o *BulkInsertOperation) Close() error
- func (o *BulkInsertOperation) GetID(entity interface{}) (string, error)
- func (o *BulkInsertOperation) Store(entity interface{}, metadata *MetadataAsDictionary) (string, error)
- func (o *BulkInsertOperation) StoreWithID(entity interface{}, id string, metadata *MetadataAsDictionary) error
- func (o *BulkInsertOperation) WaitForID() error
- type BulkInsertProtocolViolationError
- type CancelFunc
- type CancellationError
- type CertificateNameMismatchError
- type ChangeProcessingError
- type ChangeType
- type CircleCriteria
- type ClientConfiguration
- type ClientVersionMismatchError
- type ClusterRequestExecutor
- type ClusterTopology
- type CmpXchg
- type CollectionStatistics
- type CollectionStats
- type CommandData
- type CommandExecutionError
- type CommandType
- type CompactDatabaseCommand
- type CompactDatabaseOperation
- type CompactSettings
- type CompareExchangeResult
- type CompareExchangeValue
- type CompilationError
- type ConcurrencyCheckMode
- type ConcurrencyError
- type ConfigureRevisionsCommand
- type ConfigureRevisionsOperation
- type ConfigureRevisionsOperationResult
- type Conflict
- type ConflictError
- type ConflictSolver
- type ConnectionString
- type ConnectionStringType
- type CreateDatabaseCommand
- type CreateDatabaseOperation
- type CreateSampleDataCommand
- type CreateSampleDataOperation
- type CreateSubscriptionCommand
- type CreateSubscriptionResult
- type CurrentIndexAndNode
- type DatabaseChanges
- func (c *DatabaseChanges) AddConnectionStatusChanged(handler func()) int
- func (c *DatabaseChanges) AddOnError(handler func(error)) int
- func (c *DatabaseChanges) Close()
- func (c *DatabaseChanges) EnsureConnectedNow() error
- func (c *DatabaseChanges) ForAllDocuments(cb func(*DocumentChange)) (CancelFunc, error)
- func (c *DatabaseChanges) ForAllIndexes(cb func(*IndexChange)) (CancelFunc, error)
- func (c *DatabaseChanges) ForAllOperations(cb func(change *OperationStatusChange)) (CancelFunc, error)
- func (c *DatabaseChanges) ForDocument(docID string, cb func(*DocumentChange)) (CancelFunc, error)
- func (c *DatabaseChanges) ForDocumentsInCollection(collectionName string, cb func(*DocumentChange)) (CancelFunc, error)
- func (c *DatabaseChanges) ForDocumentsInCollectionOfType(clazz reflect.Type, cb func(*DocumentChange)) (CancelFunc, error)
- func (c *DatabaseChanges) ForDocumentsStartingWith(docIDPrefix string, cb func(*DocumentChange)) (CancelFunc, error)
- func (c *DatabaseChanges) ForIndex(indexName string, cb func(*IndexChange)) (CancelFunc, error)
- func (c *DatabaseChanges) ForOperationID(operationID int64, cb func(*OperationStatusChange)) (CancelFunc, error)
- func (c *DatabaseChanges) RemoveConnectionStatusChanged(handlerID int)
- func (c *DatabaseChanges) RemoveOnError(handlerID int)
- type DatabaseConcurrentLoadTimeoutError
- type DatabaseDisabledError
- type DatabaseDoesNotExistError
- type DatabaseLoadFailureError
- type DatabaseLoadTimeoutError
- type DatabaseNotRelevantError
- type DatabasePromotionStatus
- type DatabasePutResult
- type DatabaseRecord
- type DatabaseRecordWithEtag
- type DatabaseStatistics
- type DatabaseTopology
- type DeleteAttachmentCommand
- type DeleteAttachmentCommandData
- type DeleteAttachmentOperation
- type DeleteByIndexCommand
- type DeleteByQueryOperation
- type DeleteCommandData
- type DeleteCompareExchangeValueOperation
- type DeleteDatabaseCommand
- type DeleteDatabaseParameters
- type DeleteDatabaseResult
- type DeleteDatabasesOperation
- func NewDeleteDatabasesOperation(databaseName string, hardDelete bool) *DeleteDatabasesOperation
- func NewDeleteDatabasesOperation2(databaseName string, hardDelete bool, fromNode string, ...) *DeleteDatabasesOperation
- func NewDeleteDatabasesOperationWithParameters(parameters *DeleteDatabaseParameters) *DeleteDatabasesOperation
- type DeleteDocumentCommand
- type DeleteIndexCommand
- type DeleteIndexOperation
- type DeleteSubscriptionCommand
- type DisableIndexCommand
- type DisableIndexOperation
- type DocumentChange
- type DocumentChangeTypes
- type DocumentConflictError
- type DocumentConventions
- func (c *DocumentConventions) Clone() *DocumentConventions
- func (c *DocumentConventions) Freeze()
- func (c *DocumentConventions) GenerateDocumentID(databaseName string, entity interface{}) (string, error)
- func (c *DocumentConventions) GetDocumentIDGenerator() DocumentIDGeneratorFunc
- func (c *DocumentConventions) GetIdentityPartsSeparator() string
- func (c *DocumentConventions) GetIdentityProperty(clazz reflect.Type) string
- func (c *DocumentConventions) GetTransformClassCollectionNameToDocumentIdPrefix() func(string) string
- func (c *DocumentConventions) IsDisableTopologyUpdates() bool
- func (c *DocumentConventions) SetDisableTopologyUpdates(disable bool)
- func (c *DocumentConventions) SetDocumentIDGenerator(documentIDGenerator DocumentIDGeneratorFunc)
- func (c *DocumentConventions) TryConvertValueForQuery(fieldName string, value interface{}, forRange bool, stringValue *string) bool
- func (c *DocumentConventions) UpdateFrom(configuration *ClientConfiguration)
- type DocumentDoesNotExistError
- type DocumentIDGeneratorFunc
- type DocumentQuery
- func (q *DocumentQuery) AddBeforeQueryExecutedListener(action func(*IndexQuery)) int
- func (q *DocumentQuery) AddOrder(fieldName string, descending bool) *DocumentQuery
- func (q *DocumentQuery) AddOrderWithOrdering(fieldName string, descending bool, ordering OrderingType) *DocumentQuery
- func (q *DocumentQuery) AddParameter(name string, value interface{}) *DocumentQuery
- func (q *DocumentQuery) AggregateByFacet(facet FacetBase) *AggregationDocumentQuery
- func (q *DocumentQuery) AggregateByFacets(facets ...*Facet) *AggregationDocumentQuery
- func (q *DocumentQuery) AggregateUsing(facetSetupDocumentID string) *AggregationDocumentQuery
- func (q *DocumentQuery) AndAlso() *DocumentQuery
- func (q DocumentQuery) Any() (bool, error)
- func (q *DocumentQuery) Boost(boost float64) *DocumentQuery
- func (q *DocumentQuery) CloseSubclause() *DocumentQuery
- func (q *DocumentQuery) ContainsAll(fieldName string, values []interface{}) *DocumentQuery
- func (q *DocumentQuery) ContainsAny(fieldName string, values []interface{}) *DocumentQuery
- func (q DocumentQuery) Count() (int, error)
- func (q DocumentQuery) CountLazily() (*Lazy, error)
- func (q *DocumentQuery) Distinct() *DocumentQuery
- func (q DocumentQuery) Err() error
- func (q *DocumentQuery) Exact() *DocumentQuery
- func (q DocumentQuery) First(result interface{}) error
- func (q *DocumentQuery) Fuzzy(fuzzy float64) *DocumentQuery
- func (q DocumentQuery) GetIndexQuery() (*IndexQuery, error)
- func (q DocumentQuery) GetResults(results interface{}) error
- func (q *DocumentQuery) GroupBy(fieldName string, fieldNames ...string) *GroupByDocumentQuery
- func (q *DocumentQuery) GroupByFieldWithMethod(field *GroupBy, fields ...*GroupBy) *GroupByDocumentQuery
- func (q *DocumentQuery) Include(path string) *DocumentQuery
- func (q *DocumentQuery) Intersect() *DocumentQuery
- func (q DocumentQuery) Lazily() (*Lazy, error)
- func (q *DocumentQuery) MoreLikeThis(moreLikeThis MoreLikeThisBase) *DocumentQuery
- func (q *DocumentQuery) MoreLikeThisWithBuilder(builder func(IMoreLikeThisBuilderForDocumentQuery)) *DocumentQuery
- func (q *DocumentQuery) NoCaching() *DocumentQuery
- func (q *DocumentQuery) NoTracking() *DocumentQuery
- func (q *DocumentQuery) Not() *DocumentQuery
- func (q *DocumentQuery) OpenSubclause() *DocumentQuery
- func (q *DocumentQuery) OrElse() *DocumentQuery
- func (q *DocumentQuery) OrderBy(field string) *DocumentQuery
- func (q *DocumentQuery) OrderByDescending(field string) *DocumentQuery
- func (q *DocumentQuery) OrderByDescendingWithOrdering(field string, ordering OrderingType) *DocumentQuery
- func (q *DocumentQuery) OrderByDistanceDescendingLatLong(fieldName string, latitude float64, longitude float64) *DocumentQuery
- func (q *DocumentQuery) OrderByDistanceDescendingLatLongDynamic(field DynamicSpatialField, latitude float64, longitude float64) *DocumentQuery
- func (q *DocumentQuery) OrderByDistanceDescendingWkt(fieldName string, shapeWkt string) *DocumentQuery
- func (q *DocumentQuery) OrderByDistanceDescendingWktDynamic(field DynamicSpatialField, shapeWkt string) *DocumentQuery
- func (q *DocumentQuery) OrderByDistanceLatLong(fieldName string, latitude float64, longitude float64) *DocumentQuery
- func (q *DocumentQuery) OrderByDistanceLatLongDynamic(field DynamicSpatialField, latitude float64, longitude float64) *DocumentQuery
- func (q *DocumentQuery) OrderByDistanceWkt(fieldName string, shapeWkt string) *DocumentQuery
- func (q *DocumentQuery) OrderByDistanceWktDynamic(field DynamicSpatialField, shapeWkt string) *DocumentQuery
- func (q *DocumentQuery) OrderByScore() *DocumentQuery
- func (q *DocumentQuery) OrderByScoreDescending() *DocumentQuery
- func (q *DocumentQuery) OrderByWithOrdering(field string, ordering OrderingType) *DocumentQuery
- func (q *DocumentQuery) Proximity(proximity int) *DocumentQuery
- func (q *DocumentQuery) RandomOrdering() *DocumentQuery
- func (q *DocumentQuery) RandomOrderingWithSeed(seed string) *DocumentQuery
- func (q *DocumentQuery) RelatesToShape(fieldName string, shapeWkt string, relation SpatialRelation) *DocumentQuery
- func (q *DocumentQuery) RelatesToShapeWithError(fieldName string, shapeWkt string, relation SpatialRelation, ...) *DocumentQuery
- func (q *DocumentQuery) RemoveBeforeQueryExecutedListener(idx int) *DocumentQuery
- func (q *DocumentQuery) Search(fieldName string, searchTerms string) *DocumentQuery
- func (q *DocumentQuery) SearchWithOperator(fieldName string, searchTerms string, operator SearchOperator) *DocumentQuery
- func (q *DocumentQuery) SelectFields(projectionType reflect.Type, fieldsIn ...string) *DocumentQuery
- func (q *DocumentQuery) SelectFieldsWithQueryData(projectionType reflect.Type, queryData *QueryData) *DocumentQuery
- func (q DocumentQuery) Single(result interface{}) error
- func (q *DocumentQuery) Skip(count int) *DocumentQuery
- func (q *DocumentQuery) Spatial2(field DynamicSpatialField, ...) *DocumentQuery
- func (q *DocumentQuery) Spatial3(fieldName string, clause func(*SpatialCriteriaFactory) SpatialCriteria) *DocumentQuery
- func (q *DocumentQuery) Statistics(stats **QueryStatistics) *DocumentQuery
- func (q *DocumentQuery) SuggestUsing(suggestion SuggestionBase) *SuggestionDocumentQuery
- func (q *DocumentQuery) Take(count int) *DocumentQuery
- func (q *DocumentQuery) UsingDefaultOperator(queryOperator QueryOperator) *DocumentQuery
- func (q *DocumentQuery) WaitForNonStaleResults(waitTimeout time.Duration) *DocumentQuery
- func (q *DocumentQuery) Where(fieldName string, op string, value interface{}) *DocumentQuery
- func (q *DocumentQuery) WhereBetween(fieldName string, start interface{}, end interface{}) *DocumentQuery
- func (q *DocumentQuery) WhereEndsWith(fieldName string, value interface{}) *DocumentQuery
- func (q *DocumentQuery) WhereEquals(fieldName string, value interface{}) *DocumentQuery
- func (q *DocumentQuery) WhereEqualsWithMethodCall(fieldName string, method MethodCall) *DocumentQuery
- func (q *DocumentQuery) WhereEqualsWithParams(whereParams *whereParams) *DocumentQuery
- func (q *DocumentQuery) WhereExists(fieldName string) *DocumentQuery
- func (q *DocumentQuery) WhereGreaterThan(fieldName string, value interface{}) *DocumentQuery
- func (q *DocumentQuery) WhereGreaterThanOrEqual(fieldName string, value interface{}) *DocumentQuery
- func (q *DocumentQuery) WhereIn(fieldName string, values []interface{}) *DocumentQuery
- func (q *DocumentQuery) WhereLessThan(fieldName string, value interface{}) *DocumentQuery
- func (q *DocumentQuery) WhereLessThanOrEqual(fieldName string, value interface{}) *DocumentQuery
- func (q *DocumentQuery) WhereLucene(fieldName string, whereClause string) *DocumentQuery
- func (q *DocumentQuery) WhereNotEquals(fieldName string, value interface{}) *DocumentQuery
- func (q *DocumentQuery) WhereNotEqualsWithMethod(fieldName string, method MethodCall) *DocumentQuery
- func (q *DocumentQuery) WhereNotEqualsWithParams(whereParams *whereParams) *DocumentQuery
- func (q *DocumentQuery) WhereRegex(fieldName string, pattern string) *DocumentQuery
- func (q *DocumentQuery) WhereStartsWith(fieldName string, value interface{}) *DocumentQuery
- func (q *DocumentQuery) WithinRadiusOf(fieldName string, radius float64, latitude float64, longitude float64) *DocumentQuery
- func (q *DocumentQuery) WithinRadiusOfWithUnits(fieldName string, radius float64, latitude float64, longitude float64, ...) *DocumentQuery
- func (q *DocumentQuery) WithinRadiusOfWithUnitsAndError(fieldName string, radius float64, latitude float64, longitude float64, ...) *DocumentQuery
- type DocumentQueryCustomization
- func (d *DocumentQueryCustomization) AddAfterQueryExecutedListener(action func(*QueryResult)) int
- func (d *DocumentQueryCustomization) AddAfterStreamExecutedCallback(action func(map[string]interface{})) int
- func (d *DocumentQueryCustomization) AddBeforeQueryExecutedListener(action func(*IndexQuery)) int
- func (d *DocumentQueryCustomization) GetQueryOperation() *queryOperation
- func (d *DocumentQueryCustomization) NoCaching()
- func (d *DocumentQueryCustomization) NoTracking()
- func (d *DocumentQueryCustomization) RandomOrdering()
- func (d *DocumentQueryCustomization) RandomOrderingWithSeed(seed string)
- func (d *DocumentQueryCustomization) RemoveAfterQueryExecutedListener(idx int)
- func (d *DocumentQueryCustomization) RemoveAfterStreamExecutedCallback(idx int)
- func (d *DocumentQueryCustomization) RemoveBeforeQueryExecutedListener(idx int)
- func (d *DocumentQueryCustomization) WaitForNonStaleResults(waitTimeout time.Duration)
- type DocumentQueryOptions
- type DocumentSession
- func (s *DocumentSession) Advanced() *AdvancedSessionOperations
- func (s *DocumentSession) Attachments() *AttachmentsSessionOperations
- func (s *DocumentSession) Eagerly() *EagerSessionOperations
- func (s *DocumentSession) Exists(id string) (bool, error)
- func (s *DocumentSession) Include(path string) *MultiLoaderWithInclude
- func (s *DocumentSession) Increment(entity interface{}, path string, valueToAdd interface{}) error
- func (s *DocumentSession) IncrementByID(id string, path string, valueToAdd interface{}) error
- func (s *DocumentSession) Lazily() *LazySessionOperations
- func (s *DocumentSession) Load(result interface{}, id string) error
- func (s *DocumentSession) LoadIntoStream(ids []string, output io.Writer) error
- func (s *DocumentSession) LoadMulti(results interface{}, ids []string) error
- func (s *DocumentSession) LoadStartingWith(results interface{}, args *StartsWithArgs) error
- func (s *DocumentSession) LoadStartingWithIntoStream(output io.Writer, args *StartsWithArgs) error
- func (s *DocumentSession) Patch(entity interface{}, path string, value interface{}) error
- func (s *DocumentSession) PatchArray(entity interface{}, pathToArray string, arrayAdder func(*JavaScriptArray)) error
- func (s *DocumentSession) PatchArrayByID(id string, pathToArray string, arrayAdder func(*JavaScriptArray)) error
- func (s *DocumentSession) PatchByID(id string, path string, value interface{}) error
- func (s *DocumentSession) Query(opts *DocumentQueryOptions) *DocumentQuery
- func (s *DocumentSession) QueryCollection(collectionName string) *DocumentQuery
- func (s *DocumentSession) QueryCollectionForType(typ reflect.Type) *DocumentQuery
- func (s *DocumentSession) QueryIndex(indexName string) *DocumentQuery
- func (s *DocumentSession) RawQuery(rawQuery string) *RawDocumentQuery
- func (s *DocumentSession) Refresh(entity interface{}) error
- func (s *DocumentSession) Revisions() *RevisionsSessionOperations
- func (s *DocumentSession) SaveChanges() error
- func (s *DocumentSession) Stream(args *StartsWithArgs) (*StreamIterator, error)
- func (s *DocumentSession) StreamQuery(query *DocumentQuery, streamQueryStats *StreamQueryStatistics) (*StreamIterator, error)
- func (s *DocumentSession) StreamQueryInto(query *DocumentQuery, output io.Writer) error
- func (s *DocumentSession) StreamRawQuery(query *RawDocumentQuery, streamQueryStats *StreamQueryStatistics) (*StreamIterator, error)
- func (s *DocumentSession) StreamRawQueryInto(query *RawDocumentQuery, output io.Writer) error
- type DocumentSessionAttachments
- func (s *DocumentSessionAttachments) Exists(documentID string, name string) (bool, error)
- func (s *DocumentSessionAttachments) Get(entity interface{}, name string) (*AttachmentResult, error)
- func (s *DocumentSessionAttachments) GetByID(documentID string, name string) (*AttachmentResult, error)
- func (s *DocumentSessionAttachments) GetRevision(documentID string, name string, changeVector *string) (*AttachmentResult, error)
- type DocumentSessionAttachmentsBase
- func (s *DocumentSessionAttachmentsBase) Delete(entity interface{}, name string) error
- func (s *DocumentSessionAttachmentsBase) DeleteByID(documentID string, name string) error
- func (s *DocumentSessionAttachmentsBase) GetNames(entity interface{}) ([]*AttachmentName, error)
- func (s *DocumentSessionAttachmentsBase) Store(entity interface{}, name string, stream io.Reader, contentType string) error
- func (s *DocumentSessionAttachmentsBase) StoreByID(documentID string, name string, stream io.Reader, contentType string) error
- type DocumentSessionRevisions
- func (r *DocumentSessionRevisions) Get(result interface{}, changeVector string) error
- func (r *DocumentSessionRevisions) GetFor(results interface{}, id string) error
- func (r *DocumentSessionRevisions) GetForPaged(results interface{}, id string, start int, pageSize int) error
- func (r *DocumentSessionRevisions) GetForStartAt(results interface{}, id string, start int) error
- func (r *DocumentSessionRevisions) GetMetadataFor(id string) ([]*MetadataAsDictionary, error)
- func (r *DocumentSessionRevisions) GetMetadataForPaged(id string, start int, pageSize int) ([]*MetadataAsDictionary, error)
- func (r *DocumentSessionRevisions) GetMetadataForStartAt(id string, start int) ([]*MetadataAsDictionary, error)
- func (r *DocumentSessionRevisions) GetRevisions(results interface{}, changeVectors []string) error
- type DocumentStore
- func (s *DocumentStore) AddAfterCloseListener(fn func(*DocumentStore)) int
- func (s *DocumentStore) AddAfterSaveChangesListener(handler func(*AfterSaveChangesEventArgs)) int
- func (s *DocumentStore) AddBeforeCloseListener(fn func(*DocumentStore)) int
- func (s *DocumentStore) AddBeforeDeleteListener(handler func(*BeforeDeleteEventArgs)) int
- func (s *DocumentStore) AddBeforeQueryListener(handler func(*BeforeQueryEventArgs)) int
- func (s *DocumentStore) AddBeforeStoreListener(handler func(*BeforeStoreEventArgs)) int
- func (s *DocumentStore) AggressivelyCache(database string) (CancelFunc, error)
- func (s *DocumentStore) AggressivelyCacheFor(cacheDuration time.Duration) (CancelFunc, error)
- func (s *DocumentStore) AggressivelyCacheForDatabase(cacheDuration time.Duration, database string) (CancelFunc, error)
- func (s *DocumentStore) BulkInsert(database string) *BulkInsertOperation
- func (s *DocumentStore) Changes(database string) *DatabaseChanges
- func (s *DocumentStore) Close()
- func (s *DocumentStore) DisableAggressiveCaching(databaseName string) *RestoreCaching
- func (s *DocumentStore) ExecuteIndex(task *IndexCreationTask, database string) error
- func (s *DocumentStore) ExecuteIndexes(tasks []*IndexCreationTask, database string) error
- func (s *DocumentStore) GetConventions() *DocumentConventions
- func (s *DocumentStore) GetDatabase() string
- func (s *DocumentStore) GetIdentifier() string
- func (s *DocumentStore) GetLastDatabaseChangesStateError(database string) error
- func (s *DocumentStore) GetRequestExecutor(database string) *RequestExecutor
- func (s *DocumentStore) GetUrls() []string
- func (s *DocumentStore) Initialize() error
- func (s *DocumentStore) Maintenance() *MaintenanceOperationExecutor
- func (s *DocumentStore) OpenSession(database string) (*DocumentSession, error)
- func (s *DocumentStore) OpenSessionWithOptions(options *SessionOptions) (*DocumentSession, error)
- func (s *DocumentStore) Operations() *OperationExecutor
- func (s *DocumentStore) RemoveAfterCloseListener(idx int)
- func (s *DocumentStore) RemoveAfterSaveChangesListener(handlerID int)
- func (s *DocumentStore) RemoveBeforeCloseListener(idx int)
- func (s *DocumentStore) RemoveBeforeDeleteListener(handlerID int)
- func (s *DocumentStore) RemoveBeforeQueryListener(handlerID int)
- func (s *DocumentStore) RemoveBeforeStoreListener(handlerID int)
- func (s *DocumentStore) SetConventions(conventions *DocumentConventions)
- func (s *DocumentStore) SetDatabase(database string)
- func (s *DocumentStore) SetIdentifier(identifier string)
- func (s *DocumentStore) SetUrls(urls []string)
- func (s *DocumentStore) Subscriptions() *DocumentSubscriptions
- type DocumentSubscriptions
- func (s *DocumentSubscriptions) Close() error
- func (s *DocumentSubscriptions) Create(options *SubscriptionCreationOptions, database string) (string, error)
- func (s *DocumentSubscriptions) CreateForRevisions(clazz reflect.Type, options *SubscriptionCreationOptions, database string) (string, error)
- func (s *DocumentSubscriptions) CreateForType(clazz reflect.Type, options *SubscriptionCreationOptions, database string) (string, error)
- func (s *DocumentSubscriptions) Delete(name string, database string) error
- func (s *DocumentSubscriptions) DropConnection(name string, database string) error
- func (s *DocumentSubscriptions) GetSubscriptionState(subscriptionName string, database string) (*SubscriptionState, error)
- func (s *DocumentSubscriptions) GetSubscriptionWorker(clazz reflect.Type, options *SubscriptionWorkerOptions, database string) (*SubscriptionWorker, error)
- func (s *DocumentSubscriptions) GetSubscriptionWorkerForRevisions(clazz reflect.Type, options *SubscriptionWorkerOptions, database string) (*SubscriptionWorker, error)
- func (s *DocumentSubscriptions) GetSubscriptions(start int, take int, database string) ([]*SubscriptionState, error)
- type DocumentsChanges
- type DropSubscriptionConnectionCommand
- type Duration
- type DynamicSpatialField
- type EagerSessionOperations
- type EnableIndexCommand
- type EnableIndexOperation
- type EventHandler
- type ExplainQueryCommand
- type ExplainQueryResult
- type ExternalReplication
- type Facet
- type FacetAggregation
- type FacetBase
- type FacetBaseCommon
- type FacetBuilder
- func (b *FacetBuilder) AllResults() *FacetBuilder
- func (b *FacetBuilder) AverageOn(path string) *FacetBuilder
- func (b *FacetBuilder) ByField(fieldName string) *FacetBuilder
- func (b *FacetBuilder) ByRanges(rng *RangeBuilder, ranges ...*RangeBuilder) *FacetBuilder
- func (b *FacetBuilder) GetFacet() FacetBase
- func (b *FacetBuilder) MaxOn(path string) *FacetBuilder
- func (b *FacetBuilder) MinOn(path string) *FacetBuilder
- func (b *FacetBuilder) SumOn(path string) *FacetBuilder
- func (b *FacetBuilder) WithDisplayName(displayName string) *FacetBuilder
- func (b *FacetBuilder) WithOptions(options *FacetOptions) *FacetBuilder
- type FacetOptions
- type FacetResult
- type FacetSetup
- type FacetTermSortMode
- type FacetValue
- type FieldIndexing
- type FieldStorage
- type FieldTermVector
- type GenericQueryResult
- type GenericRangeFacet
- type GetAttachmentCommand
- type GetAttachmentOperation
- type GetClientConfigurationCommand
- type GetClientConfigurationCommandResult
- type GetClientConfigurationOperation
- type GetCollectionStatisticsCommand
- type GetCollectionStatisticsOperation
- type GetCompareExchangeValueCommand
- type GetCompareExchangeValueOperation
- type GetCompareExchangeValuesCommand
- type GetCompareExchangeValuesOperation
- type GetConflictsCommand
- type GetConflictsResult
- type GetDatabaseNamesCommand
- type GetDatabaseNamesOperation
- type GetDatabaseNamesResult
- type GetDatabaseRecordCommand
- type GetDatabaseRecordOperation
- type GetDatabaseTopologyCommand
- type GetDocumentsCommand
- type GetDocumentsResult
- type GetIdentitiesCommand
- type GetIdentitiesOperation
- type GetIndexCommand
- type GetIndexErrorsCommand
- type GetIndexErrorsOperation
- type GetIndexNamesCommand
- type GetIndexNamesOperation
- type GetIndexOperation
- type GetIndexStatisticsCommand
- type GetIndexStatisticsOperation
- type GetIndexesCommand
- type GetIndexesOperation
- type GetIndexesStatisticsCommand
- type GetIndexesStatisticsOperation
- type GetIndexingStatusCommand
- type GetIndexingStatusOperation
- type GetNextOperationIDCommand
- type GetOperationStateCommand
- type GetOperationStateOperation
- type GetResponse
- type GetRevisionOperation
- func (o *GetRevisionOperation) GetRevision(result interface{}) error
- func (o *GetRevisionOperation) GetRevisionWithDocument(result interface{}, document map[string]interface{}) error
- func (o *GetRevisionOperation) GetRevisions(results interface{}) error
- func (o *GetRevisionOperation) GetRevisionsFor(results interface{}) error
- func (o *GetRevisionOperation) GetRevisionsMetadataFor() []*MetadataAsDictionary
- type GetRevisionsBinEntryCommand
- type GetRevisionsCommand
- type GetServerWideOperationStateCommand
- type GetServerWideOperationStateOperation
- type GetStatisticsCommand
- type GetStatisticsOperation
- type GetSubscriptionStateCommand
- type GetSubscriptionsCommand
- type GetSubscriptionsResult
- type GetTcpInfoCommand
- type GetTermsCommand
- type GetTermsOperation
- type GroupBy
- type GroupByDocumentQuery
- func (q *GroupByDocumentQuery) SelectCount() *DocumentQuery
- func (q *GroupByDocumentQuery) SelectCountWithName(projectedName string) *DocumentQuery
- func (q *GroupByDocumentQuery) SelectKey() *GroupByDocumentQuery
- func (q *GroupByDocumentQuery) SelectKeyWithName(fieldName string) *GroupByDocumentQuery
- func (q *GroupByDocumentQuery) SelectKeyWithNameAndProjectedName(fieldName string, projectedName string) *GroupByDocumentQuery
- func (q *GroupByDocumentQuery) SelectSum(field *GroupByField, fields ...*GroupByField) *DocumentQuery
- type GroupByField
- type GroupByMethod
- type HashCalculator
- type HeadAttachmentCommand
- type HeadDocumentCommand
- func (c *HeadDocumentCommand) CreateRequest(node *ServerNode) (*http.Request, error)
- func (c *HeadDocumentCommand) Exists() bool
- func (c *HeadDocumentCommand) ProcessResponse(cache *httpCache, response *http.Response, url string) (responseDisposeHandling, error)
- func (c *HeadDocumentCommand) SetResponse(response []byte, fromCache bool) error
- type HiLoIDGenerator
- type HiLoResult
- type HiLoReturnCommand
- type ICommandData
- type IContent
- type ILazyOperation
- type IMaintenanceOperation
- type IMoreLikeThisBuilderBase
- type IMoreLikeThisBuilderForDocumentQuery
- type IMoreLikeThisOperations
- type IOperation
- type IRaftCommand
- type IServerOperation
- type IVoidMaintenanceOperation
- type IllegalArgumentError
- type IllegalStateError
- type InMemoryDocumentSessionOperations
- func (s *InMemoryDocumentSessionOperations) AddAfterSaveChangesListener(handler func(*AfterSaveChangesEventArgs)) int
- func (s *InMemoryDocumentSessionOperations) AddBeforeDeleteListener(handler func(*BeforeDeleteEventArgs)) int
- func (s *InMemoryDocumentSessionOperations) AddBeforeQueryListener(handler func(*BeforeQueryEventArgs)) int
- func (s *InMemoryDocumentSessionOperations) AddBeforeStoreListener(handler func(*BeforeStoreEventArgs)) int
- func (s *InMemoryDocumentSessionOperations) Clear()
- func (s *InMemoryDocumentSessionOperations) Close()
- func (s *InMemoryDocumentSessionOperations) Defer(commands ...ICommandData)
- func (s *InMemoryDocumentSessionOperations) Delete(entity interface{}) error
- func (s *InMemoryDocumentSessionOperations) DeleteByID(id string, expectedChangeVector string) error
- func (s *InMemoryDocumentSessionOperations) Evict(entity interface{}) error
- func (s *InMemoryDocumentSessionOperations) GenerateID(entity interface{}) (string, error)
- func (s *InMemoryDocumentSessionOperations) GetChangeVectorFor(instance interface{}) (*string, error)
- func (s *InMemoryDocumentSessionOperations) GetConventions() *DocumentConventions
- func (s *InMemoryDocumentSessionOperations) GetCurrentSessionNode() (*ServerNode, error)
- func (s *InMemoryDocumentSessionOperations) GetDeferredCommandsCount() int
- func (s *InMemoryDocumentSessionOperations) GetDocumentID(instance interface{}) string
- func (s *InMemoryDocumentSessionOperations) GetDocumentStore() *DocumentStore
- func (s *InMemoryDocumentSessionOperations) GetLastModifiedFor(instance interface{}) (*time.Time, error)
- func (s *InMemoryDocumentSessionOperations) GetMetadataFor(instance interface{}) (*MetadataAsDictionary, error)
- func (s *InMemoryDocumentSessionOperations) GetNumberOfEntitiesInUnitOfWork() int
- func (s *InMemoryDocumentSessionOperations) GetNumberOfRequests() int
- func (s *InMemoryDocumentSessionOperations) GetOperations() *OperationExecutor
- func (s *InMemoryDocumentSessionOperations) GetRequestExecutor() *RequestExecutor
- func (s *InMemoryDocumentSessionOperations) HasChanged(entity interface{}) (bool, error)
- func (s *InMemoryDocumentSessionOperations) HasChanges() bool
- func (s *InMemoryDocumentSessionOperations) IgnoreChangesFor(entity interface{}) error
- func (s *InMemoryDocumentSessionOperations) IsDeleted(id string) bool
- func (s *InMemoryDocumentSessionOperations) IsLoaded(id string) bool
- func (s *InMemoryDocumentSessionOperations) IsLoadedOrDeleted(id string) bool
- func (s *InMemoryDocumentSessionOperations) RemoveAfterSaveChangesListener(handlerID int)
- func (s *InMemoryDocumentSessionOperations) RemoveBeforeDeleteListener(handlerID int)
- func (s *InMemoryDocumentSessionOperations) RemoveBeforeQueryListener(handlerID int)
- func (s *InMemoryDocumentSessionOperations) RemoveBeforeStoreListener(handlerID int)
- func (s *InMemoryDocumentSessionOperations) Store(entity interface{}) error
- func (s *InMemoryDocumentSessionOperations) StoreWithChangeVectorAndID(entity interface{}, changeVector string, id string) error
- func (s *InMemoryDocumentSessionOperations) StoreWithID(entity interface{}, id string) error
- func (s *InMemoryDocumentSessionOperations) TrackEntity(result interface{}, id string, document map[string]interface{}, ...) error
- func (s *InMemoryDocumentSessionOperations) TrackEntityInDocumentInfo(result interface{}, documentFound *documentInfo) error
- func (s *InMemoryDocumentSessionOperations) UpdateMetadataModifications(documentInfo *documentInfo) bool
- func (s *InMemoryDocumentSessionOperations) WaitForIndexesAfterSaveChanges(options func(*IndexesWaitOptsBuilder))
- func (s *InMemoryDocumentSessionOperations) WaitForReplicationAfterSaveChanges(options func(*ReplicationWaitOptsBuilder))
- func (s *InMemoryDocumentSessionOperations) WhatChanged() (map[string][]*DocumentsChanges, error)
- type IndexAlreadyExistError
- type IndexChange
- type IndexChangeTypes
- type IndexCompilationError
- type IndexConfiguration
- type IndexCreationError
- type IndexCreationTask
- func (t *IndexCreationTask) Analyze(field string, analyzer string)
- func (t *IndexCreationTask) CreateIndexDefinition() *IndexDefinition
- func (t *IndexCreationTask) Execute(store *DocumentStore, conventions *DocumentConventions, database string) error
- func (t *IndexCreationTask) Index(field string, indexing FieldIndexing)
- func (t *IndexCreationTask) IsMapReduce() bool
- func (t *IndexCreationTask) Spatial(field string, indexing func() *SpatialOptions)
- func (t *IndexCreationTask) Store(field string, storage FieldStorage)
- func (t *IndexCreationTask) StoreAllFields(storage FieldStorage)
- func (t *IndexCreationTask) Suggestion(field string)
- func (t *IndexCreationTask) TermVector(field string, termVector FieldTermVector)
- type IndexDefinition
- func (d *IndexDefinition) GetAdditionalSources() map[string]string
- func (d *IndexDefinition) GetConfiguration() IndexConfiguration
- func (d *IndexDefinition) GetFields() map[string]*IndexFieldOptions
- func (d *IndexDefinition) GetOutputReduceToCollection() *string
- func (d *IndexDefinition) GetType() IndexType
- func (d *IndexDefinition) SetAdditionalSources(additionalSources map[string]string)
- func (d *IndexDefinition) SetConfiguration(configuration IndexConfiguration)
- func (d *IndexDefinition) SetOutputReduceToCollection(outputReduceToCollection string)
- func (d *IndexDefinition) SetType(indexType IndexType)
- func (d *IndexDefinition) String() string
- type IndexDefinitionBuilder
- type IndexDeletionError
- type IndexDoesNotExistError
- type IndexErrors
- type IndexFieldOptions
- type IndexHasChangedCommand
- type IndexHasChangedOperation
- type IndexInformation
- type IndexInvalidError
- type IndexLockMode
- type IndexPriority
- type IndexQuery
- type IndexQueryContent
- type IndexRunningStatus
- type IndexState
- type IndexStats
- type IndexStatus
- type IndexType
- type IndexesWaitOptsBuilder
- type IndexingError
- type IndexingStatus
- type InvalidQueryError
- type JSONArrayResult
- type JavaScriptArray
- type JavaScriptError
- type KillOperationCommand
- type Lazy
- type LazyAggregationQueryOperation
- type LazyLoadOperation
- type LazyMultiLoaderWithInclude
- type LazyQueryOperation
- type LazySessionOperations
- func (o *LazySessionOperations) Include(path string) *LazyMultiLoaderWithInclude
- func (o *LazySessionOperations) Load(id string) (*Lazy, error)
- func (o *LazySessionOperations) LoadMulti(ids []string) (*Lazy, error)
- func (o *LazySessionOperations) LoadMultiWithEval(ids []string, onEval func(), onEvalResult interface{}) (*Lazy, error)
- func (o *LazySessionOperations) LoadStartingWith(args *StartsWithArgs) *Lazy
- func (o *LazySessionOperations) LoadWithEval(id string, onEval func(), onEvalResult interface{}) (*Lazy, error)
- type LazyStartsWithOperation
- type LazySuggestionQueryOperation
- type LeaderStamp
- type LicenseActivationError
- type LoadOperation
- type LoadStartingWithOperation
- type MaintenanceOperationExecutor
- func (e *MaintenanceOperationExecutor) ForDatabase(databaseName string) *MaintenanceOperationExecutor
- func (e *MaintenanceOperationExecutor) GetRequestExecutor() *RequestExecutor
- func (e *MaintenanceOperationExecutor) Send(operation IMaintenanceOperation) error
- func (e *MaintenanceOperationExecutor) SendAsync(operation IMaintenanceOperation) (*Operation, error)
- func (e *MaintenanceOperationExecutor) Server() *ServerOperationExecutor
- type MetadataAsDictionary
- func NewMetadataAsDictionary(metadata map[string]interface{}, parent *MetadataAsDictionary, ...) *MetadataAsDictionary
- func NewMetadataAsDictionaryWithMetadata(metadata map[string]interface{}) *MetadataAsDictionary
- func NewMetadataAsDictionaryWithSource(metadata map[string]interface{}) *MetadataAsDictionary
- func (d *MetadataAsDictionary) Clear()
- func (d *MetadataAsDictionary) ContainsKey(key string) bool
- func (d *MetadataAsDictionary) ConvertValue(key string, value interface{}) interface{}
- func (d *MetadataAsDictionary) EntrySet() map[string]interface{}
- func (d *MetadataAsDictionary) Get(key string) (interface{}, bool)
- func (d *MetadataAsDictionary) GetObjects(key string) []*MetadataAsDictionary
- func (d *MetadataAsDictionary) Init()
- func (d *MetadataAsDictionary) IsDirty() bool
- func (d *MetadataAsDictionary) IsEmpty() bool
- func (d *MetadataAsDictionary) KeySet() []string
- func (d *MetadataAsDictionary) MarkDirty()
- func (d *MetadataAsDictionary) Put(key string, value interface{}) interface{}
- func (d *MetadataAsDictionary) Remove(key string)
- func (d *MetadataAsDictionary) Size() int
- type MethodCall
- type MethodCallData
- type MethodsType
- type ModifyOngoingTaskResult
- type MoreLikeThisBase
- type MoreLikeThisBuilder
- func (b *MoreLikeThisBuilder) GetMoreLikeThis() MoreLikeThisBase
- func (b *MoreLikeThisBuilder) UsingAnyDocument() IMoreLikeThisOperations
- func (b *MoreLikeThisBuilder) UsingDocument(documentJSON string) IMoreLikeThisOperations
- func (b *MoreLikeThisBuilder) UsingDocumentWithBuilder(builder func(*DocumentQuery)) IMoreLikeThisOperations
- func (b *MoreLikeThisBuilder) WithOptions(options *MoreLikeThisOptions) IMoreLikeThisOperations
- type MoreLikeThisCommon
- type MoreLikeThisOptions
- func (o *MoreLikeThisOptions) SetBoost(boost bool)
- func (o *MoreLikeThisOptions) SetBoostFactor(boostFactor float32)
- func (o *MoreLikeThisOptions) SetMaximumDocumentFrequency(maximumDocumentFrequency int)
- func (o *MoreLikeThisOptions) SetMaximumDocumentFrequencyPercentage(maximumDocumentFrequencyPercentage int)
- func (o *MoreLikeThisOptions) SetMaximumNumberOfTokensParsed(maximumNumberOfTokensParsed int)
- func (o *MoreLikeThisOptions) SetMaximumQueryTerms(maximumQueryTerms int)
- func (o *MoreLikeThisOptions) SetMaximumWordLength(maximumWordLength int)
- func (o *MoreLikeThisOptions) SetMinimumDocumentFrequency(minimumDocumentFrequency int)
- func (o *MoreLikeThisOptions) SetMinimumTermFrequency(minimumTermFrequency int)
- func (o *MoreLikeThisOptions) SetMinimumWordLength(minimumWordLength int)
- func (o *MoreLikeThisOptions) SetStopWordsDocumentID(stopWordsDocumentID string)
- type MoreLikeThisQueryResult
- type MoreLikeThisStopWords
- type MoreLikeThisUsingAnyDocument
- type MoreLikeThisUsingDocument
- type MoreLikeThisUsingDocumentForDocumentQuery
- type MultiDatabaseHiLoIDGenerator
- type MultiGetCommand
- type MultiGetOperation
- type MultiLoaderWithInclude
- type MultiTypeHiLoIDGenerator
- type NextHiLoCommand
- type NextIdentityForCommand
- type NoLeaderError
- type NodeID
- type NodeIsPassiveError
- type NodeSelector
- type NodeSelectorState
- type NodeStatus
- type NonUniqueObjectError
- type NotImplementedError
- type Operation
- type OperationCancelledError
- type OperationExceptionResult
- type OperationExecutor
- func (e *OperationExecutor) ForDatabase(databaseName string) *OperationExecutor
- func (e *OperationExecutor) Send(operation IOperation, sessionInfo *SessionInfo) error
- func (e *OperationExecutor) SendAsync(operation IOperation, sessionInfo *SessionInfo) (*Operation, error)
- func (e *OperationExecutor) SendPatchOperation(operation *PatchOperation, sessionInfo *SessionInfo) (*PatchOperationResult, error)
- type OperationIDResult
- type OperationStatusChange
- type OrderingType
- type Parameters
- type PatchByQueryCommand
- type PatchByQueryOperation
- type PatchCommand
- type PatchCommandData
- type PatchOperation
- type PatchOperationPayload
- type PatchOperationResult
- type PatchRequest
- type PatchResult
- type PatchStatus
- type PointField
- type PutAttachmentCommand
- type PutAttachmentCommandData
- type PutAttachmentOperation
- type PutClientConfigurationCommand
- type PutClientConfigurationOperation
- type PutCommandDataWithJSON
- type PutCompareExchangeValueCommand
- type PutCompareExchangeValueOperation
- type PutConnectionStringCommand
- type PutConnectionStringOperation
- type PutConnectionStringResult
- type PutDocumentCommand
- type PutIndexResult
- type PutIndexesCommand
- type PutIndexesOperation
- type PutIndexesResponse
- type PutResult
- type QueryCommand
- type QueryData
- type QueryOperationOptions
- type QueryOperator
- type QueryResult
- type QueryStatistics
- type QueryStreamCommand
- type RaftCommandBase
- type RangeBuilder
- func (b *RangeBuilder) Err() error
- func (b *RangeBuilder) GetStringRepresentation(addQueryParameter func(interface{}) string) (string, error)
- func (b *RangeBuilder) IsGreaterThan(value interface{}) *RangeBuilder
- func (b *RangeBuilder) IsGreaterThanOrEqualTo(value interface{}) *RangeBuilder
- func (b *RangeBuilder) IsLessThan(value interface{}) *RangeBuilder
- func (b *RangeBuilder) IsLessThanOrEqualTo(value interface{}) *RangeBuilder
- type RangeFacet
- type RangeValue
- type RavenCommand
- type RavenCommandBase
- func (c *RavenCommandBase) CreateRequest(node *ServerNode) (*http.Request, error)
- func (c *RavenCommandBase) GetBase() *RavenCommandBase
- func (c *RavenCommandBase) Send(client *http.Client, req *http.Request) (*http.Response, error)
- func (c *RavenCommandBase) SetResponse(response []byte, fromCache bool) error
- func (c *RavenCommandBase) SetResponseRaw(response *http.Response, stream io.Reader) error
- type RavenCommandResponseType
- type RavenConnectionString
- type RavenError
- type RawDocumentQuery
- func (q *RawDocumentQuery) AddAfterQueryExecutedListener(action func(*QueryResult)) int
- func (q *RawDocumentQuery) AddAfterStreamExecutedListener(action func(map[string]interface{})) int
- func (q *RawDocumentQuery) AddBeforeQueryExecutedListener(action func(*IndexQuery)) int
- func (q *RawDocumentQuery) AddParameter(name string, value interface{}) *RawDocumentQuery
- func (q RawDocumentQuery) Any() (bool, error)
- func (q RawDocumentQuery) Count() (int, error)
- func (q RawDocumentQuery) CountLazily() (*Lazy, error)
- func (q RawDocumentQuery) Err() error
- func (q RawDocumentQuery) First(result interface{}) error
- func (q RawDocumentQuery) GetIndexQuery() (*IndexQuery, error)
- func (q RawDocumentQuery) GetResults(results interface{}) error
- func (q RawDocumentQuery) Lazily() (*Lazy, error)
- func (q *RawDocumentQuery) NoCaching() *RawDocumentQuery
- func (q *RawDocumentQuery) NoTracking() *RawDocumentQuery
- func (q *RawDocumentQuery) RemoveAfterQueryExecutedListener(idx int) *RawDocumentQuery
- func (q *RawDocumentQuery) RemoveAfterStreamExecutedListener(idx int) *RawDocumentQuery
- func (q *RawDocumentQuery) RemoveBeforeQueryExecutedListener(idx int) *RawDocumentQuery
- func (q RawDocumentQuery) Single(result interface{}) error
- func (q *RawDocumentQuery) Skip(count int) *RawDocumentQuery
- func (q *RawDocumentQuery) Statistics(stats **QueryStatistics) *RawDocumentQuery
- func (q *RawDocumentQuery) Take(count int) *RawDocumentQuery
- func (q *RawDocumentQuery) UsingDefaultOperator(queryOperator QueryOperator) *RawDocumentQuery
- func (q *RawDocumentQuery) WaitForNonStaleResults() *RawDocumentQuery
- func (q *RawDocumentQuery) WaitForNonStaleResultsWithTimeout(waitTimeout time.Duration) *RawDocumentQuery
- type ReadBalanceBehavior
- type RemoveCompareExchangeValueCommand
- type ReplicationNode
- type ReplicationWaitOptsBuilder
- func (b *ReplicationWaitOptsBuilder) Majority(waitForMajority bool) *ReplicationWaitOptsBuilder
- func (b *ReplicationWaitOptsBuilder) NumberOfReplicas(replicas int) *ReplicationWaitOptsBuilder
- func (b *ReplicationWaitOptsBuilder) ThrowOnTimeout(shouldThrow bool) *ReplicationWaitOptsBuilder
- func (b *ReplicationWaitOptsBuilder) WithTimeout(timeout time.Duration) *ReplicationWaitOptsBuilder
- type RequestExecutor
- func ClusterRequestExecutorCreate(initialUrls []string, certificate *tls.Certificate, ...) *RequestExecutor
- func ClusterRequestExecutorCreateForSingleNode(url string, certificate *tls.Certificate, trustStore *x509.Certificate, ...) *RequestExecutor
- func NewClusterRequestExecutor(certificate *tls.Certificate, trustStore *x509.Certificate, ...) *RequestExecutor
- func NewRequestExecutor(databaseName string, certificate *tls.Certificate, ...) *RequestExecutor
- func RequestExecutorCreate(initialUrls []string, databaseName string, certificate *tls.Certificate, ...) *RequestExecutor
- func RequestExecutorCreateForSingleNodeWithConfigurationUpdates(url string, databaseName string, certificate *tls.Certificate, ...) *RequestExecutor
- func RequestExecutorCreateForSingleNodeWithoutConfigurationUpdates(url string, databaseName string, certificate *tls.Certificate, ...) *RequestExecutor
- func (re *RequestExecutor) Close()
- func (re *RequestExecutor) Execute(chosenNode *ServerNode, nodeIndex int, command RavenCommand, shouldRetry bool, ...) error
- func (re *RequestExecutor) ExecuteCommand(command RavenCommand, sessionInfo *SessionInfo) error
- func (re *RequestExecutor) GetConventions() *DocumentConventions
- func (re *RequestExecutor) GetHTTPClient() (*http.Client, error)
- func (re *RequestExecutor) GetTopology() *Topology
- func (re *RequestExecutor) GetTopologyNodes() []*ServerNode
- func (re *RequestExecutor) GetURL() (string, error)
- func (re *RequestExecutor) MakeCluster()
- func (re *RequestExecutor) UpdateTopologyAsync(node *ServerNode, timeout int) chan *clusterUpdateAsyncResult
- type ResetIndexCommand
- type ResetIndexOperation
- type ResponseTimeInformation
- type ResponseTimeItem
- type RestoreCaching
- type Revision
- type RevisionsCollectionConfiguration
- type RevisionsConfiguration
- type RevisionsDisabledError
- type RevisionsSessionOperations
- type RouteNotFoundError
- type RuntimeError
- type ScriptResolver
- type SearchOperator
- type SecurityError
- type SeedIdentityForCommand
- type Semaphore
- type ServerLoadFailureError
- type ServerNode
- type ServerOperationExecutor
- type SessionCreatedEventArgs
- type SessionInfo
- type SessionOptions
- type SetIndexesLockCommand
- type SetIndexesLockOperation
- type SetIndexesLockParameters
- type SetIndexesPriorityCommand
- type SetIndexesPriorityOperation
- type SetIndexesPriorityParameters
- type Size
- type SpatialBounds
- type SpatialCriteria
- type SpatialCriteriaCommon
- type SpatialCriteriaFactory
- func (f *SpatialCriteriaFactory) Contains(shapeWkt string) *WktCriteria
- func (f *SpatialCriteriaFactory) ContainsWithError(shapeWkt string, distErrorPercent float64) *WktCriteria
- func (f *SpatialCriteriaFactory) Disjoint(shapeWkt string) *WktCriteria
- func (f *SpatialCriteriaFactory) DisjointWithError(shapeWkt string, distErrorPercent float64) *WktCriteria
- func (f *SpatialCriteriaFactory) Intersects(shapeWkt string) *WktCriteria
- func (f *SpatialCriteriaFactory) IntersectsWithError(shapeWkt string, distErrorPercent float64) *WktCriteria
- func (f *SpatialCriteriaFactory) RelatesToShape(shapeWkt string, relation SpatialRelation) *WktCriteria
- func (f *SpatialCriteriaFactory) RelatesToShapeWithError(shapeWkt string, relation SpatialRelation, distErrorPercent float64) *WktCriteria
- func (f *SpatialCriteriaFactory) Within(shapeWkt string) *WktCriteria
- func (f *SpatialCriteriaFactory) WithinRadius(radius float64, latitude float64, longitude float64) *CircleCriteria
- func (f *SpatialCriteriaFactory) WithinRadiusWithUnits(radius float64, latitude float64, longitude float64, radiusUnits SpatialUnits) *CircleCriteria
- func (f *SpatialCriteriaFactory) WithinRadiusWithUnitsAndError(radius float64, latitude float64, longitude float64, radiusUnits SpatialUnits, ...) *CircleCriteria
- func (f *SpatialCriteriaFactory) WithinWithError(shapeWkt string, distErrorPercent float64) *WktCriteria
- type SpatialFieldType
- type SpatialOptions
- func NewCartesianBoundingBoxIndex() *SpatialOptions
- func NewCartesianQuadPrefixTreeIndex(maxTreeLevel int, bounds *SpatialBounds) *SpatialOptions
- func NewGeographyBoundingBoxIndexWithRadius(circleRadiusUnits SpatialUnits) *SpatialOptions
- func NewGeographyDefaultOptions() *SpatialOptions
- func NewGeographyDefaultOptionsWithRadius(circleRadiusUnits SpatialUnits) *SpatialOptions
- func NewGeographyGeohashPrefixTreeIndex(maxTreeLevel int) *SpatialOptions
- func NewGeographyGeohashPrefixTreeIndexWithRadius(maxTreeLevel int, circleRadiusUnits SpatialUnits) *SpatialOptions
- func NewGeographyQuadPrefixTreeIndex(maxTreeLevel int) *SpatialOptions
- func NewGeographyQuadPrefixTreeIndexWithRadius(maxTreeLevel int, circleRadiusUnits SpatialUnits) *SpatialOptions
- func NewGeograpyboundingBoxIndex() *SpatialOptions
- func NewSpatialOptions() *SpatialOptions
- type SpatialRelation
- type SpatialSearchStrategy
- type SpatialUnits
- type StartIndexCommand
- type StartIndexOperation
- type StartIndexingCommand
- type StartIndexingOperation
- type StartsWithArgs
- type StopIndexCommand
- type StopIndexOperation
- type StopIndexingCommand
- type StopIndexingOperation
- type StreamCommand
- type StreamIterator
- type StreamOperation
- type StreamQueryStatistics
- type StreamResult
- type StreamResultResponse
- type StringDistanceTypes
- type SubscriberErrorError
- type SubscriptionBatch
- type SubscriptionBatchItem
- type SubscriptionChangeVectorUpdateConcurrencyError
- type SubscriptionClientMessageType
- type SubscriptionClosedError
- type SubscriptionConnectionClientMessage
- type SubscriptionCreationOptions
- type SubscriptionDoesNotBelongToNodeError
- type SubscriptionDoesNotExistError
- type SubscriptionError
- type SubscriptionInUseError
- type SubscriptionInvalidStateError
- type SubscriptionOpeningStrategy
- type SubscriptionState
- type SubscriptionStateWithNodeDetails
- type SubscriptionTryout
- type SubscriptionWorker
- func (w *SubscriptionWorker) AddAfterAcknowledgmentListener(handler func(*SubscriptionBatch)) int
- func (w *SubscriptionWorker) AddOnSubscriptionConnectionRetry(handler func(error)) int
- func (w *SubscriptionWorker) Cancel()
- func (w *SubscriptionWorker) Close() error
- func (w *SubscriptionWorker) Err() error
- func (w *SubscriptionWorker) IsDone() bool
- func (w *SubscriptionWorker) RemoveAfterAcknowledgmentListener(id int)
- func (w *SubscriptionWorker) RemoveOnSubscriptionConnectionRetry(id int)
- func (w *SubscriptionWorker) Run(cb func(*SubscriptionBatch) error) error
- func (w *SubscriptionWorker) WaitUntilFinished(timeout time.Duration) error
- type SubscriptionWorkerOptions
- type SuggestionBase
- type SuggestionBuilder
- type SuggestionCommon
- type SuggestionDocumentQuery
- type SuggestionOptions
- type SuggestionResult
- type SuggestionSortMode
- type SuggestionWithTerm
- type SuggestionWithTerms
- type TcpConnectionInfo
- type TermsQueryResult
- type Time
- type TimeoutError
- type Topology
- type UUID
- type UnsuccessfulRequestError
- type UnsupportedOperationError
- type UpdateExternalReplicationCommand
- type UpdateExternalReplicationOperation
- type WktCriteria
- type WktField
Constants ¶
const ( AttachmentDocument = "Document" AttachmentRevision = "Revision" )
const ( //CommandNone = "NONE" CommandPut = "PUT" CommandPatch = "PATCH" CommandDelete = "DELETE" CommandAttachmentPut = "ATTACHMENT_PUT" CommandAttachmentDelete = "ATTACHMENT_DELETE" CommandClientAnyCommand = "CLIENT_ANY_COMMAND" CommandClientNotAttachment = "CLIENT_NOT_ATTACHMENT" )
Note: this is enum in Java but those are serialized to json as strings so making them strings is better in Go
const ( ConnectionStringTypeNone = "None" ConnectionStringTypeRaven = "Raven" ConnectionStringTypeSQL = "Sql" )
const ( // Name of struct field that represents identity property IdentityProperty = "ID" MetadataCollection = "@collection" MetadataProjection = "@projection" MetadataKey = "@metadata" MetadataID = "@id" MetadataConflict = "@conflict" MetadataIDProperty = "Id" MetadataFlags = "@flags" MetadataAttachments = "@attachments" MetadataInddexScore = "@index-score" MetadataLastModified = "@last-modified" MetadataRavenGoType = "Raven-Go-Type" MetadataChangeVector = "@change-vector" MetadataExpires = "@expires" MetadataAllDocumentsCollection = "@all_docs" IndexingSideBySideIndexNamePrefix = "ReplacementOf/" IndexingFieldNameDocumentID = "id()" IndexingFieldNameReduceKeyHash = "hash(key())" IndexingFieldNameReduceKeyValue = "key()" IndexingFieldAllFields = "__all_fields" //TBD CUSTOM_SORT_FIELD_NAME = "__customSort"; IndexingSpatialDefaultDistnaceErrorPct = 0.025 )
const ( DatabasePromotionStatusWaitingForFirstPromotion = "WaitingForFirstPromotion" DatabasePromotionStatusNotResponding = "NotResponding" DatabasePromotionStatusIndexNotUpToDate = "IndexNotUpToDate" DatabasePromotionStatusChangeVectorNotMerged = "ChangeVectorNotMerged" DatabasePromotionStatusWaitingForResponse = "WaitingForResponse" DatabasePromotionStatusOk = "Ok" )
const ( DocumentChangeNone = "None" DocumentChangePut = "Put" DocumentChangeDelete = "Delete" DocumentChangeConflict = "Conflict" DocumentChangeCommon = "Common" )
const ( FacetAggregationNone = "None" FacetAggregationMax = "Max" FacetAggregationMin = "Min" FacetAggregationAverage = "Average" FacetAggregationSum = "Sum" )
const ( FacetTermSortModeValueAsc = "ValueAsc" FacetTermSortModeValueDesc = "ValueDesc" FacetTermSortModeCountAsc = "CountAsc" FacetTermSortModeCountDesc = "CountDesc" )
const ( FieldIndexingNo = "No" FieldIndexingSearch = "Search" FieldIndexingExact = "Exact" FieldIndexingDefault = "Default" )
const ( FieldStorageYes = "Yes" FieldStorageNo = "No" )
const ( FieldTermVectorNo = "No" FieldTermVectorYes = "Yes" FieldTermVectorWithPositions = "WithPositions" FieldTermVectorWithOffsets = "WithOffsets" FieldTermVectorWithPositionsAndOffsets = "WithPositionsAndOffsets" )
const ( GroupByMethodNone = "None" GroupByMethodArray = "Array" )
const ( IndexChangeNone = "None" IndexChangeBatchCompleted = "BatchCompleted" IndexChangeIndexAdded = "IndexAdded" IndexChangeIndexRemoved = "IndexRemoved" IndexChangeIndexDemotedToIdle = "IndexDemotedToIdle" IndexChangeIndexPromotedFromIdle = "IndexPromotedFromIdle" IndexChangeIndexDemotedToDisabled = "IndexDemotedToDisabled" IndexChangeIndexMarkedAsErrored = "IndexMarkedAsErrored" IndexChangeSideBySideReplace = "SideBySideReplace" IndexChangeRenamed = "Renamed" IndexChangeIndexPaused = "IndexPaused" IndexChangeLockModeChanged = "LockModeChanged" IndexChangePriorityChanged = "PriorityChanged" )
const ( IndexLockModeUnlock = "Unlock" IndexLockModeLockedIgnore = "LockedIgnore" IndexLockModeLockedError = "LockedError" )
const ( IndexPriorityLow = "Low" IndexPriorityNormal = "Normal" IndexPriorityHigh = "High" )
const ( IndexRunningStatusRunning = "Running" IndexRunningStatusPaused = "Paused" IndexRunningStatusDisabled = "Disabled" )
const ( IndexStateNormal = "Normal" IndexStateDisabled = "Disabled" IndexStateIdle = "Idle" IndexStateError = "Error" )
const ( IndexTypeNone = "None" IndexTypeAutoMap = "AutoMap" IndexTypeAutoMapReduce = "AutoMapReduce" IndexTypeMap = "Map" IndexTypeMapReduce = "MapReduce" IndexTypeFaulty = "Faulty" )
const ( MoreLikeThisOptionsDefaultMaximumNumberOfTokensParsed = 5000 MoreLikeThisOptionsDefaultMinimumTermFrequency = 2 MoreLikeThisOptionsDefaultMinimumDocumentFrequency = 5 MoreLikeThisOptionsDefaultMaximumDocumentFrequence = math.MaxInt32 MoreLikeThisOptionsDefaultBoost = false MoreLikeThisOptionsDefaultBoostFactor = 1 MoreLikeThisOptionsDefaultMinimumWordLength = 0 MoreLikeThisOptionsDefaultMaximumWordLength = 0 MoreLikeThisOptionsDefaultMaximumQueryTerms = 25 )
const ( OrderingTypeString = "STRING" OrderingTypeLong = "LONG" OrderingTypeDouble = "DOUBLE" OrderingTypeAlphaNumeric = "ALPHA_NUMERIC" )
const ( PatchStatusDocumentDoesNotExist = "DocumentDoesNotExist" PatchStatusCreated = "Created" PatchStatusPatched = "Patched" PatchStatusSkipped = "Skipped" PatchStatusNotModified = "NotModified" )
const ( QueryOperatorAnd = "And" QueryOperatorOr = "Or" )
const ( RavenCommandResponseTypeEmpty = "EMPTY" RavenCommandResponseTypeObject = "OBJECT" RavenCommandResponseTypeRaw = "RAW" )
const ( ReadBalanceBehaviorNone = "None" ReadBalanceBehaviorRoundRobin = "RoundRobin" ReadBalanceBehaviorFastestNode = "FastestNode" )
const ( ServerNodeRoleNone = "None" ServerNodeRolePromotable = "Promotable" ServerNodeRoleMember = "Member" ServerNodeRoleRehab = "Rehab" )
const ( SpatialFieldGeography = "Geography" SpatialFieldCartesian = "Cartesian" )
const ( //about 4.78 meters at equator, should be good enough (see: http://unterbahn.com/2009/11/metric-dimensions-of-geohash-partitions-at-the-equator/) SpatialOptionsDefaultGeohashLevel = 9 //about 4.78 meters at equator, should be good enough SpatialOptionsDefaultQuadTreeLevel = 23 )
const ( SpatialRelationWithin = "Within" SpatialRelationContains = "Contains" SpatialRelationDisjoin = "Disjoint" SpatialRelationIntersects = "Intersects" )
const ( SpatialSearchStrategyGeohashPrefixTree = "GeohashPrefixTree" SpatialSearchStrategyQuadPrefixTree = "QuadPrefixTree" SpatialSearchStrategyBoundingBox = "BoundingBox" )
const ( SpatialUnitsKilometers = "Kilometers" SpatialUnitsMiles = "Miles" )
const ( StringDistanceNone = "None" StringDistanceDefault = "Default" StringDistanceLevenshtein = "Levenshtein" StringDistanceJaroWinkler = "JaroWinkler" StringDistanceNGram = "NGram" )
const ( SubscriptionClientMessageNone = "None" SubscriptionClientMessageAcknowledge = "Acknowledge" SubscriptionClientMessageDisposedNotification = "DisposedNotification" )
const ( // SubscriptionOpeningStrategyOpenIfFree: // The client will successfully open a subscription only if there isn't any other currently connected client. // Otherwise it will end up with SubscriptionInUseError SubscriptionOpeningStrategyOpenIfFree = "OpenIfFree" // SubscriptionOpeningStrategyTakeOver: // The connecting client will successfully open a subscription even if there is another active subscription's consumer. // If the new client takes over an existing client then the existing one will get a SubscriptionInUseException. // // The subscription will always be held by the last connected client. SubscriptionOpeningStrategyTakeOver = "TakeOver" // SubscriptionOpeningStrategyWaitForFree: // If the client currently cannot open the subscription because it is used by another client but it will wait for that client // to complete and keep attempting to gain the subscription SubscriptionOpeningStrategyWaitForFree = "WaitForFree" )
const ( SuggestionSortModeNone = "None" SuggestionSortModePopularity = "Popularity" )
const (
MethodsTypeCmpXChg = "CmpXChg"
)
Variables ¶
var ( // HTTPClientPostProcessor allows to tweak http client after it has been created // this allows replacing Transport with a custom transport that does logging, // proxying or tweaks each http request HTTPClientPostProcessor func(*http.Client) // if true, adds lots of logging to track bugs in request executor DebugLogRequestExecutor bool = false DebugTopology bool = false )
var ( SuggestionOptionsDefaultOptions = NewSuggestionOptions() SuggestionOptionsDefaultAccuracy = float32(0.5) SuggestionOptionsDefaultPageSize = 15 SuggestionOptionsDefaultDistance = StringDistanceLevenshtein SuggestionOptionsDefaultSortMode = SuggestionSortModePopularity )
var ( // DefaultFacetOptions are default facet options DefaultFacetOptions = &FacetOptions{} )
var ( // LogSubscriptions allows to monitor read/writes made by SubscriptionWorker to a tcp connection. For debugging. LogSubscriptionWorker func(op string, d []byte) = func(op string, d []byte) { } )
var ( // if true, does verbose logging. LogVerbose = false )
Functions ¶
func FieldsFor ¶
func FieldsFor(s interface{}) []string
FieldsFor returns names of all fields for the value of a struct type. They can be used in e.g. DocumentQuery.SelectFields: fields := ravendb.FieldsFor(&MyType{}) q = q.SelectFields(fields...)
func GetCollectionNameDefault ¶
func GetCollectionNameDefault(entityOrType interface{}) string
GetCollectionNameDefault is a default way of
func GetWrappedError ¶
GetWrappedError returns an error wrapped by this error If no error is wrapped, returns nil
func ParseTime ¶
ParseTime parses string time value returned by RavenDB server The value can't be parsed with a single string format
func RoundToServerTime ¶
RoundToServerTime rounds t to the same precision as round-tripping to the server and back. Useful for comparing time.Time values for equality with values returned by the server
Types ¶
type AdvancedSessionExtensionBase ¶
type AdvancedSessionExtensionBase struct {
// contains filtered or unexported fields
}
AdvancedSessionExtensionBase implements common advanced session operations
func (*AdvancedSessionExtensionBase) Defer ¶
func (e *AdvancedSessionExtensionBase) Defer(commands ...ICommandData)
Defer defers multiple commands to be executed on SaveChnages
type AdvancedSessionOperations ¶
type AdvancedSessionOperations struct {
// contains filtered or unexported fields
}
AdvancedSessionOperations exposes advanced session operations
func (*AdvancedSessionOperations) AddAfterSaveChangesListener ¶
func (o *AdvancedSessionOperations) AddAfterSaveChangesListener(handler func(*AfterSaveChangesEventArgs)) int
func (*AdvancedSessionOperations) AddBeforeDeleteListener ¶
func (o *AdvancedSessionOperations) AddBeforeDeleteListener(handler func(*BeforeDeleteEventArgs)) int
func (*AdvancedSessionOperations) AddBeforeQueryListener ¶
func (o *AdvancedSessionOperations) AddBeforeQueryListener(handler func(*BeforeQueryEventArgs)) int
func (*AdvancedSessionOperations) AddBeforeStoreListener ¶
func (o *AdvancedSessionOperations) AddBeforeStoreListener(handler func(*BeforeStoreEventArgs)) int
func (*AdvancedSessionOperations) Attachments ¶
func (o *AdvancedSessionOperations) Attachments() *AttachmentsSessionOperations
func (*AdvancedSessionOperations) Clear ¶
func (o *AdvancedSessionOperations) Clear()
func (*AdvancedSessionOperations) Defer ¶
func (o *AdvancedSessionOperations) Defer(commands ...ICommandData)
func (*AdvancedSessionOperations) Eagerly ¶
func (o *AdvancedSessionOperations) Eagerly() *EagerSessionOperations
func (*AdvancedSessionOperations) Evict ¶
func (o *AdvancedSessionOperations) Evict(entity interface{}) error
func (*AdvancedSessionOperations) Exists ¶
func (o *AdvancedSessionOperations) Exists(id string) (bool, error)
func (*AdvancedSessionOperations) GetChangeVectorFor ¶
func (o *AdvancedSessionOperations) GetChangeVectorFor(instance interface{}) (*string, error)
func (*AdvancedSessionOperations) GetCurrentSessionNode ¶
func (o *AdvancedSessionOperations) GetCurrentSessionNode() (*ServerNode, error)
func (*AdvancedSessionOperations) GetDocumentID ¶
func (o *AdvancedSessionOperations) GetDocumentID(instance interface{}) string
func (*AdvancedSessionOperations) GetDocumentStore ¶
func (o *AdvancedSessionOperations) GetDocumentStore() *DocumentStore
func (*AdvancedSessionOperations) GetLastModifiedFor ¶
func (o *AdvancedSessionOperations) GetLastModifiedFor(instance interface{}) (*time.Time, error)
func (*AdvancedSessionOperations) GetMaxNumberOfRequestsPerSession ¶
func (o *AdvancedSessionOperations) GetMaxNumberOfRequestsPerSession() int
func (*AdvancedSessionOperations) GetMetadataFor ¶
func (o *AdvancedSessionOperations) GetMetadataFor(instance interface{}) (*MetadataAsDictionary, error)
func (*AdvancedSessionOperations) GetNumberOfRequests ¶
func (o *AdvancedSessionOperations) GetNumberOfRequests() int
GetNumberOfRequests returns number of requests sent to the server
func (*AdvancedSessionOperations) GetRequestExecutor ¶
func (o *AdvancedSessionOperations) GetRequestExecutor() *RequestExecutor
func (*AdvancedSessionOperations) HasChanged ¶
func (o *AdvancedSessionOperations) HasChanged(entity interface{}) (bool, error)
func (*AdvancedSessionOperations) HasChanges ¶
func (o *AdvancedSessionOperations) HasChanges() bool
func (*AdvancedSessionOperations) IgnoreChangesFor ¶
func (o *AdvancedSessionOperations) IgnoreChangesFor(entity interface{}) error
func (*AdvancedSessionOperations) Increment ¶
func (o *AdvancedSessionOperations) Increment(entity interface{}, path string, valueToAdd interface{}) error
func (*AdvancedSessionOperations) IncrementByID ¶
func (o *AdvancedSessionOperations) IncrementByID(id string, path string, valueToAdd interface{}) error
func (*AdvancedSessionOperations) IsLoaded ¶
func (o *AdvancedSessionOperations) IsLoaded(id string) bool
func (*AdvancedSessionOperations) Lazily ¶
func (o *AdvancedSessionOperations) Lazily() *LazySessionOperations
func (*AdvancedSessionOperations) LoadIntoStream ¶
func (o *AdvancedSessionOperations) LoadIntoStream(ids []string, output io.Writer) error
func (*AdvancedSessionOperations) LoadStartingWith ¶
func (o *AdvancedSessionOperations) LoadStartingWith(results interface{}, args *StartsWithArgs) error
func (*AdvancedSessionOperations) LoadStartingWithIntoStream ¶
func (o *AdvancedSessionOperations) LoadStartingWithIntoStream(output io.Writer, args *StartsWithArgs) error
func (*AdvancedSessionOperations) Patch ¶
func (o *AdvancedSessionOperations) Patch(entity interface{}, path string, value interface{}) error
func (*AdvancedSessionOperations) PatchArray ¶
func (o *AdvancedSessionOperations) PatchArray(entity interface{}, pathToArray string, arrayAdder func(*JavaScriptArray)) error
func (*AdvancedSessionOperations) PatchArrayByID ¶
func (o *AdvancedSessionOperations) PatchArrayByID(id string, pathToArray string, arrayAdder func(*JavaScriptArray)) error
func (*AdvancedSessionOperations) PatchByID ¶
func (o *AdvancedSessionOperations) PatchByID(id string, path string, value interface{}) error
func (*AdvancedSessionOperations) Query ¶
func (o *AdvancedSessionOperations) Query(opts *DocumentQueryOptions) *DocumentQuery
func (*AdvancedSessionOperations) QueryCollection ¶
func (o *AdvancedSessionOperations) QueryCollection(collectionName string) *DocumentQuery
func (*AdvancedSessionOperations) QueryCollectionForType ¶
func (o *AdvancedSessionOperations) QueryCollectionForType(typ reflect.Type) *DocumentQuery
func (*AdvancedSessionOperations) QueryIndex ¶
func (o *AdvancedSessionOperations) QueryIndex(indexName string) *DocumentQuery
func (*AdvancedSessionOperations) RawQuery ¶
func (o *AdvancedSessionOperations) RawQuery(rawQuery string) *RawDocumentQuery
func (*AdvancedSessionOperations) Refresh ¶
func (o *AdvancedSessionOperations) Refresh(entity interface{}) error
func (*AdvancedSessionOperations) RemoveAfterSaveChangesListener ¶
func (o *AdvancedSessionOperations) RemoveAfterSaveChangesListener(handlerID int)
func (*AdvancedSessionOperations) RemoveBeforeDeleteListener ¶
func (o *AdvancedSessionOperations) RemoveBeforeDeleteListener(handlerID int)
func (*AdvancedSessionOperations) RemoveBeforeQueryListener ¶
func (o *AdvancedSessionOperations) RemoveBeforeQueryListener(handlerID int)
func (*AdvancedSessionOperations) RemoveBeforeStoreListener ¶
func (o *AdvancedSessionOperations) RemoveBeforeStoreListener(handlerID int)
func (*AdvancedSessionOperations) Revisions ¶
func (o *AdvancedSessionOperations) Revisions() *RevisionsSessionOperations
func (*AdvancedSessionOperations) SetMaxNumberOfRequestsPerSession ¶
func (o *AdvancedSessionOperations) SetMaxNumberOfRequestsPerSession(n int)
func (*AdvancedSessionOperations) Stream ¶
func (o *AdvancedSessionOperations) Stream(args *StartsWithArgs) (*StreamIterator, error)
func (*AdvancedSessionOperations) StreamQuery ¶
func (o *AdvancedSessionOperations) StreamQuery(query *DocumentQuery, streamQueryStats *StreamQueryStatistics) (*StreamIterator, error)
func (*AdvancedSessionOperations) StreamQueryInto ¶
func (o *AdvancedSessionOperations) StreamQueryInto(query *DocumentQuery, output io.Writer) error
func (*AdvancedSessionOperations) StreamRawQuery ¶
func (o *AdvancedSessionOperations) StreamRawQuery(query *RawDocumentQuery, streamQueryStats *StreamQueryStatistics) (*StreamIterator, error)
func (*AdvancedSessionOperations) StreamRawQueryInto ¶
func (o *AdvancedSessionOperations) StreamRawQueryInto(query *RawDocumentQuery, output io.Writer) error
func (*AdvancedSessionOperations) WaitForIndexesAfterSaveChanges ¶
func (o *AdvancedSessionOperations) WaitForIndexesAfterSaveChanges(options func(*IndexesWaitOptsBuilder))
func (*AdvancedSessionOperations) WaitForReplicationAfterSaveChanges ¶
func (o *AdvancedSessionOperations) WaitForReplicationAfterSaveChanges(options func(*ReplicationWaitOptsBuilder))
func (*AdvancedSessionOperations) WhatChanged ¶
func (o *AdvancedSessionOperations) WhatChanged() (map[string][]*DocumentsChanges, error)
type AfterSaveChangesEventArgs ¶
type AfterSaveChangesEventArgs struct { Session *InMemoryDocumentSessionOperations DocumentID string Entity interface{} // contains filtered or unexported fields }
AfterSaveChangesEventArgs describes arguments for "after save changes" listener
func (*AfterSaveChangesEventArgs) GetDocumentMetadata ¶
func (a *AfterSaveChangesEventArgs) GetDocumentMetadata() *MetadataAsDictionary
GetDocumentMetadata returns metadata for the entity represented by this event
type AggregationDocumentQuery ¶
type AggregationDocumentQuery = aggregationQueryBase
Note: AggregationDocumentQuery is fused into AggregationQueryBase because in Java AggregationQueryBase calls functions implemented in AggregationDocumentQuery and that doesn't translate to Go's embedding
func (*AggregationDocumentQuery) AndAggregateByFacet ¶
func (q *AggregationDocumentQuery) AndAggregateByFacet(facet FacetBase) *AggregationDocumentQuery
from AggregationDocumentQuery
func (*AggregationDocumentQuery) GetIndexQuery ¶
func (q *AggregationDocumentQuery) GetIndexQuery() (*IndexQuery, error)
type AggressiveCacheOptions ¶
TODO: should this be exported?
type AllTopologyNodesDownError ¶
type AllTopologyNodesDownError struct {
// contains filtered or unexported fields
}
AllTopologyNodesDownError represents "all topology nodes are down" error
func (*AllTopologyNodesDownError) Error ¶
func (e *AllTopologyNodesDownError) Error() string
Error makes it conform to error interface
func (*AllTopologyNodesDownError) WrappedError ¶
func (e *AllTopologyNodesDownError) WrappedError() error
hackish way to get a wrapped error
type AttachmentDetails ¶
type AttachmentDetails struct { AttachmentName ChangeVector *string `json:"ChangeVector"` DocumentID string `json:"DocumentId"` }
AttachmentDetails represents details of an attachment
type AttachmentName ¶
type AttachmentName struct { Name string `json:"Name"` Hash string `json:"Hash"` ContentType string `json:"ContentType"` Size int64 `json:"Size"` }
AttachmentName represents infor about an attachment
type AttachmentResult ¶
type AttachmentResult struct { Data io.Reader Details *AttachmentDetails // contains filtered or unexported fields }
AttachmentResult represents an attachment
func (*AttachmentResult) Close ¶
func (r *AttachmentResult) Close() error
Close closes the attachment
type AttachmentType ¶
type AttachmentType = string
type AttachmentsSessionOperations ¶
type AttachmentsSessionOperations = DocumentSessionAttachments
TODO: make a unique wrapper type
type AuthorizationError ¶
type AuthorizationError struct {
// contains filtered or unexported fields
}
AuthorizationError represents authorization error
func (*AuthorizationError) Error ¶
func (e *AuthorizationError) Error() string
Error makes it conform to error interface
func (*AuthorizationError) WrappedError ¶
func (e *AuthorizationError) WrappedError() error
hackish way to get a wrapped error
type BadRequestError ¶
type BadRequestError struct {
RavenError
}
BadRequestError maps to server's 400 Bad Request response This is additional information sent by the server
func (*BadRequestError) Error ¶
func (e *BadRequestError) Error() string
Error makes it conform to error interface
func (*BadRequestError) WrappedError ¶
func (e *BadRequestError) WrappedError() error
hackish way to get a wrapped error
type BadResponseError ¶
type BadResponseError struct {
RavenError
}
BadResponseError represents "bad response" error
func (*BadResponseError) Error ¶
func (e *BadResponseError) Error() string
Error makes it conform to error interface
func (*BadResponseError) WrappedError ¶
func (e *BadResponseError) WrappedError() error
hackish way to get a wrapped error
type BatchCommand ¶
type BatchCommand struct { RavenCommandBase Result *JSONArrayResult // contains filtered or unexported fields }
BatchCommand represents batch command
func (*BatchCommand) Close ¶
func (c *BatchCommand) Close() error
func (*BatchCommand) CreateRequest ¶
func (c *BatchCommand) CreateRequest(node *ServerNode) (*http.Request, error)
func (*BatchCommand) SetResponse ¶
func (c *BatchCommand) SetResponse(response []byte, fromCache bool) error
type BatchOperation ¶
type BatchOperation struct {
// contains filtered or unexported fields
}
BatchOperation represents a batch operation
type BatchOptions ¶
type BatchOptions struct {
// contains filtered or unexported fields
}
BatchOptions describes options for batch operations
func NewBatchOptions ¶
func NewBatchOptions() *BatchOptions
NewBatchOptions returns new BatchOptions
type BeforeDeleteEventArgs ¶
type BeforeDeleteEventArgs struct { Session *InMemoryDocumentSessionOperations DocumentID string Entity interface{} // contains filtered or unexported fields }
BeforeDeleteEventArgs describes arguments for "before delete" listener
func (*BeforeDeleteEventArgs) GetDocumentMetadata ¶
func (a *BeforeDeleteEventArgs) GetDocumentMetadata() *MetadataAsDictionary
GetDocumentMetadata returns metadata for the entity being deleted
type BeforeQueryEventArgs ¶
type BeforeQueryEventArgs struct { Session *InMemoryDocumentSessionOperations QueryCustomization *DocumentQueryCustomization }
BeforeQueryEventArgs describes arguments for "before query" event
type BeforeStoreEventArgs ¶
type BeforeStoreEventArgs struct { Session *InMemoryDocumentSessionOperations DocumentID string Entity interface{} // contains filtered or unexported fields }
BeforeStoreEventArgs describe arguments for "before store" listener
func (*BeforeStoreEventArgs) GetDocumentMetadata ¶
func (a *BeforeStoreEventArgs) GetDocumentMetadata() *MetadataAsDictionary
GetDocumentMetadata returns metadata for entity represented by this event
type BulkInsertAbortedError ¶
type BulkInsertAbortedError struct {
RavenError
}
BulkInsertAbortedError represents "bulk insert aborted" error
func (*BulkInsertAbortedError) Error ¶
func (e *BulkInsertAbortedError) Error() string
Error makes it conform to error interface
func (*BulkInsertAbortedError) WrappedError ¶
func (e *BulkInsertAbortedError) WrappedError() error
hackish way to get a wrapped error
type BulkInsertCommand ¶
type BulkInsertCommand struct { RavenCommandBase Result *http.Response // contains filtered or unexported fields }
BulkInsertCommand describes build insert command
func NewBulkInsertCommand ¶
func NewBulkInsertCommand(id int64, stream io.Reader, useCompression bool) *BulkInsertCommand
NewBulkInsertCommand returns new BulkInsertCommand
func (*BulkInsertCommand) CreateRequest ¶
func (c *BulkInsertCommand) CreateRequest(node *ServerNode) (*http.Request, error)
func (*BulkInsertCommand) SetResponse ¶
func (c *BulkInsertCommand) SetResponse(response []byte, fromCache bool) error
type BulkInsertOperation ¶
type BulkInsertOperation struct { Command *BulkInsertCommand // contains filtered or unexported fields }
BulkInsertOperation represents bulk insert operation
func NewBulkInsertOperation ¶
func NewBulkInsertOperation(database string, store *DocumentStore) *BulkInsertOperation
NewBulkInsertOperation returns new BulkInsertOperation
func (*BulkInsertOperation) Abort ¶
func (o *BulkInsertOperation) Abort() error
Abort aborts insert operation
func (*BulkInsertOperation) Close ¶
func (o *BulkInsertOperation) Close() error
Close closes operation
func (*BulkInsertOperation) GetID ¶
func (o *BulkInsertOperation) GetID(entity interface{}) (string, error)
GetID returns id for an entity
func (*BulkInsertOperation) Store ¶
func (o *BulkInsertOperation) Store(entity interface{}, metadata *MetadataAsDictionary) (string, error)
Store schedules entity for storing and returns its id. metadata can be nil
func (*BulkInsertOperation) StoreWithID ¶
func (o *BulkInsertOperation) StoreWithID(entity interface{}, id string, metadata *MetadataAsDictionary) error
StoreWithID stores an entity with a given id
func (*BulkInsertOperation) WaitForID ¶
func (o *BulkInsertOperation) WaitForID() error
WaitForID waits for operation id to finish
type BulkInsertProtocolViolationError ¶
type BulkInsertProtocolViolationError struct {
RavenError
}
func (*BulkInsertProtocolViolationError) Error ¶
func (e *BulkInsertProtocolViolationError) Error() string
Error makes it conform to error interface
func (*BulkInsertProtocolViolationError) WrappedError ¶
func (e *BulkInsertProtocolViolationError) WrappedError() error
hackish way to get a wrapped error
type CancelFunc ¶
type CancelFunc func()
type CancellationError ¶
type CancellationError struct { }
func (*CancellationError) Error ¶
func (e *CancellationError) Error() string
type CertificateNameMismatchError ¶
type CertificateNameMismatchError struct {
// contains filtered or unexported fields
}
CertificateNameMismatchError is returned when subscription is in use
func (*CertificateNameMismatchError) Error ¶
func (e *CertificateNameMismatchError) Error() string
Error makes it conform to error interface
func (*CertificateNameMismatchError) WrappedError ¶
func (e *CertificateNameMismatchError) WrappedError() error
hackish way to get a wrapped error
type ChangeProcessingError ¶
type ChangeProcessingError struct {
RavenError
}
func (*ChangeProcessingError) Error ¶
func (e *ChangeProcessingError) Error() string
Error makes it conform to error interface
func (*ChangeProcessingError) WrappedError ¶
func (e *ChangeProcessingError) WrappedError() error
hackish way to get a wrapped error
type ChangeType ¶
type ChangeType int
ChangeType describes a type of a change in a document
const ( // TODO: make those into a string? DocumentChangeDocumentDeleted ChangeType = iota DocumentChangeDocumentAdded DocumentChangeFieldChanged DocumentChangeNewField DocumentChangeRemovedField DocumentChangeArrayValueChanged DocumentChangeArrayValueAdded DocumentChangeArrayValueRemoved DocumentChangeFieldTypeChanged DocumentChangeEntityTypeChanged )
type CircleCriteria ¶
type CircleCriteria struct { SpatialCriteriaCommon // contains filtered or unexported fields }
CircleCriteria describes circle criteria
func NewCircleCriteria ¶
func NewCircleCriteria(radius float64, latitude float64, longitude float64, radiusUnits SpatialUnits, relation SpatialRelation, distErrorPercent float64) *CircleCriteria
NewCircleCriteria returns new CircleCriteria
func (*CircleCriteria) GetShapeToken ¶
func (c *CircleCriteria) GetShapeToken(addQueryParameter func(interface{}) string) *shapeToken
GetShapeToken returns shapeToken
func (*CircleCriteria) ToQueryToken ¶
func (c *CircleCriteria) ToQueryToken(fieldName string, addQueryParameter func(interface{}) string) queryToken
ToQueryToken creates a token
type ClientConfiguration ¶
type ClientConfiguration struct { Etag int64 `json:"Etag"` IsDisabled bool `json:"Disabled"` // TODO: should this be *int ? MaxNumberOfRequestsPerSession int `json:"MaxNumberOfRequestsPerSession"` ReadBalanceBehavior ReadBalanceBehavior `json:"ReadBalanceBehavior"` }
ClientConfiguration represents client configuration
type ClientVersionMismatchError ¶
type ClientVersionMismatchError struct {
RavenError
}
ClientVersionMismatchError is returned when subscription is in use
func (*ClientVersionMismatchError) Error ¶
func (e *ClientVersionMismatchError) Error() string
Error makes it conform to error interface
func (*ClientVersionMismatchError) WrappedError ¶
func (e *ClientVersionMismatchError) WrappedError() error
hackish way to get a wrapped error
type ClusterRequestExecutor ¶
type ClusterRequestExecutor = RequestExecutor
Note: for simplicity ClusterRequestExecutor logic is implemented in RequestExecutor because Go doesn't support inheritance
type ClusterTopology ¶
type ClusterTopology struct { TopologyID string `json:"TopologyId"` AllNodes map[string]string `json:"AllNodes"` // Those map name like A to server url like http://localhost:9999 Members map[string]string `json:"Members"` Promotables map[string]string `json:"Promotables"` Watchers map[string]string `json:"Watchers"` LastNodeId string `json:"LastNodeId"` Etag int `json:"Etag"` }
ClusterTopology is a part of ClusterTopologyResponse
type CmpXchg ¶
type CmpXchg struct {
MethodCallData
}
CmpXchg represents data for cmp xchg method
func CmpXchgValue ¶
CmpXchgValue returns CmpXchg for a given key
type CollectionStatistics ¶
type CollectionStatistics struct { CountOfDocuments int `json:"CountOfDocuments"` CountOfConflicts int `json:"CountOfConflicts"` Collections map[string]int `json:"Collections"` }
CollectionStatistics describes collection statistics
type CollectionStats ¶
type CollectionStats struct { LastProcessedDocumentEtag int64 `json:"LastProcessedDocumentEtag"` LastProcessedTombstoneEtag int64 `json:"LastProcessedTombstoneEtag"` DocumentLag int64 `json:"DocumentLag"` TombstoneLag int64 `json:"TombstoneLag"` }
func NewCollectionStats ¶
func NewCollectionStats() *CollectionStats
type CommandData ¶
type CommandData struct { ID string Name string ChangeVector *string Type CommandType }
CommandData describes common data for commands
type CommandExecutionError ¶
type CommandExecutionError struct {
RavenError
}
func (*CommandExecutionError) Error ¶
func (e *CommandExecutionError) Error() string
Error makes it conform to error interface
func (*CommandExecutionError) WrappedError ¶
func (e *CommandExecutionError) WrappedError() error
hackish way to get a wrapped error
type CompactDatabaseCommand ¶
type CompactDatabaseCommand struct { RavenCommandBase Result *OperationIDResult // contains filtered or unexported fields }
CompactDatabaseCommand describes "compact database" command
func NewCompactDatabaseCommand ¶
func NewCompactDatabaseCommand(conventions *DocumentConventions, compactSettings *CompactSettings) (*CompactDatabaseCommand, error)
NewCompactDatabaseCommand returns new CompactDatabaseCommand
func (*CompactDatabaseCommand) CreateRequest ¶
func (c *CompactDatabaseCommand) CreateRequest(node *ServerNode) (*http.Request, error)
func (*CompactDatabaseCommand) SetResponse ¶
func (c *CompactDatabaseCommand) SetResponse(response []byte, fromCache bool) error
type CompactDatabaseOperation ¶
type CompactDatabaseOperation struct { Command *CompactDatabaseCommand // contains filtered or unexported fields }
CompactDatabaseOperation describes "compact database" operation
func NewCompactDatabaseOperation ¶
func NewCompactDatabaseOperation(compactSettings *CompactSettings) *CompactDatabaseOperation
NewCompactDatabaseOperation returns new CompactDatabaseOperation
func (*CompactDatabaseOperation) GetCommand ¶
func (o *CompactDatabaseOperation) GetCommand(conventions *DocumentConventions) (RavenCommand, error)
GetCommand returns a command
type CompactSettings ¶
type CompactSettings struct { DatabaseName string `json:"DatabaseName"` Documents bool `json:"Documents"` Indexes []string `json:"Indexes,omitempty"` }
CompactSettings is an argument to CompactDatabaseOperation
type CompareExchangeResult ¶
CompareExchangeResult describes result of compare exchange
type CompareExchangeValue ¶
CompareExchangeValue represents value for compare exchange
func NewCompareExchangeValue ¶
func NewCompareExchangeValue(key string, index int64, value interface{}) *CompareExchangeValue
NewCompareExchangeValue returns new CompareExchangeValue
type CompilationError ¶
type CompilationError struct {
RavenError
}
func (*CompilationError) Error ¶
func (e *CompilationError) Error() string
Error makes it conform to error interface
func (*CompilationError) WrappedError ¶
func (e *CompilationError) WrappedError() error
hackish way to get a wrapped error
type ConcurrencyCheckMode ¶
type ConcurrencyCheckMode int
ConcurrencyCheckMode describes concurrency check
const ( // ConcurrencyCheckAuto is automatic optimistic concurrency check depending on UseOptimisticConcurrency setting or provided Change Vector ConcurrencyCheckAuto ConcurrencyCheckMode = iota // ConcurrencyCheckForced forces optimistic concurrency check even if UseOptimisticConcurrency is not set ConcurrencyCheckForced // ConcurrencyCheckDisabled disables optimistic concurrency check even if UseOptimisticConcurrency is set ConcurrencyCheckDisabled )
type ConcurrencyError ¶
type ConcurrencyError struct { RavenError ExpectedETag int64 ActualETag int64 ExpectedChangeVector string ActualChangeVector string }
ConcurrencyError represents concurrency error
func (*ConcurrencyError) Error ¶
func (e *ConcurrencyError) Error() string
Error makes it conform to error interface
func (*ConcurrencyError) WrappedError ¶
func (e *ConcurrencyError) WrappedError() error
hackish way to get a wrapped error
type ConfigureRevisionsCommand ¶
type ConfigureRevisionsCommand struct { RavenCommandBase Result *ConfigureRevisionsOperationResult // contains filtered or unexported fields }
ConfigureRevisionsCommand represents configure revisions command
func NewConfigureRevisionsCommand ¶
func NewConfigureRevisionsCommand(configuration *RevisionsConfiguration) *ConfigureRevisionsCommand
NewConfigureRevisionsCommand returns new ConfigureRevisionsCommand
func (*ConfigureRevisionsCommand) CreateRequest ¶
func (c *ConfigureRevisionsCommand) CreateRequest(node *ServerNode) (*http.Request, error)
func (*ConfigureRevisionsCommand) SetResponse ¶
func (c *ConfigureRevisionsCommand) SetResponse(response []byte, fromCache bool) error
type ConfigureRevisionsOperation ¶
type ConfigureRevisionsOperation struct { Command *ConfigureRevisionsCommand // contains filtered or unexported fields }
ConfigureRevisionsOperation represents configure revisions operation
func NewConfigureRevisionsOperation ¶
func NewConfigureRevisionsOperation(configuration *RevisionsConfiguration) *ConfigureRevisionsOperation
NewConfigureRevisionsOperation returns new ConfigureRevisionsOperation
func (*ConfigureRevisionsOperation) GetCommand ¶
func (o *ConfigureRevisionsOperation) GetCommand(conventions *DocumentConventions) (RavenCommand, error)
GetCommand returns new RavenCommand for this operation
type ConfigureRevisionsOperationResult ¶
type ConfigureRevisionsOperationResult struct {
RaftCommandIndex int64 `json:"RaftCommandIndex"`
}
ConfigureRevisionsOperationResult represents result of configure revisions operation
type Conflict ¶
type Conflict struct { LastModified Time `json:"LastModified"` ChangeVector string `json:"ChangeVector"` Doc map[string]interface{} `json:"Doc"` }
Conflict represents conflict
type ConflictError ¶
type ConflictError struct {
RavenError
}
ConflictError maps to server's 409 Conflict response
func (*ConflictError) Error ¶
func (e *ConflictError) Error() string
Error makes it conform to error interface
func (*ConflictError) WrappedError ¶
func (e *ConflictError) WrappedError() error
hackish way to get a wrapped error
type ConflictSolver ¶
type ConflictSolver struct { ResolveByCollection map[string]*ScriptResolver `json:"ResolveByCollection"` ResolveToLatest bool `json:"ResolveToLatest"` }
ConflictSolver describes how to resolve conflicts
type ConnectionString ¶
type ConnectionString struct { Name string `json:"Name"` // Note: Java has this as a virtual function getType() Type ConnectionStringType `json:"Type"` }
ConnectionString represents connection string used as argument to PutConnectionStringCommand
type ConnectionStringType ¶
type ConnectionStringType = string
TODO: only used in ConnectionString which is unused
type CreateDatabaseCommand ¶
type CreateDatabaseCommand struct { RavenCommandBase Result *DatabasePutResult // contains filtered or unexported fields }
CreateDatabaseCommand represents "create database" command
func NewCreateDatabaseCommand ¶
func NewCreateDatabaseCommand(conventions *DocumentConventions, databaseRecord *DatabaseRecord, replicationFactor int) (*CreateDatabaseCommand, error)
NewCreateDatabaseCommand returns new CreateDatabaseCommand
func (*CreateDatabaseCommand) CreateRequest ¶
func (c *CreateDatabaseCommand) CreateRequest(node *ServerNode) (*http.Request, error)
func (*CreateDatabaseCommand) SetResponse ¶
func (c *CreateDatabaseCommand) SetResponse(response []byte, fromCache bool) error
type CreateDatabaseOperation ¶
type CreateDatabaseOperation struct {
// contains filtered or unexported fields
}
CreateDatabaseOperation represents "create database" operation
func NewCreateDatabaseOperation ¶
func NewCreateDatabaseOperation(databaseRecord *DatabaseRecord, replicationFactor int) *CreateDatabaseOperation
NewCreateDatabaseOperation returns CreateDatabaseOperation
func (*CreateDatabaseOperation) GetCommand ¶
func (o *CreateDatabaseOperation) GetCommand(conventions *DocumentConventions) (RavenCommand, error)
GetCommand returns command for this operation
type CreateSampleDataCommand ¶
type CreateSampleDataCommand struct {
RavenCommandBase
}
CreateSampleDataCommand represents command for creating sample data
func NewCreateSampleDataCommand ¶
func NewCreateSampleDataCommand(conventions *DocumentConventions) *CreateSampleDataCommand
NewCreateSampleDataCommand returns new CreateSampleDataCommand
func (*CreateSampleDataCommand) CreateRequest ¶
func (c *CreateSampleDataCommand) CreateRequest(node *ServerNode) (*http.Request, error)
type CreateSampleDataOperation ¶
type CreateSampleDataOperation struct {
Command *CreateSampleDataCommand
}
CreateSampleDataOperation represents operation to create sample data
func NewCreateSampleDataOperation ¶
func NewCreateSampleDataOperation() *CreateSampleDataOperation
NewCreateSampleDataOperation
func (*CreateSampleDataOperation) GetCommand ¶
func (o *CreateSampleDataOperation) GetCommand(conventions *DocumentConventions) (RavenCommand, error)
GetCommand returns a comman
type CreateSubscriptionCommand ¶
type CreateSubscriptionCommand struct { RavenCommandBase Result *CreateSubscriptionResult // contains filtered or unexported fields }
CreateSubscriptionCommand represents "create subscription" command
func (*CreateSubscriptionCommand) CreateRequest ¶
func (c *CreateSubscriptionCommand) CreateRequest(node *ServerNode) (*http.Request, error)
func (*CreateSubscriptionCommand) SetResponse ¶
func (c *CreateSubscriptionCommand) SetResponse(response []byte, fromCache bool) error
type CreateSubscriptionResult ¶
type CreateSubscriptionResult struct {
Name string `json:"Name"`
}
CreateSubscriptionResult represents result for "create subscription" command
type CurrentIndexAndNode ¶
type CurrentIndexAndNode struct {
// contains filtered or unexported fields
}
func NewCurrentIndexAndNode ¶
func NewCurrentIndexAndNode(currentIndex int, currentNode *ServerNode) *CurrentIndexAndNode
type DatabaseChanges ¶
type DatabaseChanges struct {
// contains filtered or unexported fields
}
DatabaseChanges notifies about changes to a database
func (*DatabaseChanges) AddConnectionStatusChanged ¶
func (c *DatabaseChanges) AddConnectionStatusChanged(handler func()) int
func (*DatabaseChanges) AddOnError ¶
func (c *DatabaseChanges) AddOnError(handler func(error)) int
func (*DatabaseChanges) Close ¶
func (c *DatabaseChanges) Close()
Close closes DatabaseChanges and release its resources
func (*DatabaseChanges) EnsureConnectedNow ¶
func (c *DatabaseChanges) EnsureConnectedNow() error
func (*DatabaseChanges) ForAllDocuments ¶
func (c *DatabaseChanges) ForAllDocuments(cb func(*DocumentChange)) (CancelFunc, error)
ForAllDocuments registers a callback that will be called for changes on all documents. It returns a function to call to unregister the callback.
func (*DatabaseChanges) ForAllIndexes ¶
func (c *DatabaseChanges) ForAllIndexes(cb func(*IndexChange)) (CancelFunc, error)
ForAllIndexes registers a callback that will be called when a change on any index happens. It returns a function to call to unregister the callback.
func (*DatabaseChanges) ForAllOperations ¶
func (c *DatabaseChanges) ForAllOperations(cb func(change *OperationStatusChange)) (CancelFunc, error)
ForAllOperations registers a callback that will be called when any operation changes status. It returns a function to call to unregister the callback.
func (*DatabaseChanges) ForDocument ¶
func (c *DatabaseChanges) ForDocument(docID string, cb func(*DocumentChange)) (CancelFunc, error)
ForDocument registers a callback that will be called for changes on a ocument with a given id It returns a function to call to unregister the callback.
func (*DatabaseChanges) ForDocumentsInCollection ¶
func (c *DatabaseChanges) ForDocumentsInCollection(collectionName string, cb func(*DocumentChange)) (CancelFunc, error)
ForDocumentsInCollection registers a callback that will be called on changes for documents in a given collection. It returns a function to call to unregister the callback.
func (*DatabaseChanges) ForDocumentsInCollectionOfType ¶
func (c *DatabaseChanges) ForDocumentsInCollectionOfType(clazz reflect.Type, cb func(*DocumentChange)) (CancelFunc, error)
ForDocumentsInCollectionOfType registers a callback that will be called on changes for documents of a given type. It returns a function to call to unregister the callback.
func (*DatabaseChanges) ForDocumentsStartingWith ¶
func (c *DatabaseChanges) ForDocumentsStartingWith(docIDPrefix string, cb func(*DocumentChange)) (CancelFunc, error)
ForDocumentsStartingWith registers a callback that will be called for changes on documents whose id starts with a given prefix. It returns a function to call to unregister the callback.
func (*DatabaseChanges) ForIndex ¶
func (c *DatabaseChanges) ForIndex(indexName string, cb func(*IndexChange)) (CancelFunc, error)
ForIndex registers a callback that will be called for changes in an index with a given name. It returns a function to call to unregister the callback.
func (*DatabaseChanges) ForOperationID ¶
func (c *DatabaseChanges) ForOperationID(operationID int64, cb func(*OperationStatusChange)) (CancelFunc, error)
ForOperationID registers a callback that will be called when a change happens to operation with a given id. It returns a function to call to unregister the callback.
func (*DatabaseChanges) RemoveConnectionStatusChanged ¶
func (c *DatabaseChanges) RemoveConnectionStatusChanged(handlerID int)
func (*DatabaseChanges) RemoveOnError ¶
func (c *DatabaseChanges) RemoveOnError(handlerID int)
type DatabaseConcurrentLoadTimeoutError ¶
type DatabaseConcurrentLoadTimeoutError struct {
RavenError
}
func (*DatabaseConcurrentLoadTimeoutError) Error ¶
func (e *DatabaseConcurrentLoadTimeoutError) Error() string
Error makes it conform to error interface
func (*DatabaseConcurrentLoadTimeoutError) WrappedError ¶
func (e *DatabaseConcurrentLoadTimeoutError) WrappedError() error
hackish way to get a wrapped error
type DatabaseDisabledError ¶
type DatabaseDisabledError struct {
RavenError
}
func (*DatabaseDisabledError) Error ¶
func (e *DatabaseDisabledError) Error() string
Error makes it conform to error interface
func (*DatabaseDisabledError) WrappedError ¶
func (e *DatabaseDisabledError) WrappedError() error
hackish way to get a wrapped error
type DatabaseDoesNotExistError ¶
type DatabaseDoesNotExistError struct {
RavenError
}
DatabaseDoesNotExistError represents "database not not exist" error
func (*DatabaseDoesNotExistError) Error ¶
func (e *DatabaseDoesNotExistError) Error() string
Error makes it conform to error interface
func (*DatabaseDoesNotExistError) WrappedError ¶
func (e *DatabaseDoesNotExistError) WrappedError() error
hackish way to get a wrapped error
type DatabaseLoadFailureError ¶
type DatabaseLoadFailureError struct {
RavenError
}
func (*DatabaseLoadFailureError) Error ¶
func (e *DatabaseLoadFailureError) Error() string
Error makes it conform to error interface
func (*DatabaseLoadFailureError) WrappedError ¶
func (e *DatabaseLoadFailureError) WrappedError() error
hackish way to get a wrapped error
type DatabaseLoadTimeoutError ¶
type DatabaseLoadTimeoutError struct {
RavenError
}
func (*DatabaseLoadTimeoutError) Error ¶
func (e *DatabaseLoadTimeoutError) Error() string
Error makes it conform to error interface
func (*DatabaseLoadTimeoutError) WrappedError ¶
func (e *DatabaseLoadTimeoutError) WrappedError() error
hackish way to get a wrapped error
type DatabaseNotRelevantError ¶
type DatabaseNotRelevantError struct {
RavenError
}
func (*DatabaseNotRelevantError) Error ¶
func (e *DatabaseNotRelevantError) Error() string
Error makes it conform to error interface
func (*DatabaseNotRelevantError) WrappedError ¶
func (e *DatabaseNotRelevantError) WrappedError() error
hackish way to get a wrapped error
type DatabasePromotionStatus ¶
type DatabasePromotionStatus = string
type DatabasePutResult ¶
type DatabasePutResult struct { RaftCommandIndex int64 `json:"RaftCommandIndex"` Name string `json:"Name"` DatabaseTopology Topology `json:"Topology"` NodesAddedTo []string `json:"NodesAddedTo"` }
DatabasePutResult describes server response for e.g. CreateDatabaseCommand
type DatabaseRecord ¶
type DatabaseRecord struct { DatabaseName string `json:"DatabaseName"` Disabled bool `json:"Disabled"` DataDirectory string `json:"DataDirectory,omitempty"` Settings map[string]string `json:"Settings"` ConflictSolverConfig *ConflictSolver `json:"ConflictSolverConfig"` Encrypted bool `json:"Encrypted"` DatabaseTopology *DatabaseTopology `json:"DatabaseTopology"` }
DatabaseRecord represents database record
func NewDatabaseRecord ¶
func NewDatabaseRecord() *DatabaseRecord
NewDatabaseRecord returns new database record
type DatabaseRecordWithEtag ¶
type DatabaseRecordWithEtag struct { DatabaseRecord Etag int64 `json:"Etag"` }
DatabaseRecordWithEtag represents database record with etag
type DatabaseStatistics ¶
type DatabaseStatistics struct { LastDocEtag int64 `json:"LastDocEtag"` CountOfIndexes int `json:"CountOfIndexes"` CountOfDocuments int64 `json:"CountOfDocuments"` CountOfRevisionDocuments int64 `json:"CountOfRevisionDocuments"` // TODO: present in Java, not seen in JSON CountOfDocumentsConflicts int64 `json:"CountOfDocumentsConflicts"` CountOfTombstones int64 `json:"CountOfTombstones"` CountOfConflicts int64 `json:"CountOfConflicts"` CountOfAttachments int64 `json:"CountOfAttachments"` CountOfUniqueAttachments int64 `json:"CountOfUniqueAttachments"` Indexes []*IndexInformation `json:"Indexes"` DatabaseChangeVector string `json:"DatabaseChangeVector"` DatabaseID string `json:"DatabaseId"` Is64Bit bool `json:"Is64Bit"` Pager string `json:"Pager"` LastIndexingTime *Time `json:"LastIndexingTime"` SizeOnDisk *Size `json:"SizeOnDisk"` TempBuffersSizeOnDisk *Size `json:"TempBuffersSizeOnDisk"` NumberOfTransactionMergerQueueOperations int `json:"NumberOfTransactionMergerQueueOperations"` }
DatabaseStatistics describes a result of GetStatisticsCommand
func (*DatabaseStatistics) GetLastIndexingTime ¶
func (s *DatabaseStatistics) GetLastIndexingTime() *time.Time
GetLastIndexingTime returns last indexing time
type DatabaseTopology ¶
type DatabaseTopology struct { Members []string `json:"Members"` Promotables []string `json:"Promotables"` Rehabs []string `json:"Rehabs"` PredefinedMentors map[string]string `json:"PredefinedMentors"` DemotionReasons map[string]string `json:"DemotionReasons"` PromotablesStatus map[string]string `json:"PromotablesStatus"` ReplicationFactor int `json:"ReplicationFactor"` DynamicNodesDistribution bool `json:"DynamicNodesDistribution"` Stamp LeaderStamp `json:"Stamp"` }
DatabaseTopology describes a topology of the database
type DeleteAttachmentCommand ¶
type DeleteAttachmentCommand struct { RavenCommandBase // contains filtered or unexported fields }
func NewDeleteAttachmentCommand ¶
func NewDeleteAttachmentCommand(documentID string, name string, changeVector *string) (*DeleteAttachmentCommand, error)
func (*DeleteAttachmentCommand) CreateRequest ¶
func (c *DeleteAttachmentCommand) CreateRequest(node *ServerNode) (*http.Request, error)
type DeleteAttachmentCommandData ¶
type DeleteAttachmentCommandData struct {
*CommandData
}
func NewDeleteAttachmentCommandData ¶
func NewDeleteAttachmentCommandData(documentID string, name string, changeVector *string) (*DeleteAttachmentCommandData, error)
NewDeleteAttachmentCommandData creates CommandData for Delete Attachment command
type DeleteAttachmentOperation ¶
type DeleteAttachmentOperation struct { Command *DeleteAttachmentCommand // contains filtered or unexported fields }
func NewDeleteAttachmentOperation ¶
func NewDeleteAttachmentOperation(documentID string, name string, changeVector *string) *DeleteAttachmentOperation
func (*DeleteAttachmentOperation) GetCommand ¶
func (o *DeleteAttachmentOperation) GetCommand(store *DocumentStore, conventions *DocumentConventions, cache *httpCache) (RavenCommand, error)
type DeleteByIndexCommand ¶
type DeleteByIndexCommand struct { RavenCommandBase Result *OperationIDResult // contains filtered or unexported fields }
func NewDeleteByIndexCommand ¶
func NewDeleteByIndexCommand(conventions *DocumentConventions, queryToDelete *IndexQuery, options *QueryOperationOptions) (*DeleteByIndexCommand, error)
func (*DeleteByIndexCommand) CreateRequest ¶
func (c *DeleteByIndexCommand) CreateRequest(node *ServerNode) (*http.Request, error)
func (*DeleteByIndexCommand) SetResponse ¶
func (c *DeleteByIndexCommand) SetResponse(response []byte, fromCache bool) error
type DeleteByQueryOperation ¶
type DeleteByQueryOperation struct { Command *DeleteByIndexCommand // contains filtered or unexported fields }
func NewDeleteByQueryOperation ¶
func NewDeleteByQueryOperation(queryToDelete *IndexQuery, options *QueryOperationOptions) (*DeleteByQueryOperation, error)
func (*DeleteByQueryOperation) GetCommand ¶
func (o *DeleteByQueryOperation) GetCommand(store *DocumentStore, conventions *DocumentConventions, cache *httpCache) (RavenCommand, error)
type DeleteCommandData ¶
type DeleteCommandData struct {
CommandData
}
DeleteCommandData represents data for delete command
type DeleteCompareExchangeValueOperation ¶
type DeleteCompareExchangeValueOperation struct { Command *RemoveCompareExchangeValueCommand // contains filtered or unexported fields }
func (*DeleteCompareExchangeValueOperation) GetCommand ¶
func (o *DeleteCompareExchangeValueOperation) GetCommand(store *DocumentStore, conventions *DocumentConventions, cache *httpCache) (RavenCommand, error)
type DeleteDatabaseCommand ¶
type DeleteDatabaseCommand struct { RavenCommandBase Result *DeleteDatabaseResult // contains filtered or unexported fields }
func NewDeleteDatabaseCommand ¶
func NewDeleteDatabaseCommand(conventions *DocumentConventions, parameters *DeleteDatabaseParameters) (*DeleteDatabaseCommand, error)
func (*DeleteDatabaseCommand) CreateRequest ¶
func (c *DeleteDatabaseCommand) CreateRequest(node *ServerNode) (*http.Request, error)
func (*DeleteDatabaseCommand) SetResponse ¶
func (c *DeleteDatabaseCommand) SetResponse(response []byte, fromCache bool) error
type DeleteDatabaseResult ¶
type DeleteDatabaseResult struct { RaftCommandIndex int64 `json:"RaftCommandIndex"` PendingDeletes []string `json:"PendingDeletes"` }
DeleteDatabaseResult represents result of Delete Database command
type DeleteDatabasesOperation ¶
type DeleteDatabasesOperation struct { Command *DeleteDatabaseCommand // contains filtered or unexported fields }
func NewDeleteDatabasesOperation ¶
func NewDeleteDatabasesOperation(databaseName string, hardDelete bool) *DeleteDatabasesOperation
func NewDeleteDatabasesOperationWithParameters ¶
func NewDeleteDatabasesOperationWithParameters(parameters *DeleteDatabaseParameters) *DeleteDatabasesOperation
func (*DeleteDatabasesOperation) GetCommand ¶
func (o *DeleteDatabasesOperation) GetCommand(conventions *DocumentConventions) (RavenCommand, error)
type DeleteDocumentCommand ¶
type DeleteDocumentCommand struct { RavenCommandBase // contains filtered or unexported fields }
func NewDeleteDocumentCommand ¶
func NewDeleteDocumentCommand(id string, changeVector *string) *DeleteDocumentCommand
func (*DeleteDocumentCommand) CreateRequest ¶
func (c *DeleteDocumentCommand) CreateRequest(node *ServerNode) (*http.Request, error)
type DeleteIndexCommand ¶
type DeleteIndexCommand struct { RavenCommandBase // contains filtered or unexported fields }
func NewDeleteIndexCommand ¶
func NewDeleteIndexCommand(indexName string) (*DeleteIndexCommand, error)
func (*DeleteIndexCommand) CreateRequest ¶
func (c *DeleteIndexCommand) CreateRequest(node *ServerNode) (*http.Request, error)
type DeleteIndexOperation ¶
type DeleteIndexOperation struct { Command *DeleteIndexCommand // contains filtered or unexported fields }
func NewDeleteIndexOperation ¶
func NewDeleteIndexOperation(indexName string) *DeleteIndexOperation
func (*DeleteIndexOperation) GetCommand ¶
func (o *DeleteIndexOperation) GetCommand(conventions *DocumentConventions) (RavenCommand, error)
type DeleteSubscriptionCommand ¶
type DeleteSubscriptionCommand struct { RavenCommandBase // contains filtered or unexported fields }
DeleteSubscriptionCommand describes "delete subscription" command