Documentation
¶
Index ¶
- Constants
- type AkaNames
- type Associate
- type BaseResponse
- type CertificateResponse
- type Client
- func (c *Client) Searches(request *SearchesRequest) (*SearchResponse, error)
- func (c *Client) SearchesById(id uint) (*SearchResponse, error)
- func (c *Client) SearchesByIdCert(id uint) ([]byte, error)
- func (c *Client) SearchesByIdDetails(id uint) (*SearchResponse, error)
- func (c *Client) SearchesByTerm(term string) (r *SearchResponse, err error)
- func (c *Client) Users() (*UsersResponse, error)
- type Content
- type Entity
- type Field
- type Filter
- type Hit
- type JsonBool
- type Media
- type Request
- type Response
- type SearchObject
- type SearchProfile
- type SearchResponse
- type SearchResult
- type SearchString
- type SearchTerm
- type Searcher
- type SearchesRequest
- type SearchesResponse
- type Tags
- type User
- type UsersResponse
Constants ¶
View Source
const ( Users = "/users" Searches = "/searches" SearchesById = "/searches/%d" SearchesByIdCert = "/searches/%d/certificate" SearchesByIdDetails = "/searches/%d/details" SearchesByIdMonitors = "/searches/%d/monitors" )
View Source
const ( BaseUrl = "https://api.complyadvantage.com" ApiKey = "api_key" )
View Source
const ( EntityTypePerson = "person" EntityTypeCompany = "company" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseResponse ¶
type CertificateResponse ¶
type CertificateResponse struct {
PdfData []byte
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Searches ¶
func (c *Client) Searches(request *SearchesRequest) (*SearchResponse, error)
func (*Client) SearchesById ¶
func (c *Client) SearchesById(id uint) (*SearchResponse, error)
func (*Client) SearchesByIdDetails ¶
func (c *Client) SearchesByIdDetails(id uint) (*SearchResponse, error)
func (*Client) SearchesByTerm ¶
func (c *Client) SearchesByTerm(term string) (r *SearchResponse, err error)
func (*Client) Users ¶
func (c *Client) Users() (*UsersResponse, error)
type Entity ¶
type Entity struct {
Id string `json:"id"`
EntityType string `json:"entity_type"`
LastUpdateUtc time.Time `json:"last_update_utc"`
Name string `json:"name"`
FirstName string `json:"first_name"`
MiddleName string `json:"middle_name"`
LastName string `json:"last_name"`
Sources []string `json:"sources"`
Types []string `json:"types"`
Fields []*Field `json:"fields"`
Aka []*AkaNames `json:"aka"`
Associates []*Associate `json:"associates"`
Media []*Media `json:"media"`
IsWhitelisted bool `json:"is_whitelisted"`
MatchTypes []string `json:"match_types"`
Score float64 `json:"score"`
}
type SearchObject ¶
type SearchProfile ¶
type SearchResponse ¶
type SearchResponse struct {
BaseResponse
Content struct {
Data SearchResult `json:"data"`
} `json:"content"`
}
type SearchResult ¶
type SearchResult struct {
Id uint `json:"id"`
Ref string `json:"ref"`
SearcherId uint `json:"searcher_id"`
Searcher Searcher `json:"assignee"`
Assignee Searcher `json:"assignee"`
AssigneeId uint `json:"assignee_id"`
SearchProfile *SearchProfile `json:"search_profile"`
Filters *Filter `json:"filters"`
MatchStatus string `json:"match_status"`
RiskLevel string `json:"risk_level"`
SearchTerm string `json:"search_term"`
TotalHits uint `json:"total_hits"`
UpdatedAt string `json:"updated_at"`
CreatedAt string `json:"created_at"`
Tags *Tags `json:"tags"`
Hits []Hit `json:"hits"`
}
type SearchString ¶
type SearchString string
type SearchTerm ¶
type SearchTerm interface{}
type SearchesRequest ¶
type SearchesRequest struct {
// required
SearchTerm SearchTerm `json:"search_term"`
ClientRef string `json:"client_ref"`
SearchProfile string `json:"search_profile"`
Fuzziness float64 `json:"fuzziness"`
Offset int `json:"offset"`
Limit int `json:"limit"`
Filters *Filter `json:"filters"`
Tags map[string]string `json:"tags"`
}
type SearchesResponse ¶
type SearchesResponse struct {
BaseResponse
Content struct {
Data []SearchResult `json:"data"`
} `json:"content"`
}
type UsersResponse ¶
type UsersResponse struct {
BaseResponse
Content struct {
Data []User `json:"data"`
} `json:"content"`
}
Click to show internal directories.
Click to hide internal directories.