in go/showcase/pkg/showcase/part4/storage.go [44:60]
func NewStateStorageFn() StateStorageFn {
return StateStorageFn{
IntValue: statefun.ValueSpec{
Name: "int_value",
ValueType: statefun.Int32Type,
},
BoolValue: statefun.ValueSpec{
Name: "bool_value",
ValueType: statefun.BoolType,
Expiration: statefun.ExpireAfterCall(time.Duration(5) * time.Hour),
},
UserLoginValue: statefun.ValueSpec{
Name: "user_login_value",
ValueType: part1.UserLoginType,
},
}
}