github.com/infraboard/keyauth@v0.8.1/apps/counter/impl.go (about) 1 package counter 2 3 // Service todo 4 type Service interface { 5 GetNextSequenceValue(sequenceName string) (*Count, error) 6 } 7 8 // NewCount todo 9 func NewCount() *Count { 10 return &Count{} 11 } 12 13 // Count todo 14 type Count struct { 15 SequenceName string `bson:"_id"` 16 Value uint64 `bson:"value"` 17 }