store

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CatalogStore

type CatalogStore interface {
	Add(name string, s ServiceInfo) bool
	Get(name string) (ServiceInfo, bool)
}

func NewMemCatalogStore

func NewMemCatalogStore() CatalogStore

type MemCatalogStore

type MemCatalogStore struct {
	// contains filtered or unexported fields
}

func (*MemCatalogStore) Add

func (m *MemCatalogStore) Add(name string, s ServiceInfo) bool

func (*MemCatalogStore) Get

func (m *MemCatalogStore) Get(name string) (ServiceInfo, bool)

type ServiceInfo

type ServiceInfo struct {
	Address string
	Socket  SocketType
}

type SocketType

type SocketType string
const (
	TCP  SocketType = "tcp"
	UNIX SocketType = "unix"
)

Jump to

Keyboard shortcuts

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