Documentation
¶
Index ¶
Constants ¶
View Source
const CACHE_LOOKBACK = 90 // days
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BetterContactData ¶
type BetterContactRequestBody ¶
type BetterContactRequestBody struct { Data []BetterContactData `json:"data"` Webhook string `json:"webhook"` EnrichPhoneNumber bool `json:"enrich_phone_number"` }
type BettercontactService ¶
type BettercontactService interface {
FindWorkEmail(ctx context.Context, linkedInUrl, firstName, lastName, companyName, companyDomain string, enrichPhoneNumber bool) (string, string, *postgresentity.BetterContactResponseBody, error)
}
func NewBettercontactService ¶
type BrandfetchService ¶
type BrandfetchService interface {
GetByDomain(ctx context.Context, domain string) (*postgresentity.BrandfetchResponseBody, error)
}
func NewBrandfetchService ¶
type IPIdentityService ¶
type IPIdentityService interface {
IPIdentity(c context.Context, ip string) (*model.SnitcherResponse, error)
}
func NewIPIdentityService ¶
func NewIPIdentityService(config *config.Config, services *Services) IPIdentityService
type ScrapinService ¶
type ScrapinService interface { ScrapInPersonProfile(ctx context.Context, linkedInUrl string) (uint64, *postgresentity.ScrapInResponseBody, error) ScrapInSearchPerson(ctx context.Context, email, fistName, lastName, domain, companyName string) (uint64, *postgresentity.ScrapInResponseBody, error) ScrapInCompanyProfile(ctx context.Context, linkedInUrl string) (uint64, *postgresentity.ScrapInResponseBody, error) ScrapInSearchCompany(ctx context.Context, domain string) (uint64, *postgresentity.ScrapInResponseBody, error) }
func NewScrapInService ¶
type Services ¶
type Services struct { Logger logger.Logger CommonServices *commonservice.Services BettercontactService BettercontactService BrandfetchService BrandfetchService ScrapeInService ScrapinService IPIdentityService IPIdentityService }
func InitServices ¶
func InitServices(config *config.Config, postgresDB *commonConfig.PostgresDB, driver *neo4j.DriverWithContext, logger logger.Logger) *Services
Click to show internal directories.
Click to hide internal directories.