Add new function to generate files that can be resized. Add states for upcoming queue changes.

This commit is contained in:
2021-11-01 20:59:01 +10:30
parent 71c70ce965
commit 6fa6c34ccb
2 changed files with 39 additions and 0 deletions

View File

@@ -23,6 +23,16 @@ import (
"golang.org/x/image/font/inconsolata"
)
type State int
const (
Pending = iota
Queued
Uploading
Complete
Failed
)
type HTTPClient interface {
Do(req *http.Request) (*http.Response, error)
}