web

package
v0.0.0-...-546eb9a Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallbacksHandler

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

func (*CallbacksHandler) NotifyUpdate

func (c *CallbacksHandler) NotifyUpdate(namespace, key string)

func (*CallbacksHandler) RegisterCallback

func (c *CallbacksHandler) RegisterCallback(namespace, key, callback string)

type HttpServer

type HttpServer interface {
	ServeRequests()
}

func GetHttpServer

func GetHttpServer(db data.Storage, notifier UpdatesNotifier) HttpServer

type PutProperty

type PutProperty struct {
	Key       string `json:"key"`
	Value     string `json:"value"`
	Namespace string `json:"namespace"`
}

type StoreBackedServer

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

func (*StoreBackedServer) ServeRequests

func (h *StoreBackedServer) ServeRequests()

type UpdatesNotifier

type UpdatesNotifier interface {
	NotifyUpdate(namespace, key string)
	RegisterCallback(namespace, key, callback string)
}

func GetCallbacksHandler

func GetCallbacksHandler(callbacksMapping map[string]string) UpdatesNotifier

type WebhookProperty

type WebhookProperty struct {
	Key       string `json:"key"`
	Namespace string `json:"namespace"`
	Callback  string `json:"callback"`
}

Jump to

Keyboard shortcuts

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