Remove multi-user auth

This commit is contained in:
simon987
2019-03-09 12:44:15 -05:00
parent 04f2ff8900
commit e2ba51b77a
5 changed files with 4 additions and 108 deletions

View File

@@ -10,25 +10,6 @@ type GenericResponse struct {
Ok bool `json:"ok"`
}
type CreateClientRequest struct {
Alias string `json:"alias"`
}
func (req *CreateClientRequest) IsValid() bool {
return len(req.Alias) > 3
}
type CreateClientResponse struct {
Ok bool `json:"ok"`
Secret string `json:"secret,omitempty"`
}
type Client struct {
ID int64
Alias string `json:"alias"`
Secret string `json:"secret"`
}
type AllocateUploadSlotRequest struct {
Token string `json:"token"`
MaxSize int64 `json:"max_size"`