The name *cachestub.BatchCacheStub does not conform to Go style due to duplication of the package name in the type name. In Go, it is recommended to avoid redundancy by not repeating the package name in the type name.
package cachestub
type BatchCache struct {
}
package cachestub
type Batch struct {
}