common

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package common contains key and key metadata interfaces

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IKey

type IKey[M IMetadata] interface {
	GetPublicKey() string
	GetPrivateKey() string
	GetCurve() string
	GetMetadata() M
	LoadMetadata(s string) (*M, error)
	MergeMetadata(m M) error
}

IKey defines an interface for API keys and Encryption keys.

type IMetadata

type IMetadata interface{}

IMetadata defines an interface for the metadata on keys.

Jump to

Keyboard shortcuts

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