Documentation

Index

Constants

View Source
const (
	Delay   = "delay"
	MaxWait = "max_wait"

	EnvDelay   = "MINIO_CRAWLER_DELAY"
	EnvMaxWait = "MINIO_CRAWLER_MAX_WAIT"
)

    Compression environment variables

    Variables

    View Source
    var (
    	// DefaultKVS - default KV config for heal settings
    	DefaultKVS = config.KVS{
    		config.KV{
    			Key:   Delay,
    			Value: "10",
    		},
    		config.KV{
    			Key:   MaxWait,
    			Value: "15s",
    		},
    	}
    
    	// Help provides help for config values
    	Help = config.HelpKVS{
    		config.HelpKV{
    			Key:         Delay,
    			Description: `crawler delay multiplier, defaults to '10.0'`,
    			Optional:    true,
    			Type:        "float",
    		},
    		config.HelpKV{
    			Key:         MaxWait,
    			Description: `maximum wait time between operations, defaults to '15s'`,
    			Optional:    true,
    			Type:        "duration",
    		},
    	}
    )

    Functions

    This section is empty.

    Types

    type Config

    type Config struct {
    	// Delay is the sleep multiplier.
    	Delay float64 `json:"delay"`
    	// MaxWait is maximum wait time between operations
    	MaxWait time.Duration
    }

      Config represents the heal settings.

      func LookupConfig

      func LookupConfig(kvs config.KVS) (cfg Config, err error)

        LookupConfig - lookup config and override with valid environment settings if any.

        Source Files