exposure-notifications-server: github.com/google/exposure-notifications-server/internal/federationout/database Index | Files

package database

import "github.com/google/exposure-notifications-server/internal/federationout/database"

Package database is a database interface to federation out.

Index

Package Files

federationout.go

type FederationOutDB Uses

type FederationOutDB struct {
    // contains filtered or unexported fields
}

func New Uses

func New(db *database.DB) *FederationOutDB

func (*FederationOutDB) AddFederationOutAuthorization Uses

func (db *FederationOutDB) AddFederationOutAuthorization(ctx context.Context, auth *model.FederationOutAuthorization) error

AddFederationOutAuthorization adds or updates a FederationOutAuthorization record.

func (*FederationOutDB) GetFederationOutAuthorization Uses

func (db *FederationOutDB) GetFederationOutAuthorization(ctx context.Context, issuer, subject string) (*model.FederationOutAuthorization, error)

GetFederationOutAuthorization returns a FederationOutAuthorization record, or ErrNotFound if not found.

Package database imports 6 packages (graph) and is imported by 1 packages. Updated 2020-09-21. Refresh now. Tools for package owners.