Documentation
¶
Index ¶
Constants ¶
View Source
const ChunkSize = 4096
ChunkSize is the maximum size of each base64 chunk in the Kitty protocol.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
Encoder encodes images using the Kitty graphics protocol.
func NewEncoder ¶
NewEncoder creates a new Encoder with the given options.
type Option ¶
type Option func(*Encoder)
Option configures an Encoder.
func WithOnAfterEncode ¶
func WithOnAfterEncode(fn func()) Option
WithOnAfterEncode sets the callback called after encoding completes.
func WithOnAfterEncodeChunk ¶
WithOnAfterEncodeChunk sets the callback called after each chunk is encoded.
func WithOnBeforeEncode ¶
func WithOnBeforeEncode(fn func()) Option
WithOnBeforeEncode sets the callback called before encoding starts.
func WithOnBeforeEncodeChunk ¶
WithOnBeforeEncodeChunk sets the callback called before each chunk is encoded.
Click to show internal directories.
Click to hide internal directories.