blob: 4999f775bff799f410a287aec6e8f63d2f9d6ca5 [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package server
import (
"v.io/v23/security/access"
)
// serviceData represents the persistent state of a Service.
type serviceData struct {
Version uint64 // covers the fields below
Perms access.Permissions
}
// appData represents the persistent state of an App.
type appData struct {
Name string
Version uint64 // covers the fields below
Perms access.Permissions
}
// dbInfo contains information about one database for an App.
// TODO(sadovsky): Track NoSQL vs. SQL.
type dbInfo struct {
Name string
Initialized bool
Deleted bool
// Select fields from nosql.DatabaseOptions, needed in order to open storage
// engine on restart.
RootDir string // interpreted by storage engine
Engine string // name of storage engine, e.g. "leveldb"
}