Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownType = errors.New("unknown content type")
Functions ¶
Types ¶
type FilePreview ¶
type FilePreview struct {
// contains filtered or unexported fields
}
func NewFilePreview ¶
func NewFilePreview(name string, mime string, size uint64) FilePreview
func (*FilePreview) ContentType ¶
func (p *FilePreview) ContentType() string
func (*FilePreview) Description ¶
func (p *FilePreview) Description() string
func (*FilePreview) FileName ¶
func (p *FilePreview) FileName() string
func (*FilePreview) Size ¶
func (p *FilePreview) Size() uint64
func (*FilePreview) String ¶
func (p *FilePreview) String() string
func (*FilePreview) Title ¶
func (p *FilePreview) Title() string
type GeminiPreview ¶
type GeminiPreview struct {
// contains filtered or unexported fields
}
func ParseGemini ¶
func ParseGemini(reader io.Reader, charset string) (*GeminiPreview, error)
func (*GeminiPreview) String ¶
func (p *GeminiPreview) String() string
func (*GeminiPreview) Title ¶
func (p *GeminiPreview) Title() string
type HTMLPreview ¶
type HTMLPreview struct {
// contains filtered or unexported fields
}
func (*HTMLPreview) ContentType ¶
func (p *HTMLPreview) ContentType() string
func (*HTMLPreview) Description ¶
func (p *HTMLPreview) Description() string
func (*HTMLPreview) String ¶
func (p *HTMLPreview) String() string
func (*HTMLPreview) Title ¶
func (p *HTMLPreview) Title() string
type XHTMLPreview ¶
type XHTMLPreview struct {
HTMLPreview
}
func ParseXHTML ¶
func ParseXHTML(reader io.Reader, charset string) (*XHTMLPreview, error)
func (*XHTMLPreview) ContentType ¶
func (p *XHTMLPreview) ContentType() string
Click to show internal directories.
Click to hide internal directories.