Documentation ¶
Index ¶
- func FindSeqNum(el *logging.ExtensionLogger, configFolder string) (uint, error)
- func GetCurrentSequenceNumber(el *logging.ExtensionLogger, retriever ISequenceNumberRetriever, ...) (sn uint, _ error)
- func SetSequenceNumber(extName, extVersion string, seqNo uint) error
- type ISequenceNumberRetriever
- type ProcSequenceNumberRetriever
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindSeqNum ¶
func FindSeqNum(el *logging.ExtensionLogger, configFolder string) (uint, error)
findSeqnum finds the most recently used file under the config folder Note that this is different than just choosing the highest number, which may be incorrect
func GetCurrentSequenceNumber ¶
func GetCurrentSequenceNumber(el *logging.ExtensionLogger, retriever ISequenceNumberRetriever, name, version string) (sn uint, _ error)
GetCurrentSequenceNumber returns the current sequence number the extension is using
func SetSequenceNumber ¶
Types ¶
type ProcSequenceNumberRetriever ¶
type ProcSequenceNumberRetriever struct { }
func (*ProcSequenceNumberRetriever) GetSequenceNumber ¶
func (*ProcSequenceNumberRetriever) GetSequenceNumber(name, version string) (uint, error)
Click to show internal directories.
Click to hide internal directories.