mirror of
https://github.com/mainnika/mongox-go-driver.git
synced 2026-05-22 15:53:36 +00:00
Missed docs
This commit is contained in:
@@ -38,6 +38,7 @@ func (l *StreamLoader) DecodeNext() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Decode function decodes the current cursor document into the target
|
||||
func (l *StreamLoader) Decode() error {
|
||||
|
||||
base.Reset(l.target)
|
||||
|
||||
@@ -50,6 +50,7 @@ type JSONBased interface {
|
||||
SetID(id primitive.D)
|
||||
}
|
||||
|
||||
// InterfaceBased is an interface for documents that have custom declated type for the _id field
|
||||
type InterfaceBased interface {
|
||||
GetID() interface{}
|
||||
SetID(id interface{})
|
||||
|
||||
Reference in New Issue
Block a user