Files
crawlab/core/grpc/client/options.go
2024-10-18 15:03:32 +08:00

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)
}
}