middleware

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

Functions

func LoggingMiddleware

func LoggingMiddleware(next actor.ReceiverFunc) actor.ReceiverFunc

Logger is message middleware which logs messages before continuing to the next middleware

func SetLogLevel

func SetLogLevel(level string) error

Types

type LogAware

type LogAware interface {
	SetLog(log *zap.SugaredLogger)
}

type LogAwareHolder

type LogAwareHolder struct {
	Log *zap.SugaredLogger
}

func (*LogAwareHolder) SetLog

func (state *LogAwareHolder) SetLog(log *zap.SugaredLogger)

type LogPlugin

type LogPlugin struct{}

func (*LogPlugin) OnOtherMessage

func (p *LogPlugin) OnOtherMessage(ctx actor.ReceiverContext, env *actor.MessageEnvelope)

func (*LogPlugin) OnStart

func (p *LogPlugin) OnStart(ctx actor.ReceiverContext)

Jump to

Keyboard shortcuts

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