mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-06-24 02:15:50 +08:00
Conflicts: Gopkg.lock pkg/appsrv/appsrv.go pkg/cloudcommon/options.go pkg/compute/models/hosts.go pkg/compute/models/quotas.go pkg/compute/service/service.go pkg/mcclient/mcclient.go
17 lines
289 B
Go
17 lines
289 B
Go
package missinggo
|
|
|
|
import "context"
|
|
|
|
type ContextedReader struct {
|
|
R ReadContexter
|
|
Ctx context.Context
|
|
}
|
|
|
|
func (me ContextedReader) Read(b []byte) (int, error) {
|
|
return me.R.ReadContext(me.Ctx, b)
|
|
}
|
|
|
|
type ReadContexter interface {
|
|
ReadContext(context.Context, []byte) (int, error)
|
|
}
|