Documentation ¶
Overview ¶
© 2022 OSINT Fingerprint Project Contributors
© 2022 OSINT Fingerprint Project Contributors
© 2022 OSINT Fingerprint Project Contributors
Index ¶
- Constants
- type Cache
- type HybridCache
- type Memcached
- func (x *Memcached) Clear(collector string)
- func (x *Memcached) Get(category string, collector string, key string) (json.RawMessage, error)
- func (x *Memcached) GetKey(category string, collector string, key string) string
- func (x *Memcached) Name() string
- func (x *Memcached) Set(category string, collector string, key string, json json.RawMessage) error
- type PostgresCache
- type SignalCollectors
- func (x *SignalCollectors) GetCollectorJSON(category string, collector string, name string, key string) (*json.RawMessage, error)
- func (x *SignalCollectors) GetSignalCollector(name string) osint.SignalCollector
- func (x *SignalCollectors) GetSignalValue(category string, collector string, name string, key string) (*gjson.Result, error)
- func (x *SignalCollectors) Init() *SignalCollectors
- func (x *SignalCollectors) NewCollector(name string) osint.SignalCollector
- func (x *SignalCollectors) RefreshAll(w io.Writer)
- func (x *SignalCollectors) RefreshOnSchedule()
Constants ¶
View Source
const MEMCACHED_EXPIRATION = (86400 * 1)
7 days cache expiration
View Source
const POSTGRES_EXPIRATION = time.Duration(1) * time.Hour * 24 * 7
7 days cache expiration
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HybridCache ¶
type HybridCache struct {
// contains filtered or unexported fields
}
func NewHybridCache ¶
func NewHybridCache() *HybridCache
func (*HybridCache) Get ¶
func (x *HybridCache) Get(category string, collector string, key string) (json.RawMessage, error)
func (*HybridCache) Set ¶
func (x *HybridCache) Set(category string, collector string, key string, json json.RawMessage) error
type Memcached ¶
type Memcached struct {
// contains filtered or unexported fields
}
func NewMemcached ¶
func NewMemcached() *Memcached
type PostgresCache ¶
type PostgresCache struct {
// contains filtered or unexported fields
}
func NewPostgresCache ¶
func NewPostgresCache() *PostgresCache
func (*PostgresCache) Get ¶
func (x *PostgresCache) Get(category string, collector string, key string) (json.RawMessage, error)
func (*PostgresCache) Set ¶
func (x *PostgresCache) Set(category string, collector string, key string, json json.RawMessage) error
type SignalCollectors ¶
type SignalCollectors struct {
// contains filtered or unexported fields
}
func NewSignalCollectors ¶
func NewSignalCollectors() *SignalCollectors
func (*SignalCollectors) GetCollectorJSON ¶
func (x *SignalCollectors) GetCollectorJSON( category string, collector string, name string, key string) (*json.RawMessage, error)
func (*SignalCollectors) GetSignalCollector ¶
func (x *SignalCollectors) GetSignalCollector(name string) osint.SignalCollector
func (*SignalCollectors) GetSignalValue ¶
func (*SignalCollectors) Init ¶
func (x *SignalCollectors) Init() *SignalCollectors
func (*SignalCollectors) NewCollector ¶
func (x *SignalCollectors) NewCollector(name string) osint.SignalCollector
TODO: add new signal collectors here
func (*SignalCollectors) RefreshAll ¶
func (x *SignalCollectors) RefreshAll(w io.Writer)
func (*SignalCollectors) RefreshOnSchedule ¶
func (x *SignalCollectors) RefreshOnSchedule()
Click to show internal directories.
Click to hide internal directories.