filestore

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigFile = "config.toml"
	TipsetFile = "tipset.json"
	SqliteFile = "message.db"
	TokenFile  = "token"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FSRepo

type FSRepo interface {
	Path() string
	Config() *config.Config
	ReplaceConfig(cfg *config.Config) error
	TipsetFile() string
	SqliteFile() string
	GetToken() ([]byte, error)
	SaveToken([]byte) error
}

func InitFSRepo

func InitFSRepo(repoPath string, cfg *config.Config) (FSRepo, error)

func NewFSRepo

func NewFSRepo(repoPath string) (FSRepo, error)

func NewMockFileStore

func NewMockFileStore(path string) FSRepo

Jump to

Keyboard shortcuts

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