Files
crawlab/core/result/options.go
2024-06-14 15:42:50 +08:00

17 lines
327 B
Go

package result
import "go.mongodb.org/mongo-driver/bson/primitive"
type Option func(opts *Options)
type Options struct {
registryKey string // registry key
SpiderId primitive.ObjectID // data source id
}
func WithRegistryKey(key string) Option {
return func(opts *Options) {
opts.registryKey = key
}
}