Interface AmagiOptions

Hierarchy

  • AmagiOptions

Properties

cache?: { enabled?: boolean; timeout?: number; type?: "storage" | "memory" }

Cache configuration

Type declaration

  • Optional enabled?: boolean

    Enable cache

  • Optional timeout?: number

    Cache timeout. -1 for infinity. Default to -1. (in second)

  • Optional type?: "storage" | "memory"

    Cache type. Default to memory

defaultEngine?: string

The default search engine

ignoreDeadNode?: boolean

Ignore a dead node on init by not throwing an error. Default to false

plugins?: any[]

Plugins

request?: { retry?: number; timeout?: number }

Request configuration

Type declaration

  • Optional retry?: number

    Retry amount. Default to nodes length

  • Optional timeout?: number

    Request timeout. Default to 10000ms. (in ms)

Methods

  • modifyTracks(track: Track): any
  • If you want to modify track result to something else

    Parameters

    Returns any

Generated using TypeDoc