servicecache

package
v8.22.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceCache

type ServiceCache struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

ServiceCache is a new service cache

func NewTable

func NewTable() *ServiceCache

NewTable creates a new table

func (*ServiceCache) Add

func (s *ServiceCache) Add(e *common.Service, data interface{}) error

Add adds a service into the cache

func (*ServiceCache) Find

func (s *ServiceCache) Find(ip net.IP, port int) interface{}

Find searches for a matching service, given an IP and port

Jump to

Keyboard shortcuts

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