pgstore

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

Storage implements Storage using a Postgres database. It uses encrypted_keystore table initialized in https://github.com/smartcontractkit/chainlink/blob/8ae0dde7f6225a8e212750519d6120a62dd6bfda/core/store/migrate/migrations/0280_create_keystore_table.sql#L1 Support for versioning (and other automatic handling) can be conveniently done using triggers at the database level. Please do not implement such logic at the go library level.

func NewStorage

func NewStorage(ds sqlutil.DataSource, name string) *Storage

func (*Storage) GetEncryptedKeystore

func (p *Storage) GetEncryptedKeystore(ctx context.Context) (res []byte, err error)

func (*Storage) PutEncryptedKeystore

func (p *Storage) PutEncryptedKeystore(ctx context.Context, encryptedKeystore []byte) (err error)

Jump to

Keyboard shortcuts

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