2017-11-29 12:24:48 +00:00
|
|
|
package client
|
|
|
|
|
|
|
|
import (
|
|
|
|
cuc "git.loafle.net/commons_go/util/context"
|
|
|
|
)
|
|
|
|
|
|
|
|
type SocketContext interface {
|
|
|
|
cuc.Context
|
|
|
|
}
|
|
|
|
|
2017-11-29 14:56:36 +00:00
|
|
|
func newSocketContext(parent cuc.Context) SocketContext {
|
2017-11-29 12:24:48 +00:00
|
|
|
sCTX := &socketContext{}
|
2017-11-29 14:56:36 +00:00
|
|
|
sCTX.Context = cuc.NewContext(parent)
|
2017-11-29 12:24:48 +00:00
|
|
|
|
|
|
|
return sCTX
|
|
|
|
}
|
|
|
|
|
|
|
|
type socketContext struct {
|
|
|
|
cuc.Context
|
|
|
|
}
|