package mysql

import "github.com/google/certificate-transparency-go/trillian/ctfe/storage/mysql"

Package mysql defines the IssuanceChainStorage type, which implements IssuanceChainStorage interface with FindByKey and Add methods.

Index

Types

type IssuanceChainStorage

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

IssuanceChainStorage is a MySQL implementation of the IssuanceChainStorage interface.

func NewIssuanceChainStorage

func NewIssuanceChainStorage(ctx context.Context, dbConn string) *IssuanceChainStorage

NewIssuanceChainStorage takes the database connection string as the input and return the IssuanceChainStorage.

func (*IssuanceChainStorage) Add

func (s *IssuanceChainStorage) Add(ctx context.Context, key []byte, chain []byte) error

Add inserts the key-value pair of issuance chain.

func (*IssuanceChainStorage) FindByKey

func (s *IssuanceChainStorage) FindByKey(ctx context.Context, key []byte) ([]byte, error)

FindByKey returns the key-value pair of issuance chain by the key.

Source Files

mysql.go

Version
v1.3.1 (latest)
Published
Jan 15, 2025
Platform
linux/amd64
Imports
7 packages
Last checked
4 days ago

Tools for package owners.