handlers

package
v0.0.0-...-168b963 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2016 License: Apache-2.0 Imports: 7 Imported by: 10

Documentation

Overview

Package handlers contains common code used for message handling

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugContext

func DebugContext(ctx gotocol.Context) gotocol.Context

DebugContext turns on debug context logging for eureka and edda messages

func Forget

func Forget(dependencies *map[string]time.Time, router *ribbon.Router, msg gotocol.Message)

Forget removes a buddy from the buddy list

func GetRequest

func GetRequest(msg gotocol.Message, name string, listener chan gotocol.Message, requestor *map[string]gotocol.Routetype, router *ribbon.Router)

GetRequest sends a GetRequest message to a service

func GetResponse

func GetResponse(msg gotocol.Message, name string, listener chan gotocol.Message, requestor *map[string]gotocol.Routetype)

GetResponse provides generic response handling

func Inform

func Inform(msg gotocol.Message, name string, listener chan gotocol.Message) chan gotocol.Message

Inform default handler for Inform message

func NameDrop

func NameDrop(dependencies *map[string]time.Time, router *ribbon.Router, msg gotocol.Message, name string, listener chan gotocol.Message, eureka map[string]chan gotocol.Message, crosszone ...bool)

NameDrop updates local buddy list

func Put

func Put(msg gotocol.Message, name string, listener chan gotocol.Message, requestor *map[string]gotocol.Routetype, router *ribbon.Router)

Put sends a Put message to a service

Types

This section is empty.

Jump to

Keyboard shortcuts

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