storage

package
v0.0.0-...-8a59038 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemory

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

InMemory is in-memory port storage.

func NewInMemory

func NewInMemory() *InMemory

NewInMemory creates a new in-memory port storage.

func (*InMemory) Each

func (storage *InMemory) Each(fn func(key string, port *proto.Port) error) error

Each calls provided callback function for each available pair id/port.

func (*InMemory) Save

func (storage *InMemory) Save(id string, port *proto.Port)

Save a single port.

Jump to

Keyboard shortcuts

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