keysets

package
v0.0.0-...-e557385 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package keysets implements the storage.KeySets interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db *sql.DB) (storage.KeySets, error)

New returns a storage.KeySets client backed by an SQL table.

Types

type Storage

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

Storage stores keysets, backed by an SQL database.

func (*Storage) Get

func (s *Storage) Get(ctx context.Context, instance int64, domainID, appID string) (*tpb.KeySet, error)

Get returns a stored keyset.

func (*Storage) Set

func (s *Storage) Set(ctx context.Context, instance int64, domainID, appID string, k *tpb.KeySet) error

Set saves a keyset.

Jump to

Keyboard shortcuts

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