memory

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrListenerNotFound = errors.New(fmt.Sprintf("%s: listener not found", pkg))

Functions

This section is empty.

Types

type Repository

type Repository struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository() *Repository

func (*Repository) Add

func (r *Repository) Add(listener listener.Listener)

func (*Repository) Get

func (r *Repository) Get(id uuid.UUID) (listener *listener.Listener, err error)

func (*Repository) Remove

func (r *Repository) Remove(id uuid.UUID)

func (*Repository) ServerID

func (r *Repository) ServerID(id uuid.UUID, serverID uuid.UUID) (err error)

func (*Repository) Update

func (r *Repository) Update(id uuid.UUID, options map[string]string) error

Jump to

Keyboard shortcuts

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