github.com/code-to-go/safepool.lib@v0.0.0-20221205180519-ee25e63c226e/core/const.go (about)

     1  package core
     2  
     3  import (
     4  	"time"
     5  
     6  	"github.com/godruoyi/go-snowflake"
     7  )
     8  
     9  func init() {
    10  	snowflake.SetStartTime(SnowFlakeStart)
    11  }
    12  
    13  var SnowFlakeStart = time.Date(2022, 2, 3, 0, 0, 0, 0, time.UTC)
    14  
    15  const UsersFilename = "U"
    16  const UsersFilesign = "U.sign"
    17  const DomainFilelock = "D.lock"