file

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2020 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 A configuration for the file storage.

Jump to

Keyboard shortcuts

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