webhook

package
v0.0.0-...-81091ff Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const TokenSize = 16

URLに使用するランダム文字列の長さ

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(size int) (string, error)

URLセーフなランダム文字列を返します。

Types

type WebhookServer

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

Webhookサーバー

func NewWebhookServer

func NewWebhookServer(handle, pass, port string) (*WebhookServer, error)

func (*WebhookServer) ListenAndServe

func (ws *WebhookServer) ListenAndServe() error

ハンドラを定義してサーバーを起動します。

Jump to

Keyboard shortcuts

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