helper

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotifyMsg

type NotifyMsg interface {
	AddTo(to primitive.ObjectID)
	WriteToHeader(c *gin.Context, headerKey string) error
}

func NewNotifyMsg

func NewNotifyMsg(event string, from, to primitive.ObjectID, data map[string]string, userTrans UserTransFunc) (NotifyMsg, error)

type UserTransFunc

type UserTransFunc func(userIds []primitive.ObjectID) (map[primitive.ObjectID]string, error)

Jump to

Keyboard shortcuts

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