MCPcopy
hub / github.com/mattermost/mattermost / FileStore

Struct FileStore

server/config/file.go:28–30  ·  view source on GitHub ↗

FileStore is a config store backed by a file such as config/config.json. It also uses the folder containing the configuration file for storing other configuration files. Not to be used directly. Only to be used as a backing store for config.Store

Source from the content-addressed store, hash-verified

26// It also uses the folder containing the configuration file for storing other configuration files.
27// Not to be used directly. Only to be used as a backing store for config.Store
28type FileStore struct {
29 path string
30}
31
32// NewFileStore creates a new instance of a config store backed by the given file path.
33func NewFileStore(path string, createFileIfNotExists bool) (fs *FileStore, err error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected