Documentation ¶
Index ¶
Constants ¶
View Source
const MuSigLoggerTag = "MUSIG_STORE"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Transport is an implementation of transport used to fetch data from // feeds. Transport transport.Service // DataModels is the list of models for which we should collect // signatures. DataModels []string // Logger is a current logger interface used by the store. Logger log.Logger }
Config is the configuration for Store.
type SignatureProvider ¶
type SignatureProvider interface { // SignaturesByDataModel returns a list of signatures for the given data // model. SignaturesByDataModel(model string) []*messages.MuSigSignature }
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store stores MuSigSignature messages received from the transport layer.
It stores only the latest signature provided by each feed for each data model.
func (*Store) SignaturesByDataModel ¶
func (m *Store) SignaturesByDataModel(model string) []*messages.MuSigSignature
SignaturesByDataModel implements SignatureProvider interface.
Click to show internal directories.
Click to hide internal directories.