file

package
v1.29.0-mobile.4 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2018 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Type = "file"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Directory string
}

func NewConfig

func NewConfig() *Config

func (*Config) Load

func (c *Config) Load(configReporter config.Reporter) error

func (*Config) Validate

func (c *Config) Validate() error

type Store

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

func NewStore

func NewStore(cfg *Config) (*Store, error)

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, key string) (bool, error)

func (*Store) Exists

func (s *Store) Exists(ctx context.Context, key string) (bool, error)

func (*Store) Get

func (s *Store) Get(ctx context.Context, key string) (io.ReadCloser, error)

func (*Store) Put

func (s *Store) Put(ctx context.Context, key string, reader io.Reader) error

Jump to

Keyboard shortcuts

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