matrix

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: MIT Imports: 2 Imported by: 1

README

matrix

golang interfaces

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assembler

type Assembler[ent any, info any] interface {
	Assemble(context.Context, ent) *info
	Disassemble(context.Context, info) *ent
}

type AssemblerUniversal

type AssemblerUniversal[Info any] interface {
	Assemble(ctx context.Context, ent ...any) *Info
	Disassemble(context.Context, Info) []any
}

type Locker

type Locker interface {
	Lock(ctx context.Context, k string, v interface{}, dur time.Duration) error
	Unlock(ctx context.Context, k string) error
}

type Woof

type Woof interface {
	Locker
	Watch(ctx context.Context, k string, dur time.Duration)
}

Jump to

Keyboard shortcuts

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