diff options
Diffstat (limited to 'connector/mediaobject.go')
-rw-r--r-- | connector/mediaobject.go | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/connector/mediaobject.go b/connector/mediaobject.go index 244e571..f904459 100644 --- a/connector/mediaobject.go +++ b/connector/mediaobject.go @@ -58,10 +58,10 @@ func (m *FileMediaObject) URL() string { // ---- type UrlMediaObject struct { - ObjectFilename string - ObjectSize int64 - ObjectMimetype string - ObjectURL string + ObjectFilename string + ObjectSize int64 + ObjectMimetype string + ObjectURL string ObjectImageSize *ImageSize } @@ -96,10 +96,10 @@ func (m *UrlMediaObject) URL() string { // ---- type BlobMediaObject struct { - ObjectFilename string - ObjectMimetype string + ObjectFilename string + ObjectMimetype string ObjectImageSize *ImageSize - ObjectData []byte + ObjectData []byte } func (m *BlobMediaObject) Filename() string { @@ -129,6 +129,7 @@ func (m *BlobMediaObject) URL() string { type nullCloseReader struct { io.Reader } + func (ncr nullCloseReader) Close() error { return nil } @@ -136,10 +137,10 @@ func (ncr nullCloseReader) Close() error { // ---- type LazyBlobMediaObject struct { - ObjectFilename string - ObjectMimetype string + ObjectFilename string + ObjectMimetype string ObjectImageSize *ImageSize - ObjectData []byte + ObjectData []byte GetFn func(o *LazyBlobMediaObject) error } |