fakeslack

package
v0.0.0-...-a3dbc15 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	*httprecorder.RequestRecorder
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context) *API

func (*API) Handler

func (f *API) Handler() http.Handler

type APIRequest

type APIRequest struct {
	Channel string `json:"channel"`
	Message []byte `json:"message"`
}

type APIResponse

type APIResponse struct {
	Error   string  `json:"error"`
	Ok      bool    `json:"ok"`
	Message Message `json:"message"`
}

type Message

type Message struct {
	Type string `json:"type"`
	Text string `json:"text"`
}

Jump to

Keyboard shortcuts

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