Switched to a limitedReader instead
This commit is contained in:
parent
1fa7a55d82
commit
240c50b06c
7
main.go
7
main.go
|
@ -4,6 +4,7 @@ import (
|
||||||
"crypto/ed25519"
|
"crypto/ed25519"
|
||||||
library "git.ailur.dev/ailur/fg-library/v3"
|
library "git.ailur.dev/ailur/fg-library/v3"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
|
"io"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -21,9 +22,9 @@ type OAuthResponse struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type File struct {
|
type File struct {
|
||||||
Name string `validate:"required"`
|
Name string `validate:"required"`
|
||||||
User uuid.UUID `validate:"required"`
|
User uuid.UUID `validate:"required"`
|
||||||
Bytes []byte // Only used in write operations
|
Reader io.LimitedReader // Only used for write operations
|
||||||
}
|
}
|
||||||
|
|
||||||
type Quota struct {
|
type Quota struct {
|
||||||
|
|
Loading…
Reference in New Issue