persistence

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltPersistenceLayer

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

func NewBoltPersistenceLayer

func NewBoltPersistenceLayer(path string, expiresAfter time.Duration) (*BoltPersistenceLayer, error)

func (*BoltPersistenceLayer) LoadFacts

func (persistenceLayer *BoltPersistenceLayer) LoadFacts(ticker sec.Ticker) (*sec.CompanyFacts, error)

func (*BoltPersistenceLayer) SaveFacts

func (persistenceLayer *BoltPersistenceLayer) SaveFacts(ticker sec.Ticker, facts *sec.CompanyFacts) error

type PersistedCompanyFacts

type PersistedCompanyFacts struct {
	Timestamp int64
	Facts     sec.CompanyFacts
}

Jump to

Keyboard shortcuts

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