server

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystem

type FileSystem interface {
	Ls() ([]string, error)
	Put(filename string, value any) error
	Get(filename string) (any, error)
	Del(filename string) error
}

type LocalFS

type LocalFS struct {
	Folder string
}

func SetupLocal

func SetupLocal() *LocalFS

creates new localFS instance with settings applied

func (LocalFS) Del added in v0.4.0

func (fs LocalFS) Del(filename string) error

removes entire JSON file

func (LocalFS) Get added in v0.4.0

func (fs LocalFS) Get(filename string) (any, error)

reads JSON file into map[string]any variable

func (LocalFS) Ls added in v0.4.0

func (fs LocalFS) Ls() ([]string, error)

list json files in fs folder

func (LocalFS) Put added in v0.4.0

func (fs LocalFS) Put(filename string, value any) error

creates empty (or prefilled) JSON file at path

type S3Fs added in v0.5.0

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

func SetupS3 added in v0.5.0

func SetupS3() *S3Fs

creates new S3Fs instance with settings applied

func (S3Fs) Del added in v0.5.0

func (fs S3Fs) Del(filename string) error

removes entire JSON file

func (S3Fs) Get added in v0.5.0

func (fs S3Fs) Get(filename string) (any, error)

reads JSON file into map[string]any variable

func (S3Fs) Ls added in v0.5.0

func (fs S3Fs) Ls() ([]string, error)

list files in s3 bucket

func (S3Fs) Put added in v0.5.0

func (fs S3Fs) Put(filename string, value any) error

creates empty (or prefilled) JSON file at path

Jump to

Keyboard shortcuts

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