notification

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Automation

type Automation interface {
	Send(ctx context.Context, nOrder order.Order) (bool, error)
	IsNotify(ctx context.Context, wf workflow.Workflow, nodeId string) (bool, error)
	WantResult(ctx context.Context) (map[string]interface{}, error)
}

type Notification

type Notification interface {
	SendAction
}

type Notifications

type Notifications interface {
	GetAutomation() User
	GetUser() Automation
}

type NotifyParams

type NotifyParams struct {
	InstanceId   int
	UserIDs      []string
	NodeId       string
	WantResult   map[string]interface{}
	NotifyMethod string
}

type SendAction

type SendAction interface {
	Send(ctx context.Context, nOrder order.Order, params NotifyParams) (bool, error)
	IsNotification(ctx context.Context, wf workflow.Workflow, instanceId int,
		nodeId string) (bool, map[string]interface{}, error)
}

type User

type User interface {
	Send(ctx context.Context, nOrder order.Order, params NotifyParams) (bool, error)
	IsNotify(ctx context.Context, wf workflow.Workflow) (bool, error)
	WantResult(ctx context.Context) (map[string]interface{}, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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