reader

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package reader implements a size-limited reader for uploading templates of multiple kinds.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LimitReader

type LimitReader struct {
	// contains filtered or unexported fields
}

LimitReader is a size-limited reader for uploading templates of multiple kinds.

func NewLimitReader

func NewLimitReader(stream func() ([]byte, error), limit int64) *LimitReader

NewLimitReader creates a limit reader instance.

func (*LimitReader) Read

func (r *LimitReader) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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