safing-portbase/database/interface.go
2018-09-05 17:05:51 +02:00

27 lines
563 B
Go

package database
// Interface provides a method to access the database with attached options.
type Interface struct {}
// Options holds options that may be set for an Interface instance.
type Options struct {
Local bool
Internal bool
AlwaysMakeSecret bool
AlwaysMakeCrownjewel bool
}
// NewInterface returns a new Interface to the database.
func NewInterface(opts *Options) *Interface {
return &Interface{
local: local,
internal: internal,
}
}
func (i *Interface) Get(key string) (model.Model, error) {
controller
return nil, nil
}