playground

package
v0.0.0-...-5fb48e9 Latest Latest
Warning

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

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

Documentation

Overview

Package playground provides a handler.MatchFn and a Client struct with a Handler method that can be used as handler.ActionFn.

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
}

Client is the Go Playground client.

func New

func New(httpc *http.Client, logger zerolog.Logger, channelBlacklist []string) *Client

New takes an HTTP client and returns a Playground Client. If httpc is nil this program will probably panic at some point.

func (*Client) Handler

Handler is a handler.ActionFn.

func (*Client) MessageMatchFn

func (c *Client) MessageMatchFn(shadowMode bool, m handler.Messenger) bool

MessageMatchFn satisfies handler.MessageMatchFn

Jump to

Keyboard shortcuts

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