photoprism-client-go/api/v1/meta.go
Kris Nóva 95794522e0 Adding sample auth code that will most likely change and api implementation
Signed-off-by: Kris Nóva <kris@nivenly.com>
2021-01-31 00:08:52 -08:00

21 lines
320 B
Go

package api
import "net/http"
type Meta struct {
requested bool
response *http.Response
}
// TODO We need an http.Client and an object interface{}
func (m *Meta) Request() error {
m.requested = true
return nil
}
func (m *Meta) Response() *http.Response {
if !m.requested {
return nil
}
return m.response
}