chore: updated deps

This commit is contained in:
Marvin Zhang
2024-11-22 21:31:31 +08:00
parent fbc5e718b5
commit b4c233f122
3 changed files with 12 additions and 72 deletions

View File

@@ -21,10 +21,10 @@ require (
github.com/cloudflare/circl v1.3.7 // indirect
github.com/cloudwego/base64x v0.1.4 // indirect
github.com/cloudwego/iasm v0.2.0 // indirect
github.com/crawlab-team/crawlab/db v0.0.0-20241122100609-92f460424e99 // indirect
github.com/crawlab-team/crawlab/grpc v0.0.0-20241122100609-92f460424e99 // indirect
github.com/crawlab-team/crawlab/trace v0.0.0-20241122100609-92f460424e99 // indirect
github.com/crawlab-team/crawlab/vcs v0.0.0-20241122100609-92f460424e99 // indirect
github.com/crawlab-team/crawlab/db v0.0.0-20241122131917-858e5c2b8900 // indirect
github.com/crawlab-team/crawlab/grpc v0.0.0-20241122131917-858e5c2b8900 // indirect
github.com/crawlab-team/crawlab/trace v0.0.0-20241122131917-858e5c2b8900 // indirect
github.com/crawlab-team/crawlab/vcs v0.0.0-20241122131917-858e5c2b8900 // indirect
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect

View File

@@ -134,14 +134,14 @@ github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSV
github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/crawlab-team/crawlab/core v0.0.0-20241122131917-858e5c2b8900 h1:A9X/HwZOxnDtgA9hTrQOt65hcGMr09/HHzU/tpAJY3E=
github.com/crawlab-team/crawlab/core v0.0.0-20241122131917-858e5c2b8900/go.mod h1:NNlVh+/tVVM7fjI8CHwefYcYGZqhHQgG5Z//8zYbn8M=
github.com/crawlab-team/crawlab/db v0.0.0-20241122100609-92f460424e99 h1:M3U2/I9wtBIbx2hIeJMFkpoZsygmVylAB28tGE7CCI4=
github.com/crawlab-team/crawlab/db v0.0.0-20241122100609-92f460424e99/go.mod h1:Bbhjt/gx9+AOybNVWbslVvs/Gckd/ytvUA1VSh+RHmo=
github.com/crawlab-team/crawlab/grpc v0.0.0-20241122100609-92f460424e99 h1:HEvjO8ygoKA7gIQgaB/v3pc2x4vLokz9OBg8Rj8wP9A=
github.com/crawlab-team/crawlab/grpc v0.0.0-20241122100609-92f460424e99/go.mod h1:FjY4RtwBruADeUfXwWKlybuR06og1eGm/sECeQdP6Qk=
github.com/crawlab-team/crawlab/trace v0.0.0-20241122100609-92f460424e99 h1:lE7VvfW82Mfazq8wwrLQagU5njB8nqJp5nSAXlr7v/o=
github.com/crawlab-team/crawlab/trace v0.0.0-20241122100609-92f460424e99/go.mod h1:r1zzRvJApmtCAfK09ghTYL79yyBGjAUbNXJnnd2cgK0=
github.com/crawlab-team/crawlab/vcs v0.0.0-20241122100609-92f460424e99 h1:2GWcgGPf95/XFqJiNIZ7rsRo8HteW3fWFiCtHyxDo5Q=
github.com/crawlab-team/crawlab/vcs v0.0.0-20241122100609-92f460424e99/go.mod h1:Y1SSJV7WRpqQrHHRpWwPiqZuZZllwXUNYQ6OULXDWbw=
github.com/crawlab-team/crawlab/db v0.0.0-20241122131917-858e5c2b8900 h1:RPlB6Gpc0+zTlJcxHS/jookWNgeaiOHUX0xnMIP9nzM=
github.com/crawlab-team/crawlab/db v0.0.0-20241122131917-858e5c2b8900/go.mod h1:Bbhjt/gx9+AOybNVWbslVvs/Gckd/ytvUA1VSh+RHmo=
github.com/crawlab-team/crawlab/grpc v0.0.0-20241122131917-858e5c2b8900 h1:EMJUQ6Lr4XrImEOoKqGAJUbrVPKs6dzfZkIaerwHsTI=
github.com/crawlab-team/crawlab/grpc v0.0.0-20241122131917-858e5c2b8900/go.mod h1:FjY4RtwBruADeUfXwWKlybuR06og1eGm/sECeQdP6Qk=
github.com/crawlab-team/crawlab/trace v0.0.0-20241122131917-858e5c2b8900 h1:Zvs30oWrEeYTwljBVaN0l4+RdCEoWJieTu9aXcwoQaQ=
github.com/crawlab-team/crawlab/trace v0.0.0-20241122131917-858e5c2b8900/go.mod h1:r1zzRvJApmtCAfK09ghTYL79yyBGjAUbNXJnnd2cgK0=
github.com/crawlab-team/crawlab/vcs v0.0.0-20241122131917-858e5c2b8900 h1:0mQlyeiU7OAj6DdlCf3D/Fx896oJ30Zhae7YXVcC8r0=
github.com/crawlab-team/crawlab/vcs v0.0.0-20241122131917-858e5c2b8900/go.mod h1:Y1SSJV7WRpqQrHHRpWwPiqZuZZllwXUNYQ6OULXDWbw=
github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg=
github.com/cyphar/filepath-securejoin v0.2.4/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=

View File

@@ -17,63 +17,3 @@ type ClientOptions struct {
AuthMechanism string
AuthMechanismProperties map[string]string
}
func WithContext(ctx context.Context) ClientOption {
return func(options *ClientOptions) {
options.Context = ctx
}
}
func WithUri(value string) ClientOption {
return func(options *ClientOptions) {
options.Uri = value
}
}
func WithHost(value string) ClientOption {
return func(options *ClientOptions) {
options.Host = value
}
}
func WithPort(value int) ClientOption {
return func(options *ClientOptions) {
options.Port = value
}
}
func WithDb(value string) ClientOption {
return func(options *ClientOptions) {
options.Db = value
}
}
func WithHosts(value []string) ClientOption {
return func(options *ClientOptions) {
options.Hosts = value
}
}
func WithUsername(value string) ClientOption {
return func(options *ClientOptions) {
options.Username = value
}
}
func WithPassword(value string) ClientOption {
return func(options *ClientOptions) {
options.Password = value
}
}
func WithAuthSource(value string) ClientOption {
return func(options *ClientOptions) {
options.AuthSource = value
}
}
func WithAuthMechanism(value string) ClientOption {
return func(options *ClientOptions) {
options.AuthMechanism = value
}
}