Missed docs

v2
Nikita Tokarchuk 4 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
}
// 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{})

Loading…
Cancel
Save