Documentation ¶
Overview ¶
Package database is a database interface to federation out.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FederationOutDB ¶
type FederationOutDB struct {
// contains filtered or unexported fields
}
func New ¶
func New(db *database.DB) *FederationOutDB
func (*FederationOutDB) AddFederationOutAuthorization ¶
func (db *FederationOutDB) AddFederationOutAuthorization(ctx context.Context, auth *model.FederationOutAuthorization) error
AddFederationOutAuthorization adds or updates a FederationOutAuthorization record.
func (*FederationOutDB) GetFederationOutAuthorization ¶
func (db *FederationOutDB) GetFederationOutAuthorization(ctx context.Context, issuer, subject string) (*model.FederationOutAuthorization, error)
GetFederationOutAuthorization returns a FederationOutAuthorization record, or ErrNotFound if not found.
Click to show internal directories.
Click to hide internal directories.