lightning-terminal/firewalldb/interface.go

13 lines
362 B
Go
Raw Normal View History

package firewalldb
import "github.com/lightninglabs/lightning-terminal/session"
// SessionDB is an interface that abstracts the database operations needed for
// the privacy mapper to function.
type SessionDB interface {
session.IDToGroupIndex
// GetSessionByID returns the session for a specific id.
GetSessionByID(session.ID) (*session.Session, error)
}