websocket/storage/connection.go

45 lines
813 B
Go

// Package storage ...
//
// Description : 在线连接的存储
//
// Author : go_developer@163.com<张德满>
//
// Date : 2021-04-08 5:46 下午
package storage
import (
"github.com/go-developer/gopkg/easymap"
"github.com/go-developer/websocket/context"
)
var (
// Connection 连接管理
Connection IConnection
)
func init() {
Connection = &connection{table: make([]easymap.EasyMap, 0)}
for i := 0; i < 4096; i++ {
}
}
type connection struct {
table []easymap.EasyMap
}
func (c *connection) Store(ctx *context.WSContext) {
panic("implement me")
}
func (c *connection) Del(ctx *context.WSContext) {
panic("implement me")
}
func (c *connection) GetCtxList(cidList ...string) []*context.WSContext {
panic("implement me")
}
func (c *connection) Clear(message string) {
panic("implement me")
}