serfin

package
v0.11.10 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: Apache-2.0 Imports: 8 Imported by: 24

Documentation

Overview

Package serfin bundles up serf functions for goiardi.

Index

Constants

This section is empty.

Variables

Serfer is the common serf client for goiardi. NB: moving away from doing it this way.

Functions

func CloseAll added in v0.11.7

func CloseAll()

CloseAll closes all active serf clients

func CloseSerfClient added in v0.11.7

func CloseSerfClient(serfAddr string)

CloseSerfClient closes one serf client.

func NewRPCClient added in v0.11.7

func NewRPCClient(serfAddr string) (*serfclient.RPCClient, error)

func Query added in v0.11.7

func Query(q *serfclient.QueryParam, errch chan<- error)

Query makes a query to the default serf client, reconnecting if it's been closed.

func SendEvent

func SendEvent(eventName string, payload interface{})

SendEvent sends a serf event out from goiardi.

func SendQuery

func SendQuery(queryName string, payload interface{})

SendQuery sends a basic, no frills query out over serf.

func StartSerfin

func StartSerfin() error

StartSerfin sets up the serf instance and starts listening for events and queries from other serf instances.

Types

This section is empty.

Jump to

Keyboard shortcuts

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