Versions in this module Expand all Collapse all v0 v0.2.0 Jul 26, 2026 v0.1.0 Jul 26, 2026 Changes in this version + const BLOCK_TABLE_NAME + type Block struct + func NewBlock() *Block + func NewBlockFromExistingData(data map[string]string) *Block + func NewBlockFromJSON(json string) *Block + func (o *Block) Data() string + func (o *Block) PreviousHash() string + func (o *Block) SetData(data string) *Block + func (o *Block) SetPreviousHash(previousHash string) *Block + func (o *Block) SetThisHash(thisHash string) *Block + func (o *Block) SetTimestamp(timestamp string) *Block + func (o *Block) ThisHash() string + func (o *Block) Timestamp() string + type BlockQueryOptions struct + CountOnly bool + ID string + IDIn []string + Limit int + Offset int + OrderBy string + SortOrder string + WithDeleted bool + type Blockchain struct + func NewBlockchain() *Blockchain + type NewStoreOptions struct + AutomigrateEnabled bool + BlockTableName string + DB *sql.DB + DbDriverName string + DebugEnabled bool + TimeoutSeconds int64 + type Store struct + func NewStore(opts NewStoreOptions) (*Store, error) + func (st *Store) EnableDebug(debug bool) + func (store *Store) AutoMigrate() error + func (store *Store) BlockCreate(ctx context.Context, block *Block) error + func (store *Store) BlockDelete(ctx context.Context, block *Block) error + func (store *Store) BlockDeleteByID(ctx context.Context, id string) error + func (store *Store) BlockFindByID(ctx context.Context, id string) (*Block, error) + func (store *Store) BlockList(ctx context.Context, options BlockQueryOptions) ([]Block, error) + func (store *Store) BlockUpdate(ctx context.Context, block *Block) error + type StoreInterface interface + BlockCreate func(ctx context.Context, block *Block) error + BlockDelete func(ctx context.Context, block *Block) error + BlockDeleteByID func(ctx context.Context, blockID string) error + BlockFindByID func(ctx context.Context, id string) (*Block, error) + BlockList func(ctx context.Context, options BlockQueryOptions) ([]Block, error) + BlockUpdate func(ctx context.Context, block *Block) error