fg-nucleus-library/main.go

30 lines
637 B
Go
Raw Normal View History

2024-10-04 17:30:02 +01:00
package library
2024-10-16 18:04:11 +01:00
import (
2024-11-03 16:52:46 +00:00
"github.com/google/uuid"
2024-10-16 18:04:11 +01:00
)
2024-10-04 17:30:02 +01:00
type OAuthInformation struct {
Token string `json:"token"`
Name string `json:"name"`
RedirectUri string `json:"redirectUri"`
KeyShareUri string `json:"keyShareUri"`
Scopes []string `json:"scopes"`
}
type OAuthResponse struct {
AppID string `json:"appId"`
SecretKey string `json:"secretKey"`
}
2024-10-16 17:59:52 +01:00
type File struct {
Name string `validate:"required"`
User uuid.UUID `validate:"required"`
Bytes []byte // Only used in write operations
}
2024-11-03 16:52:46 +00:00
type Quota struct {
User uuid.UUID `validate:"required"`
Bytes int64 `validate:"required"`
}