update dependencies (#6267)
Signed-off-by: hongming <coder.scala@gmail.com>
This commit is contained in:
9
vendor/go.mongodb.org/mongo-driver/bson/bsonrw/writer.go
generated
vendored
9
vendor/go.mongodb.org/mongo-driver/bson/bsonrw/writer.go
generated
vendored
@@ -56,6 +56,8 @@ type ValueWriter interface {
|
||||
}
|
||||
|
||||
// ValueWriterFlusher is a superset of ValueWriter that exposes functionality to flush to the underlying buffer.
|
||||
//
|
||||
// Deprecated: ValueWriterFlusher will not be supported in Go Driver 2.0.
|
||||
type ValueWriterFlusher interface {
|
||||
ValueWriter
|
||||
Flush() error
|
||||
@@ -64,13 +66,20 @@ type ValueWriterFlusher interface {
|
||||
// BytesWriter is the interface used to write BSON bytes to a ValueWriter.
|
||||
// This interface is meant to be a superset of ValueWriter, so that types that
|
||||
// implement ValueWriter may also implement this interface.
|
||||
//
|
||||
// Deprecated: BytesWriter will not be supported in Go Driver 2.0.
|
||||
type BytesWriter interface {
|
||||
WriteValueBytes(t bsontype.Type, b []byte) error
|
||||
}
|
||||
|
||||
// SliceWriter allows a pointer to a slice of bytes to be used as an io.Writer.
|
||||
//
|
||||
// Deprecated: SliceWriter will not be supported in Go Driver 2.0.
|
||||
type SliceWriter []byte
|
||||
|
||||
// Write writes the bytes to the underlying slice.
|
||||
//
|
||||
// Deprecated: SliceWriter will not be supported in Go Driver 2.0.
|
||||
func (sw *SliceWriter) Write(p []byte) (int, error) {
|
||||
written := len(p)
|
||||
*sw = append(*sw, p...)
|
||||
|
||||
Reference in New Issue
Block a user