types

package
v0.0.0-...-72c091b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2022 License: MIT Imports: 6 Imported by: 0

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 ContentType struct {
	Value     string
	Extension string
	Charset   string
}

type Entries

type Entries map[string][]byte

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) ReaderAt

func (c *GikaContext) ReaderAt() (io.ReaderAt, bool)

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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL