Missed docs

v2
Nikita Tokarchuk 5 years ago
parent 0b313e82fb
commit 6e5dccbc96
  1. 1
      mongox/database/streamloader.go
  2. 1
      mongox/mongox.go

@ -38,6 +38,7 @@ func (l *StreamLoader) DecodeNext() error {
return nil return nil
} }
// Decode function decodes the current cursor document into the target
func (l *StreamLoader) Decode() error { func (l *StreamLoader) Decode() error {
base.Reset(l.target) base.Reset(l.target)

@ -50,6 +50,7 @@ type JSONBased interface {
SetID(id primitive.D) SetID(id primitive.D)
} }
// InterfaceBased is an interface for documents that have custom declated type for the _id field
type InterfaceBased interface { type InterfaceBased interface {
GetID() interface{} GetID() interface{}
SetID(id interface{}) SetID(id interface{})

Loading…
Cancel
Save