prclient

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LOGGER = logging.MustGetLogger("pr-client")

Functions

This section is empty.

Types

type Client

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

func (Client) GetAllParticipants

func (client Client) GetAllParticipants() ([]model.Participant, error)

type InterfaceClient

type InterfaceClient interface {
	GetAllParticipants() ([]model.Participant, error)
}

type MockClient

type MockClient struct {
	GetAllParticipantsFunc func() ([]model.Participant, error)
}

func DefaultMock

func DefaultMock() MockClient

func (MockClient) GetAllParticipants

func (mPR MockClient) GetAllParticipants() ([]model.Participant, error)

Jump to

Keyboard shortcuts

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