app

package
v0.0.0-...-8eff3c5 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPushStrategy

func RegisterPushStrategy(channel string, service PushStrategy)

func RegisterTransformer

func RegisterTransformer(channel string, service TransformerStrategy)

Types

type PushStrategy

type PushStrategy interface {
	Push(content *model.PushMessage) (model.CommonResult, error)
}

func GetPushStrategy

func GetPushStrategy(channel string) (PushStrategy, error)

type TransformerStrategy

type TransformerStrategy interface {
	Transform(c *gin.Context) (*model.PushMessage, error)
}

func GetTransformer

func GetTransformer(channel string) (TransformerStrategy, error)

Jump to

Keyboard shortcuts

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