whitelistclient

package
v0.0.0-...-1305305 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LOGGER = logging.MustGetLogger("whitelistclient")

Functions

This section is empty.

Types

type Client

type Client struct {
	HTTPClient *http.Client
	WLURL      string
}

func (*Client) CreateWhiteListParticipants

func (client *Client) CreateWhiteListParticipants(participantID, wlparitcipantID string) error

func (*Client) DeleteWhiteListParticipants

func (client *Client) DeleteWhiteListParticipants(participantID, wlparitcipantID string) error

func (*Client) GetMutualWhiteListParticipantDomains

func (client *Client) GetMutualWhiteListParticipantDomains(participantID string) ([]string, error)

func (*Client) GetMutualWhiteListParticipants

func (client *Client) GetMutualWhiteListParticipants(participantID string) ([]model.Participant, error)

func (*Client) GetWhiteListParticipantDomains

func (client *Client) GetWhiteListParticipantDomains(participantID string) ([]string, error)

func (*Client) GetWhiteListParticipants

func (client *Client) GetWhiteListParticipants(participantID string) ([]model.Participant, error)

func (*Client) IsParticipantWhiteListed

func (client *Client) IsParticipantWhiteListed(participantID string, targetDomain string) (bool, error)

type InterfaceClient

type InterfaceClient interface {
	GetWhiteListParticipantDomains(participantID string) ([]string, error)
	GetWhiteListParticipants(participantID string) ([]model.Participant, error)
	CreateWhiteListParticipants(participantID, wlparitcipantID string) error
	IsParticipantWhiteListed(participantID string, targetDomain string) (bool, error)
	DeleteWhiteListParticipants(participantID, wlparitcipantID string) error
	GetMutualWhiteListParticipantDomains(participantID string) ([]string, error)
	GetMutualWhiteListParticipants(participantID string) ([]model.Participant, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL