storage

package
v0.0.0-...-4eea697 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(sc *Config)

Types

type Config

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

func NewConfig

func NewConfig(path string) (config *Config)

func (*Config) Path

func (c *Config) Path() string

Absolute path

func (*Config) ProcessPath

func (c *Config) ProcessPath() string

Absolute path of current executable process file

type Storager

type Storager interface {
	Add(data []byte) (id *[32]byte, err error)
	AddWithID(id *[32]byte, data []byte) (err error)
	ReplaceWithID(id *[32]byte, data []byte) (err error)
	Get(id *[32]byte) (data []byte, err error)
	Clean() (err error)
}

func Storage

func Storage() Storager

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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