blob: f11d1b71d8bac7c80ef953657a7f21ab2cf4302a [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
// 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"
}