pvf_source

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	BasePath = "/Api/PvfUtiltiy"

	PathGetFileContent = BasePath + "/GetFileContent"
	PathImportFile     = BasePath + "/ImportFile"
	PathGetItemInfos   = BasePath + "/GetItemInfos"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystemSource

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

func NewFileSystemSource

func NewFileSystemSource(rootDir string) *FileSystemSource

func (*FileSystemSource) GetFileContent

func (p *FileSystemSource) GetFileContent(filepath string) (string, error)

func (*FileSystemSource) SaveFileContent

func (p *FileSystemSource) SaveFileContent(filepath, content string) error

type PvfSource

type PvfSource interface {
	GetFileContent(path string) (string, error)
	SaveFileContent(path, content string) error
}

type PvfUtilitySource

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

func NewPvfUtilitySource

func NewPvfUtilitySource(host string) *PvfUtilitySource

func (*PvfUtilitySource) GetFileContent

func (p *PvfUtilitySource) GetFileContent(path string) (string, error)

func (*PvfUtilitySource) GetItemInfos

func (p *PvfUtilitySource) GetItemInfos(paths []string) (map[int]string, error)

func (*PvfUtilitySource) SaveFileContent

func (p *PvfUtilitySource) SaveFileContent(path, content string) error

Jump to

Keyboard shortcuts

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