func New(options *Options) (*Client, error) {
	parsed, err := url.Parse(options.ServerURL)
	if err != nil {
		return nil, errors.Wrap(err, "could not parse server url")
	}
	configure := ccache.Configure()
	configure = configure.MaxSize(options.CacheSize)
	cache := ccache.New(configure)
	interactionsCfg := ccache.Configure()
	interactionsCfg = interactionsCfg.MaxSize(defaultMaxInteractionsCount)
	interactionsCache := ccache.New(interactionsCfg)
	interactClient := &Client{
		eviction:         options.Eviction,
		interactions:     interactionsCache,
		dotHostname:      "." + parsed.Host,
		options:          options,
		requests:         cache,
		pollDuration:     options.PollDuration,
		cooldownDuration: options.ColldownPeriod,
	}
	return interactClient, nil
}
New returns a new interactsh server client
package interactsh
import (
	"bytes"
	"fmt"
	"net/url"
	"os"
	"strings"
	"sync"
	"sync/atomic"
	"time"
	"github.com/karlseguin/ccache"
	"github.com/pkg/errors"
	"github.com/projectdiscovery/gologger"
	"github.com/projectdiscovery/interactsh/pkg/client"
	"github.com/projectdiscovery/interactsh/pkg/server"
	"github.com/projectdiscovery/nuclei/v2/pkg/operators"
	"github.com/projectdiscovery/nuclei/v2/pkg/output"
	"github.com/projectdiscovery/nuclei/v2/pkg/progress"
	"github.com/projectdiscovery/nuclei/v2/pkg/reporting"
)
type Client struct {
	dotHostname string
	interactsh *client.Client
	requests *ccache.Cache
	interactions *ccache.Cache
	options          *Options
	eviction         time.Duration
	pollDuration     time.Duration
	cooldownDuration time.Duration
	firstTimeGroup sync.Once
	generated      uint32  
	matched        bool
}
var (
	defaultInteractionDuration = 60 * time.Second
	interactshURLMarker        = "{{interactsh-url}}"
)
type Options struct {
	ServerURL string
	Authorization string
	CacheSize int64
	Eviction time.Duration
	ColldownPeriod time.Duration
	PollDuration time.Duration
	Output output.Writer
	IssuesClient *reporting.Client
	Progress progress.Progress
	Debug bool
}
const defaultMaxInteractionsCount = 5000