store

package
v0.0.0-...-00593c4 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	Register(s *stela.Service) error
	Deregister(s *stela.Service) *stela.Service
	Discover(serviceName string) ([]*stela.Service, error)
	DiscoverRegex(reg string) ([]*stela.Service, error)
	DiscoverOne(serviceName string) (*stela.Service, error)
	DiscoverAll() []*stela.Service
	Subscribe(serviceName string, c *stela.Client) error
	Unsubscribe(serviceName string, c *stela.Client) error
	Client(id string) (*stela.Client, error)
	NotifyClients(*stela.Service)
	ServicesByClient(c *stela.Client) []*stela.Service
	// Clients(address string) ([]*stela.Client, error) // Returns all clients by a given ip address
	AddClient(c *stela.Client) error
	RemoveClient(c *stela.Client)
}

Store represents a key value service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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