A shared type definitions package for Masa Finance TEE projects.
This package provides essential type definitions for communication between tee-worker and tee-indexer services. It supports various social media platforms including LinkedIn, Twitter, and TikTok, enabling both search and detailed profile fetching operations.
This package follows a minimalist approach, sharing only the essential types needed for the interface between tee-worker and tee-indexer. This approach reduces coupling between the services while ensuring consistent communication.
Each service should implement their own internal types that extend or build upon these shared types as needed.
linkedin.go- LinkedIn operation arguments supporting both search and profile fetchingtwitter.go- Twitter-specific argumentstiktok.go- TikTok-specific argumentsweb.go- General web scraping arguments
linkedin.go- LinkedIn result types including search results and detailed profile datatwitter.go- Twitter result structurestiktok.go- TikTok result structures
Use LinkedInArguments (or the deprecated LinkedInSearchArguments) for profile searches:
args := &args.LinkedInArguments{
QueryType: "searchbyquery",
Query: "software engineer",
MaxResults: 10,
Start: 0,
}Use LinkedInArguments with PublicIdentifier for detailed profile retrieval:
args := &args.LinkedInArguments{
QueryType: "getprofile",
PublicIdentifier: "john-doe-123",
}LinkedInProfileResult- Basic profile information from search resultsLinkedInFullProfileResult- Comprehensive profile data including experience, education, and skills
To use this package in your project, add it as a dependency:
go get github.com/masa-finance/[email protected]Then import the required packages:
import (
"github.com/masa-finance/tee-types/args"
"github.com/masa-finance/tee-types/types"
)The package maintains full backward compatibility. Existing code using LinkedInSearchArguments will continue to work, though migration to LinkedInArguments is recommended for future compatibility.
- v1.0.0 - Initial release with LinkedIn profile fetching support