3
0
Files
corteza/pkg/envoy/util/util.go
Tomaž Jerman 26e4832d5c Improve the Envoy package
- Add support for store decoding
- add support for yaml, csv, jsonl encoding
- refactor, cleanup
2021-02-24 15:57:44 +01:00

21 lines
330 B
Go

package util
import (
"time"
"github.com/cortezaproject/corteza-server/pkg/id"
)
var (
// wrapper around NextID that will aid service testing
NextID = func() uint64 {
return id.Next()
}
// wrapper around time.Now() that will aid testing
now = func() *time.Time {
c := time.Now().Round(time.Second)
return &c
}
)