file

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStorage

func NewStorage(cfg Config, _ log.Logger) (storage.ReadWriteStorage, error)

NewStorage Create a file storage that stores data in a local directory. The file storage cannot store metadata.

Types

type Config

type Config struct {
	Directory string `json:"directory" yaml:"directory" default:"/var/log/audit"`
}

Config is the configuration for the file storage.

func (*Config) Validate added in v0.9.6

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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