memory

package
v0.0.0-...-08e1117 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feature

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

func NewFeature

func NewFeature(logger *log.Logger) *Feature

Service

func (*Feature) GetHandler

func (f *Feature) GetHandler() (string, http.Handler)

type Store

type Store[T any] interface {
	Create(T) (T, error)
	Update(T) (T, error)
	Patch(T) (T, error)
	Get(T) T
	List(T, int, int) []T
	Delete(T) (T, error)
}

Interfaces for strategy pattern

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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