smee

package module
v0.0.0-...-aff2d72 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 15 Imported by: 0

README

go-smee

Go Reference

A Go library and CLI tool for smee.

Usage

As a client (uses the smee.io server by default):

smee client http://localhost:8080

The tool will print a URL which can be e.g. registered as a web hook.

As a server:

smee server

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	URL string
	// contains filtered or unexported fields
}

func CreateChannel

func CreateChannel(url string) (*Channel, error)

func (*Channel) Close

func (ch *Channel) Close() error

func (*Channel) ReadWebHook

func (ch *Channel) ReadWebHook() (*WebHook, error)

type Handler

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

func NewHandler

func NewHandler() *Handler

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type WebHook

type WebHook struct {
	Body   []byte
	Query  map[string]string
	Header map[string]string
}

Directories

Path Synopsis
cmd
smee command

Jump to

Keyboard shortcuts

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