core

package
v0.0.0-...-e8be2bb Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONSOLE = "console"
	PETSHOP = "petshop"
	PETS    = "pets"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category = string

type Getter

type Getter[K, V any] interface {
	Get(context.Context, K) (V, error)
}

type GetterSeq

type GetterSeq[K, V any] interface {
	Seq(context.Context, K, int) ([]V, error)
}

type Identity

type Identity = string

type Pet

type Pet struct {
	ID       Identity
	Category Category
	Price    Price
}

Pet is an example domain type

type Price

type Price = float64

type Setter

type Setter[K, V any] interface {
	Set(context.Context, K, V) error
}

Jump to

Keyboard shortcuts

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