lightning-terminal/firewalldb/interface.go
Elle Mouton 190d3dc828
multi: rename GetSessionByID to GetSession
By default, we fetch records by an ID.
2025-03-04 17:34:31 +02:00

16 lines
388 B
Go

package firewalldb
import (
"context"
"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
// GetSession returns the session for a specific id.
GetSession(context.Context, session.ID) (*session.Session, error)
}