testutil

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeDecode

func EncodeDecode(ctx context.Context, t *testing.T, ks encid.KeyStore, numTypes int)

Types

type KeyStore

type KeyStore struct {
	NumTypes, Ver int
}

func (KeyStore) DecoderByID

func (tks KeyStore) DecoderByID(_ context.Context, keyID int64) (int, encid.Decrypter, error)

func (KeyStore) EncoderByType

func (tks KeyStore) EncoderByType(_ context.Context, typ int) (int64, encid.Encrypter, error)

func (KeyStore) Version

func (tks KeyStore) Version() int

Jump to

Keyboard shortcuts

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