export

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(security Security) *Handler

func (*Handler) Publish

func (this *Handler) Publish(_ string, _ string, _ string, _ []byte, _ int) (result handler.Result, err error)

func (*Handler) Subscribe

func (this *Handler) Subscribe(_ string, user string, topic string) (result handler.Result, err error)

type Security

type Security interface {
	GetUserId(username string) (userid string, err error)
}

Jump to

Keyboard shortcuts

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