Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶ added in v0.50.4
type Client interface {
Search(ctx context.Context, params SearchParams) ([]SearchResult, error)
}
Client is an HTTP client which makes calls to the OFAC Sanctions List Search application ("Sanctions List Search") hosted at https://sanctionslist.ofac.treas.gov/Home/index.html
This client is mostly used for comparison of Watchman against the official OFAC tool.
type ErrorResponse ¶ added in v0.50.4
type ErrorResponse struct { Name string `json:"name"` City string `json:"city"` IDNumber string `json:"idNumber"` StateProvince string `json:"stateProvince"` NameScore int `json:"nameScore"` Success bool `json:"success"` ErrorMessage string `json:"errorMessage"` Country string `json:"country"` Programs []interface{} `json:"programs"` Type string `json:"type"` Address string `json:"address"` List string `json:"list"` }
func (ErrorResponse) Error ¶ added in v0.50.4
func (er ErrorResponse) Error() string
type SearchParams ¶ added in v0.50.4
type SearchParams struct { Name string `json:"name"` City string `json:"city"` IDNumber string `json:"idNumber"` StateProvince string `json:"stateProvince"` NameScore int `json:"nameScore"` Country string `json:"country"` Programs []string `json:"programs"` Type string `json:"type"` Address string `json:"address"` List string `json:"list"` }
Click to show internal directories.
Click to hide internal directories.