serf

package
v0.0.0-...-efca985 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(conf *config.Config, log *logrus.Logger) (discovery.Discovery, error)

New provides initialization of master

Types

type Service

type Service struct {
	Name   string
	TTL    time.Duration
	Client *serf.Serf
}

Service adds definition for serf discovery

func NewStrict

func NewStrict(conf *config.Config, log *logrus.Logger) (*Service, error)

NewStrict provides initialization of the Serf client

func (*Service) ListNodes

func (s *Service) ListNodes(req models.FilterNodes) ([]*models.Host, error)

ListNodes return list of nodes

Jump to

Keyboard shortcuts

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