Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckOutput ¶
type Client ¶
type Client interface { IPCheck(ctx context.Context, input *IPCheckInput) (*pangea.PangeaResponse[CheckOutput], error) ISOCheck(ctx context.Context, input *ISOCheckInput) (*pangea.PangeaResponse[CheckOutput], error) }
type Embargo ¶
func (*Embargo) IPCheck ¶
func (e *Embargo) IPCheck(ctx context.Context, input *IPCheckInput) (*pangea.PangeaResponse[CheckOutput], error)
@summary Check IP
@description Check this IP against known sanction and trade embargo lists.
@example
input := &embargo.IPCheckInput{ IP: pangea.String("213.24.238.26"), } checkResponse, err := embargocli.IPCheck(ctx, input)
func (*Embargo) ISOCheck ¶
func (e *Embargo) ISOCheck(ctx context.Context, input *ISOCheckInput) (*pangea.PangeaResponse[CheckOutput], error)
@summary ISO Code Check
@description Check this country against known sanction and trade embargo lists.
@example
input := &embargo.ISOCheckInput{ ISOCode: pangea.String("CU"), } checkResponse, err := embargocli.ISOCheck(ctx, input)
type IPCheckInput ¶
type IPCheckInput struct { // Check this IP against the enabled embargo lists. // Accepts both IPV4 and IPV6 strings. IP *string `json:"ip,omitempty"` }
type ISOCheckInput ¶
type ISOCheckInput struct { // Check this two character country ISO-code against the enabled embargo lists. ISOCode *string `json:"iso_code,omitempty"` }
Click to show internal directories.
Click to hide internal directories.