mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
14 lines
250 B
Go
14 lines
250 B
Go
package client
|
|
|
|
import (
|
|
"github.com/crawlab-team/crawlab/core/interfaces"
|
|
)
|
|
|
|
type Option func(client interfaces.GrpcClient)
|
|
|
|
func WithAddress(address interfaces.Address) Option {
|
|
return func(c interfaces.GrpcClient) {
|
|
c.SetAddress(address)
|
|
}
|
|
}
|