notify

package
v0.0.0-...-7d8e025 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewDefaultService

func NewDefaultService(k []byte, h *mercure.Hub, l *slog.Logger) (*Service, error)

func (*Service) Notify

func (s *Service) Notify(data []byte, id int, topics ...Topic) error

func (*Service) Subscribe

func (s *Service) Subscribe(c echo.Context, topics []string) error

type Topic

type Topic struct {
	Type  string
	Topic string
}

Jump to

Keyboard shortcuts

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