httploader

package module
v0.0.1-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(c Client, path string) (*fileloaders.File, error)

func With

func With(c Client) fileloaders.Option

Types

type Client

type Client interface {
	Get(url string) (resp *http.Response, err error)
}

type Loader

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

func New

func New(c Client) *Loader

func (*Loader) List

func (l *Loader) List(ctx context.Context, path string, opt ...fileloaders.LoaderOption) ([]string, error)

func (*Loader) Load

func (l *Loader) Load(ctx context.Context, path string, opt ...fileloaders.LoaderOption) (*fileloaders.File, error)

Jump to

Keyboard shortcuts

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