inmemorydb

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create() dbrepo.Repository

Types

type InMemoryRepository

type InMemoryRepository struct {
	Now func() time.Time
	// contains filtered or unexported fields
}

func (*InMemoryRepository) Close

func (r *InMemoryRepository) Close()

func (*InMemoryRepository) Migrate

func (r *InMemoryRepository) Migrate() error

func (*InMemoryRepository) Open

func (r *InMemoryRepository) Open() error

func (*InMemoryRepository) ProtocolEntries

func (r *InMemoryRepository) ProtocolEntries() []*entity.ProtocolEntry

func (*InMemoryRepository) WriteProtocolEntry

func (r *InMemoryRepository) WriteProtocolEntry(ctx context.Context, e *entity.ProtocolEntry) error

Jump to

Keyboard shortcuts

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