app

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	*common.Inject

	M sync.Map
}

func Initialize

func Initialize(i *common.Inject) (x *App)

func (*App) Get

func (x *App) Get(key string) *nats.Subscription

func (*App) NamespaceParse added in v2.1.0

func (x *App) NamespaceParse() string

func (*App) Pipe

func (x *App) Pipe(input M, paths []string, kind interface{}) (err error)

func (*App) Push

func (x *App) Push(key string, msg *nats.Msg) (err error)

func (*App) Remove

func (x *App) Remove(key string)

func (*App) RemoveSubscribe

func (x *App) RemoveSubscribe(key string) (err error)

func (*App) Run

func (x *App) Run() (err error)

func (*App) Set

func (x *App) Set(key string, v *nats.Subscription)

func (*App) SetSubscribe

func (x *App) SetSubscribe(key string, option *client.StreamOption) (err error)

func (*App) Transform

func (x *App) Transform(data M, rules M) (err error)

type M

type M = map[string]interface{}

type Payload added in v2.0.3

type Payload struct {
	Timestamp time.Time              `msgpack:"timestamp"`
	Data      map[string]interface{} `msgpack:"data"`
	XData     map[string]interface{} `msgpack:"xdata"`
}

Jump to

Keyboard shortcuts

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