Documentation ¶
Index ¶
- func MakeHandler(msgGetter NSender, msgSetter NReceiver) func(c *websocket.Conn, ctx echo.Context) error
- func MemoryNoticeSender(ctx context.Context, customer *dbschema.OfficialCustomer) (func(), <-chan *notice.Message, error)
- func OnlineStatusDBUpdater(ctx context.Context, customer *dbschema.OfficialCustomer) (func(), <-chan *notice.Message, error)
- func OnlineStatusQueueUpdater(ctx context.Context, customer *dbschema.OfficialCustomer) (func(), <-chan *notice.Message, error)
- func RegisterRoute(r echo.RouteRegister)
- func RegsterCmder()
- func ResetClientCount()
- func SendOnlineStatusToQueue(sessionId string, customerID uint64, online bool) error
- type CustomerOnline
- type NReceiver
- type NSender
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeHandler ¶
func MemoryNoticeSender ¶
func OnlineStatusDBUpdater ¶
func RegisterRoute ¶
func RegisterRoute(r echo.RouteRegister)
func ResetClientCount ¶
func ResetClientCount()
Types ¶
type CustomerOnline ¶
type CustomerOnline struct { SessionID string `json:"sessID"` CustomerID uint64 `json:"custID"` Online bool `json:"online"` }
func (*CustomerOnline) Apply ¶
func (c *CustomerOnline) Apply() error
type NReceiver ¶
var ( DefaultSender = MemoryNoticeSender DefaultReceiver NReceiver )
Click to show internal directories.
Click to hide internal directories.