memlog

package
v0.0.0-...-f572f87 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Log implements in-memory transaction log.

func New

func New() *Log

New creates new in-memory transaction log.

func (*Log) Append

func (l *Log) Append(info txnlog.Info) error

Append adds anchor info to the log.

func (*Log) Read

func (l *Log) Read(txnTime int64) ([]*txnapi.SidetreeTxn, error)

Read reads transactions since transaction number.

Jump to

Keyboard shortcuts

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