exposure-notifications-server: github.com/google/exposure-notifications-server/internal/federationin/model Index | Files

package model

import "github.com/google/exposure-notifications-server/internal/federationin/model"

Package model is a model abstraction of federation in.

Index

Package Files

federation_model.go

type FederationInQuery Uses

type FederationInQuery struct {
    QueryID        string
    ServerAddr     string
    Audience       string
    IncludeRegions []string
    ExcludeRegions []string
    LastTimestamp  time.Time
}

FederationInQuery represents a configuration to pull federation results from other servers.

type FederationInSync Uses

type FederationInSync struct {
    SyncID       int64
    QueryID      string
    Started      time.Time
    Completed    time.Time
    Insertions   int
    MaxTimestamp time.Time
}

FederationInSync is the result of a federation query pulled from other servers.

type FederationOutAuthorization Uses

type FederationOutAuthorization struct {
    Issuer  string
    Subject string
    // Audience is optional, but will be validated against the OIDC token if provided.
    Audience       string
    Note           string
    IncludeRegions []string
    ExcludeRegions []string
}

FederationOutAuthorization is an authorized client that reads federation data from this server.

Package model imports 1 packages (graph) and is imported by 4 packages. Updated 2020-09-27. Refresh now. Tools for package owners.