New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

事件与通知 #49

Closed
88250 opened this Issue Sep 15, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@88250
Member

88250 commented Sep 15, 2014

通知用于告诉用户一些重要的状态事件,例如:

  • 环境检查异常
  • 版本更新

设计概要:

  • 用户事件队列:取出入队的事件,然后翻译为通知,并通过通知通道推送到前端
  • 全局事件队列:入队的事件将分发到每个用户的事件队列
  • 通知队列使用 Go Channel 实现
  • 一个事件是一个包含事件代码和用户会话 id 的结构体(code, sid);一个通知是一个带有具体内容的结构体(event, type, severity, msg)

@88250 88250 added the feature label Sep 15, 2014

@88250 88250 self-assigned this Sep 15, 2014

@88250 88250 changed the title from 通知栏 to 通知 Sep 15, 2014

@88250 88250 changed the title from 通知 to 事件与通知 Sep 15, 2014

88250 added a commit that referenced this issue Sep 15, 2014

88250 added a commit that referenced this issue Sep 15, 2014

88250 added a commit that referenced this issue Sep 20, 2014

@88250 88250 modified the milestone: 1.0.0 Sep 21, 2014

@88250 88250 closed this Sep 23, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment