liveapi

package
v1.8.12 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: GPL-3.0 Imports: 18 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupPersistentClients added in v1.8.7

func CleanupPersistentClients()

func SetupPersistentClients added in v1.8.7

func SetupPersistentClients()

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller implements PMAPIController interface for specified endpoint.

func NewController

func NewController(_ string) (*Controller, pmapi.Manager)

func (*Controller) AddUser

func (ctl *Controller) AddUser(account *accounts.TestAccount) error

func (*Controller) AddUserLabel

func (ctl *Controller) AddUserLabel(username string, label *pmapi.Label) error

func (*Controller) AddUserMessage

func (ctl *Controller) AddUserMessage(username string, message *pmapi.Message) (string, error)

func (*Controller) GetAuthClient added in v1.8.7

func (ctl *Controller) GetAuthClient(username string) pmapi.Client

func (*Controller) GetCalls

func (ctl *Controller) GetCalls(method, path string) [][]byte

func (*Controller) GetLabelIDs

func (ctl *Controller) GetLabelIDs(username string, labelNames []string) ([]string, error)

func (*Controller) GetMessages

func (ctl *Controller) GetMessages(username, labelID string) ([]*pmapi.Message, error)

func (*Controller) LockEvents added in v1.8.12

func (ctl *Controller) LockEvents()

func (*Controller) PrintCalls

func (ctl *Controller) PrintCalls()

func (*Controller) ReorderAddresses

func (ctl *Controller) ReorderAddresses(user *pmapi.User, addressIDs []string) error

func (*Controller) TurnInternetConnectionOff

func (ctl *Controller) TurnInternetConnectionOff()

func (*Controller) TurnInternetConnectionOn

func (ctl *Controller) TurnInternetConnectionOn()

func (*Controller) UnlockEvents added in v1.8.12

func (ctl *Controller) UnlockEvents()

func (*Controller) WasCalled

func (ctl *Controller) WasCalled(method, path string, expectedRequest []byte) bool

func (*Controller) WasCalledRegex added in v1.8.10

func (ctl *Controller) WasCalledRegex(methodRegex, pathRegex string, expectedRequest []byte) (bool, error)

Jump to

Keyboard shortcuts

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