redisx/xstream/writer.go

21 lines
547 B
Go
Raw Normal View History

2024-06-28 10:19:17 +00:00
package xstream
//// func Example() {
//// var (
//// m = model.NewModelDefault()
//// queue = "coreserver.newaccount"
//// msgval = map[string]interface{}{
//// "sign": "",
//// "appid": c.AppId,
//// "userid": c.UserId,
//// "account": input.Address,
//// }
//// msgstr, _ = json.Marshal(msgval)
//// )
//// defer m.Close()
////
//// if _, err = m.Redis.Do("XADD", queue, "*", "msg", msgstr); err != nil {
//// log.Warningf("!!!!FAILED add newaccount to redis queue, msg is:'%s'", msgstr)
//// }
//// }