forked from x/icebergs
18 lines
376 B
Go
18 lines
376 B
Go
package git
|
|
|
|
import (
|
|
ice "shylinux.com/x/icebergs"
|
|
"shylinux.com/x/icebergs/base/aaa"
|
|
"shylinux.com/x/icebergs/base/mdb"
|
|
)
|
|
|
|
const TOKEN = "token"
|
|
|
|
func init() {
|
|
Index.MergeCommands(ice.Commands{
|
|
TOKEN: {Name: "token username auto", Actions: ice.MergeActions(mdb.HashAction(
|
|
mdb.SHORT, aaa.USERNAME, mdb.EXPIRE, "720h", mdb.FIELD, "time,username,token",
|
|
))},
|
|
})
|
|
}
|