fsurl

package
v0.5.1-victorialogs Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS struct {
	// Path defines the URL to read the data from
	Path string
}

FS represents a struct which can read content from URL Path

func (*FS) Init

func (fs *FS) Init() error

Init verifies that configured Path is correct

func (*FS) List

func (fs *FS) List() ([]string, error)

List returns the list of file names which will be read via Read fn List isn't supported by FS and reads from Path only

func (*FS) Read

func (fs *FS) Read(files []string) (map[string][]byte, error)

Read returns a map of read files where key is the file name and value is file's content.

func (*FS) String

func (fs *FS) String() string

String implements Stringer interface

Jump to

Keyboard shortcuts

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