Documentation ¶
Index ¶
- Constants
- type BatchCommand
- type BulkCommands
- type Counter
- type CounterOperation
- type CounterOperationDocument
- type CounterOperationType
- type CounterOperations
- type Counters
- type Database
- type DeleteCommand
- type DeletePrefixCommand
- type DocsRequest
- type Duration
- type Index
- type IndexFieldOptions
- type IndexesRequest
- type ModelMetadata
- type Operation
- type OperationProgress
- type OperationResult
- type OperationStatus
- type Patch
- type PutCommand
- type Query
- type Result
- type Results
- type RevisionConfig
- type Revisions
Constants ¶
View Source
const ( OperationStatusInProgress = "InProgress" OperationStatusCompleted = "Completed" OperationStatusFaulted = "Faulted" )
View Source
const ( CounterOperationTypeIncrement = CounterOperationType("Increment") CounterOperationTypeDelete = CounterOperationType("Delete") CounterOperationTypeGet = CounterOperationType("Get") )
View Source
const DateTimeFormat = "2006-01-02T15:04:05.0000000Z"
DateTimeFormat to send & receive from RavenDB. Nanoseconds are important or comparisons and index operations will fail in mysterious ways. Zeros for the nanoseconds is bad on purpose to avoid formatting them.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchCommand ¶
type BatchCommand interface {
// contains filtered or unexported methods
}
type BulkCommands ¶
type BulkCommands struct {
Commands []BatchCommand
}
type CounterOperation ¶
type CounterOperation struct { CounterName string Delta int64 Type CounterOperationType }
type CounterOperationDocument ¶
type CounterOperationDocument struct { DocumentID string `json:"DocumentId"` Operations []*CounterOperation }
type CounterOperationType ¶
type CounterOperationType string
type CounterOperations ¶
type CounterOperations struct {
Documents []*CounterOperationDocument
}
type DeleteCommand ¶
type DeletePrefixCommand ¶
type DocsRequest ¶ added in v1.87.2
type DocsRequest struct {
IDs []string `json:"Ids"`
}
type Index ¶
type Index struct { Type string Name string Maps []string Reduce *string Fields map[string]*IndexFieldOptions OutputReduceToCollection *string AdditionalSources map[string]string }
func (*Index) FieldOrCreate ¶
func (index *Index) FieldOrCreate(name string) *IndexFieldOptions
type IndexFieldOptions ¶
type IndexesRequest ¶
type IndexesRequest struct {
Indexes []*Index
}
type ModelMetadata ¶
type OperationProgress ¶
type OperationResult ¶
type OperationStatus ¶
type OperationStatus struct { Status string Progress *OperationProgress Result *OperationResult }
type PutCommand ¶
type Result ¶
type Result map[string]interface{}
func (Result) DirectMetadata ¶
func (Result) MetadataBool ¶
type RevisionConfig ¶
type Revisions ¶
type Revisions struct { Default *RevisionConfig Collections map[string]*RevisionConfig }
Click to show internal directories.
Click to hide internal directories.