fake

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package fake implements a fake button.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewButton

func NewButton(
	ctx context.Context, deps resource.Dependencies, conf resource.Config, logger logging.Logger,
) (button.Button, error)

NewButton instantiates a new button of the fake model type.

Types

type Button

type Button struct {
	resource.Named
	resource.TriviallyCloseable
	resource.AlwaysRebuild
	// contains filtered or unexported fields
}

Button is a fake button that logs when it is pressed.

func (*Button) Push

func (b *Button) Push(ctx context.Context, extra map[string]interface{}) error

Push logs the push.

Jump to

Keyboard shortcuts

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