20 lines
279 B
Go
20 lines
279 B
Go
|
package consumer
|
||
|
|
||
|
import (
|
||
|
cuc "git.loafle.net/commons/util-go/context"
|
||
|
)
|
||
|
|
||
|
type ConsumerCtx interface {
|
||
|
cuc.Context
|
||
|
}
|
||
|
|
||
|
func NewConsumerCtx(parent cuc.Context) ConsumerCtx {
|
||
|
return &consumerCtx{
|
||
|
Context: cuc.NewContext(parent),
|
||
|
}
|
||
|
}
|
||
|
|
||
|
type consumerCtx struct {
|
||
|
cuc.Context
|
||
|
}
|