testutil

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeDecode added in v1.3.0

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, func(dst, src []byte), error)

func (KeyStore) EncoderByType

func (tks KeyStore) EncoderByType(_ context.Context, typ int) (int64, func(dst, src []byte), error)

func (KeyStore) Version added in v1.5.0

func (tks KeyStore) Version() int

Jump to

Keyboard shortcuts

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