Compare commits
3 commits
Author | SHA1 | Date | |
---|---|---|---|
5073b43777 | |||
f2cbf28b20 | |||
240c50b06c |
2 changed files with 4 additions and 5 deletions
2
go.sum
2
go.sum
|
@ -1,5 +1,3 @@
|
|||
git.ailur.dev/ailur/fg-library/v3 v3.5.0 h1:BGDlS4nQ2PyZWNU4gH3eckVqhZUFIM/zKIj/HXx8RmA=
|
||||
git.ailur.dev/ailur/fg-library/v3 v3.5.0/go.mod h1:ArNsafpqES2JuxQM5aM+bNe0FwHLIsL6pbjpiWvDwGs=
|
||||
git.ailur.dev/ailur/fg-library/v3 v3.6.2 h1:PNJKxpvbel2iDeB9+/rpYRyMoim6JjRHOXPYFYky7Ng=
|
||||
git.ailur.dev/ailur/fg-library/v3 v3.6.2/go.mod h1:ArNsafpqES2JuxQM5aM+bNe0FwHLIsL6pbjpiWvDwGs=
|
||||
github.com/go-chi/chi/v5 v5.2.0 h1:Aj1EtB0qR2Rdo2dG4O94RIU35w2lvQSj6BRA4+qwFL0=
|
||||
|
|
7
main.go
7
main.go
|
@ -4,6 +4,7 @@ import (
|
|||
"crypto/ed25519"
|
||||
library "git.ailur.dev/ailur/fg-library/v3"
|
||||
"github.com/google/uuid"
|
||||
"io"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@ -21,9 +22,9 @@ type OAuthResponse struct {
|
|||
}
|
||||
|
||||
type File struct {
|
||||
Name string `validate:"required"`
|
||||
User uuid.UUID `validate:"required"`
|
||||
Bytes []byte // Only used in write operations
|
||||
Name string `validate:"required"`
|
||||
User uuid.UUID `validate:"required"`
|
||||
Reader *io.LimitedReader // Only used for write operations
|
||||
}
|
||||
|
||||
type Quota struct {
|
||||
|
|
Loading…
Add table
Reference in a new issue