fake

package
v0.0.0-...-6f84274 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package fake provides a fake notification client for testing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reset

func Reset()

Types

type Client

type Client struct {
	*Config
}

func NewClient

func NewClient(options map[string]any) (*Client, error)

func (*Client) SendMessage

func (c *Client) SendMessage(title, message string) error

type Config

type Config struct {
	CreateError      string `mapstructure:"create_error"`
	SendMessageError string `mapstructure:"send_message_error"`
}

type Message

type Message struct {
	Title   string
	Message string
}

func LastMessage

func LastMessage() Message

func Messages

func Messages() []Message

Jump to

Keyboard shortcuts

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