package ru.soune.nocopy.configuration.search;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import java.util.Map;

@Data
@Component
@ConfigurationProperties(prefix = "search")
public class SearchProperties {
    private Map<String, EngineConfig> engines;
    private ProxyConfig proxy;

    @Data
    public static class EngineConfig {
        private boolean enabled;
    }

    @Data
    public static class ProxyConfig {
        private boolean enabled;
        private String host;
        private int port;
    }
}
