mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 05:42:25 -05:00
[chore]: Bump github.com/gin-contrib/sessions from 0.0.5 to 1.0.0 (#2782)
This commit is contained in:
parent
a24936040c
commit
29031d1e27
93 changed files with 2888 additions and 969 deletions
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...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue