mockifttt

package
v1.0.0-b2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(t *testing.T) *Client

func (*Client) AddTrigger

func (m *Client) AddTrigger(f ClientTriggerFunc)

func (*Client) HasMore

func (m *Client) HasMore() bool

func (*Client) SetTrigger

func (m *Client) SetTrigger(f ClientTriggerFunc)

func (*Client) Trigger

func (m *Client) Trigger(ctx context.Context, present bool) (event string, values *ifttt.Values, err error)

type ClientTriggerFunc

type ClientTriggerFunc func(ctx context.Context, present bool) (event string, values *ifttt.Values, err error)

Jump to

Keyboard shortcuts

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