template

package
v0.3.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSubscriber

func AddSubscriber(n string, h func(context.Context, BusMessage) error) error

AddSubscriber add the subscriber to handle the changed notification from model.Template.

func Notify

func Notify(ctx context.Context, refer *model.Template) error

Notify notifies the changed model.Template.

Types

type BusMessage

type BusMessage struct {
	// Refer holds the updating model.Template item of this calling session.
	Refer *model.Template
}

BusMessage wraps the changed model.Template as a bus.Message.

Jump to

Keyboard shortcuts

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