rpc/client/client_context.go

21 lines
304 B
Go
Raw Normal View History

2017-11-29 09:55:24 +00:00
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
}