Cat /dev/Nulo
892af35ea3
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
27 lines
326 B
Go
27 lines
326 B
Go
package common
|
|
|
|
import (
|
|
"net/url"
|
|
)
|
|
|
|
type Responder interface {
|
|
Respond(url *url.URL) (*Uploadable, Error)
|
|
}
|
|
type Uploadable struct {
|
|
VideoUrl string
|
|
*ImagesWithAudio
|
|
Caption string
|
|
}
|
|
type ImagesWithAudio struct {
|
|
ImageUrls []string
|
|
AudioUrl string
|
|
}
|
|
|
|
type Error uint8
|
|
|
|
const (
|
|
OK Error = iota
|
|
NotValid
|
|
HadError
|
|
)
|