mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-30 18:00:56 +01:00
chore: updated deps
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user