21 lines
304 B
Go
21 lines
304 B
Go
package client
|
|
|
|
import (
|
|
cuc "git.loafle.net/commons_go/util/context"
|
|
)
|
|
|
|
type SocketContext interface {
|
|
cuc.Context
|
|
}
|
|
|
|
func newSocketContext(parent cuc.Context) SocketContext {
|
|
sCTX := &socketContext{}
|
|
sCTX.Context = cuc.NewContext(parent)
|
|
|
|
return sCTX
|
|
}
|
|
|
|
type socketContext struct {
|
|
cuc.Context
|
|
}
|