Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrContentHandlerNotSet = errors.New("content handler not set")
View Source
var ErrContextNotSet = errors.New("context not set")
View Source
var ErrUnknownContentType = errors.New("unknown content type")
Functions ¶
This section is empty.
Types ¶
type ContentType ¶
type GikaContext ¶
type GikaContext struct { FullPath string Size int64 ContentType ContentType Reader io.ReadSeekCloser }
func NewContext ¶
func NewContext() *GikaContext
func (*GikaContext) Close ¶
func (c *GikaContext) Close() error
func (*GikaContext) Update ¶
func (c *GikaContext) Update(fullPath string, size int64, reader io.ReadSeekCloser) (*GikaContext, error)
type IContentHandler ¶
type IContentHandler interface {
HandleContent(context *GikaContext) (Entries, error)
}
Click to show internal directories.
Click to hide internal directories.