fg-nucleus-library/main.go

25 lines
543 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 (
"github.com/google/uuid"
)
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
}