database

package
v0.22.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL