message_push

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LivePush

func LivePush(ctx context.Context, anchor string)

func PushMessage

func PushMessage(ctx context.Context, mp *MessageModel) (err error)

func Register

func Register(channelType string, b Builder)

Types

type Builder

type Builder interface {
	Build(string, string) (MessagePush, error)
}

type MessageModel

type MessageModel struct {
	Title   string
	Content string
}

type MessagePush

type MessagePush interface {
	Push(ctx context.Context, channel *model.PushChannel) (err error)
	PushMessage(ctx context.Context, channel *model.PushChannel, mp *MessageModel) (err error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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