mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
17 lines
327 B
Go
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
|
|
}
|
|
}
|