Documentation ¶
Overview ¶
Package file contains shared functionality between various file upload mechanisms.
Index ¶
Constants ¶
View Source
const (
// The namespace used by this package, provided as a convenience.
NSMeta = `urn:xmpp:file:metadata:0`
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Meta ¶
type Meta struct { MediaType string Name string Date time.Time Size uint64 Hash crypto.HashOutput Width uint64 Height uint64 Length uint64 }
Meta is an element that contains metadata about a file.
func (*Meta) MarshalXML ¶
MarshalXML implements xml.Marshaler.
func (*Meta) TokenReader ¶
func (m *Meta) TokenReader() xml.TokenReader
TokenReader satisfies the xmlstream.Marshaler interface.
func (*Meta) UnmarshalXML ¶
UnmarshalXML implements xml.Unmarshaler.
Click to show internal directories.
Click to hide internal directories.