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