whitelistservice

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("whitelistsevice")

Functions

This section is empty.

Types

type Client

type Client struct {
	HTTP  *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) GetWhiteListParticipantDomains

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

func (*Client) GetWhiteListParticipants

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

type InterfaceClient

type InterfaceClient interface {
	GetWhiteListParticipantDomains(participantID string) ([]string, error)
	GetWhiteListParticipants(participantID string) ([]model.Participant, error)
	GetMutualWhiteListParticipants(participantID string) ([]model.Participant, error)
	GetMutualWhiteListParticipantDomains(participantID string) ([]string, error)
}

type MockClient

type MockClient struct {
	HTTP  *http.Client
	WLURL string
}

func (*MockClient) GetWhiteListParticipantDomains

func (client *MockClient) GetWhiteListParticipantDomains(participantOFIID string) ([]string, error)

func (*MockClient) GetWhiteListParticipants

func (client *MockClient) GetWhiteListParticipants(participantOFIID string) ([]model.Participant, error)

Jump to

Keyboard shortcuts

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