Single-row table for storing instance's VAPID key pair

This commit is contained in:
Vyr Cossont 2024-11-23 19:48:51 -08:00
commit 7a02a19c3c
4 changed files with 116 additions and 0 deletions

View file

@ -68,6 +68,10 @@ type Admin interface {
// the number of pending sign-ups sitting in the backlog.
CountUnhandledSignups(ctx context.Context) (int, error)
// GetOrCreateVAPIDKeyPair creates and stores a VAPID key pair,
// or retrieves the existing VAPID key pair.
GetOrCreateVAPIDKeyPair(ctx context.Context) (*gtsmodel.VAPIDKeyPair, error)
/*
ACTION FUNCS
*/