adapters

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInMemoryRepository

func NewInMemoryRepository() ports.Repository

NewInMemoryRepository creates a thread-safe local storage adapter.

Types

type InMemoryRepository

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

InMemoryRepository is an database adapter that implements ports.Repository.

func (*InMemoryRepository) FindAll

func (r *InMemoryRepository) FindAll(ctx context.Context) ([]domain.Incident, error)

func (*InMemoryRepository) Save

Jump to

Keyboard shortcuts

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