loopbackconn

package
v14.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallHandler

type CallHandler func(ctx context.Context, method string, params interface{}, result interface{}) error

type LoopbackConn

type LoopbackConn interface {
	butlerd.Conn

	OnNotification(method string, handler NotificationHandler)
	OnCall(method string, handler CallHandler)
}

func New

func New(consumer *state.Consumer) LoopbackConn

type NotificationHandler

type NotificationHandler func(ctx context.Context, method string, params interface{}) error
var NoopNotificationHandler NotificationHandler = func(ctx context.Context, method string, params interface{}) error {
	return nil
}

Jump to

Keyboard shortcuts

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