mirror of
https://github.com/safing/portbase
synced 2025-09-01 01:59:48 +00:00
27 lines
563 B
Go
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
|
|
}
|