webhook

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WebhookGoTSRPCProxyUpdateCache = "UpdateCache"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPWebhookGoTSRPCClient

type HTTPWebhookGoTSRPCClient struct {
	URL      string
	EndPoint string
	Client   gotsrpc.Client
}

func NewDefaultWebhookGoTSRPCClient

func NewDefaultWebhookGoTSRPCClient(url string) *HTTPWebhookGoTSRPCClient

func NewWebhookGoTSRPCClient

func NewWebhookGoTSRPCClient(url string, endpoint string) *HTTPWebhookGoTSRPCClient

func NewWebhookGoTSRPCClientWithClient

func NewWebhookGoTSRPCClientWithClient(url string, endpoint string, client *go_net_http.Client) *HTTPWebhookGoTSRPCClient

type Webhook

type Webhook interface {
	UpdateCache(w http.ResponseWriter, r *http.Request, sysType validator.SysType, modelType validator.ModelType, modelID validator.ModelID)
}

type WebhookGoTSRPCProxy

type WebhookGoTSRPCProxy struct {
	EndPoint string
	// contains filtered or unexported fields
}

func NewDefaultWebhookGoTSRPCProxy

func NewDefaultWebhookGoTSRPCProxy(service Webhook) *WebhookGoTSRPCProxy

func NewWebhookGoTSRPCProxy

func NewWebhookGoTSRPCProxy(service Webhook, endpoint string) *WebhookGoTSRPCProxy

func (*WebhookGoTSRPCProxy) ServeHTTP

func (p *WebhookGoTSRPCProxy) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP exposes your service

Jump to

Keyboard shortcuts

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