schnittstellen

package
v0.0.0-...-381c4e2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adder

type Adder[E any] interface {
	Add(E) error
}

type AdderCustom

type AdderCustom[E any] interface {
	AddCustomKey(E, func(E) string) error
}

type AdderPtr

type AdderPtr[E any, EPtr Ptr[E]] interface {
	AddPtr(EPtr) error
}

type Akte

type Akte[T any] interface{}

type AkteGetter

type AkteGetter[
	V any,
] interface {
	GetAkte(ShaLike) (V, error)
}

type AkteGetterPutter

type AkteGetterPutter[
	V any,
] interface {
	AkteGetter[V]
	AktePutter[V]
}

type AkteIOFactory

type AkteIOFactory interface {
	AkteReaderFactory
	AkteWriterFactory
}

func MakeBespokeAkteReadWriterFactory

func MakeBespokeAkteReadWriterFactory(
	r AkteReaderFactory,
	w AkteWriterFactory,
) AkteIOFactory

type AktePtr

type AktePtr[T any] interface {
	Akte[T]
	Ptr[T]
}

type AktePutter

type AktePutter[
	V any,
] interface {
	PutAkte(V)
}

type AkteReaderFactory

type AkteReaderFactory interface {
	AkteReader(ShaGetter) (ShaReadCloser, error)
}

func MakeBespokeAkteReadFactory

func MakeBespokeAkteReadFactory(
	r FuncAkteReader,
) AkteReaderFactory

type AkteWriterFactory

type AkteWriterFactory interface {
	AkteWriter() (ShaWriteCloser, error)
}

func MakeBespokeAkteWriteFactory

func MakeBespokeAkteWriteFactory(
	r FuncAkteWriter,
) AkteWriterFactory

type Angeboren

type Angeboren interface {
	GetStoreVersion() StoreVersion
}

type AngeborenGetter

type AngeborenGetter interface {
	GetAngeboren() Angeboren
}

type Collection

type Collection[T any] interface {
	Lenner
	Iterable[T]
}

type CollectionPtr

type CollectionPtr[T any, TPtr Ptr[T]] interface {
	Lenner
	IterablePtr[T, TPtr]
}

type ContainsKeyer

type ContainsKeyer interface {
	ContainsKey(string) bool
}

type Delta

type Delta[T any] interface {
	GetAdded() SetLike[T]
	GetRemoved() SetLike[T]
}

type Element

type Element interface {
	EqualsAny(any) bool
}

type ElementPtr

type ElementPtr[T any] interface {
	Ptr[T]
	Element
}

type Equaler

type Equaler[T any, TPtr Ptr[T]] interface {
	Equaler1[T]
	EqualsPtr(TPtr, TPtr) bool
}

TODO-P2 rename

type Equaler1

type Equaler1[T any] interface {
	Equals(T, T) bool
}

TODO-P2 rename

type Equatable

type Equatable[T any] interface {
	Equals(T) bool
}

type FileExtensionGetter

type FileExtensionGetter interface {
	GetFileExtensionForGattung(GattungGetter) string
	GetFileExtensionZettel() string
	GetFileExtensionOrganize() string
	GetFileExtensionTyp() string
	GetFileExtensionEtikett() string
	GetFileExtensionKasten() string
}

type Flusher

type Flusher interface {
	Flush() error
}

type FuncAbbreviateKorper

type FuncAbbreviateKorper func(Korper) (string, error)

type FuncAbbreviateValue

type FuncAbbreviateValue func(ValueLike) (string, error)

type FuncAkteReader

type FuncAkteReader func(ShaGetter) (ShaReadCloser, error)

type FuncAkteWriter

type FuncAkteWriter func() (ShaWriteCloser, error)

type FuncError

type FuncError func() error

type FuncIter

type FuncIter[T any] func(T) error

type FuncIterIO

type FuncIterIO[T any] func(T) (int64, error)

type FuncIterKey

type FuncIterKey func(string) error

type FuncIterWithKey

type FuncIterWithKey[T any] func(string, T) error

type FuncObjekteReader

type FuncObjekteReader func(ShaGetter) (ShaReadCloser, error)

type FuncObjekteWriter

type FuncObjekteWriter func() (ShaWriteCloser, error)

type FuncReader

type FuncReader func(io.Reader) (int64, error)

type FuncReaderElementInterface

type FuncReaderElementInterface[T any] func(io.Writer, T) (int64, error)

type FuncReaderFormat

type FuncReaderFormat[T any] func(io.Reader, *T) (int64, error)

type FuncReaderFormatInterface

type FuncReaderFormatInterface[T any] func(io.Reader, T) (int64, error)

TODO-P3 switch to below

type FuncSetString

type FuncSetString func(string) error

type FuncShaReadCloser

type FuncShaReadCloser func(ShaLike) (ShaReadCloser, error)

type FuncShaWriteCloser

type FuncShaWriteCloser func(ShaLike) (ShaWriteCloser, error)

type FuncString

type FuncString[T any] func(T) string

type FuncStringWriterFormat

type FuncStringWriterFormat[T any] func(WriterAndStringWriter, T) (int64, error)

type FuncTransform

type FuncTransform[T any, T1 any] func(T) (T1, error)

type FuncWriter

type FuncWriter func(io.Writer) (int64, error)

type FuncWriterElement

type FuncWriterElement[T any] func(io.Writer, *T) (int64, error)

type FuncWriterElementInterface

type FuncWriterElementInterface[T any] func(io.Writer, T) (int64, error)

type FuncWriterFormat

type FuncWriterFormat[T any] func(io.Writer, T) (int64, error)

type GattungGetter

type GattungGetter interface {
	GetGattung() GattungLike
}

type GattungLike

type GattungLike interface {
	StringerGattungGetter
	EqualsGattung(GattungGetter) bool
	GetGattungBitInt() byte
	GetGattungString() string
	GetGattungStringPlural() string
}

type Id

type Id[T any] interface {
	Value[T]
	GattungGetter
}

type IdPtr

type IdPtr[T any] interface {
	Id[T]
	ValuePtr[T]
	Resetable[T]
}

type IncludesCwd

type IncludesCwd interface {
	IncludesCwd() bool
}

type IncludesHidden

type IncludesHidden interface {
	IncludesHidden() bool
}

type IncludesHistory

type IncludesHistory interface {
	IncludesHistory() bool
}

type IncludesSchwanzen

type IncludesSchwanzen interface {
	IncludesSchwanzen() bool
}

type Iterable

type Iterable[T any] interface {
	Any() T // TODO-P2 remove in favor of collection method?
	Each(FuncIter[T]) error
	Lenner
}

type IterablePtr

type IterablePtr[T any, TPtr Ptr[T]] interface {
	EachPtr(FuncIter[TPtr]) error
}

type Konfig

type Konfig interface {
	Angeboren
	UsePredictableHinweisen() bool
	UsePrintTime() bool
	GetFilters() map[string]string
}

type KonfigGetter

type KonfigGetter interface {
	GetKonfig() Konfig
}

type Korper

type Korper interface {
	Stringer
	Kopf() string
	Schwanz() string
}

type Lenner

type Lenner interface {
	Len() int
}

type Lessor

type Lessor[T any] interface {
	Less(T) bool
}

TODO-P2 remove

type Lessor2

type Lessor2[T any, TPtr Ptr[T]] interface {
	Lessor3[T]
	LessPtr(TPtr, TPtr) bool
}

TODO-P2 rename

type Lessor3

type Lessor3[T any] interface {
	Less(T, T) bool
}

type LockSmith

type LockSmith interface {
	IsAcquired() bool
	Lock() error
	Unlock() error
}

type LockSmithGetter

type LockSmithGetter interface {
	GetLockSmith() LockSmith
}

type MutableSetLike

type MutableSetLike[T any] interface {
	SetLike[T]
	Adder[T]
	Del(T) error
	DelKey(string) error
	Resetter
}

type MutableSetPtrLike

type MutableSetPtrLike[T any, TPtr Ptr[T]] interface {
	SetPtrLike[T, TPtr]
	MutableSetLike[T]
	AddPtr(TPtr) error
	DelPtr(TPtr) error
}

type MutableTridex

type MutableTridex interface {
	Tridex
	Add(string)
	Remove(string)
}

type MutableTridexLike

type MutableTridexLike interface {
	TridexLike
	Add(string)
	Remove(string)
}

type MutableValueSet

type MutableValueSet[T flag.Value, TPtr ValuePtr[T]] interface {
	MutableSetLike[T]
}

type ObjekteIOFactory

type ObjekteIOFactory interface {
	ObjekteReaderFactory
	ObjekteWriterFactory
}

func MakeBespokeObjekteReadWriterFactory

func MakeBespokeObjekteReadWriterFactory(
	r ObjekteReaderFactory,
	w ObjekteWriterFactory,
) ObjekteIOFactory

type ObjekteReaderFactory

type ObjekteReaderFactory interface {
	ObjekteReader(ShaGetter) (ShaReadCloser, error)
}

func MakeBespokeObjekteReadFactory

func MakeBespokeObjekteReadFactory(
	r FuncObjekteReader,
) ObjekteReaderFactory

type ObjekteWriterFactory

type ObjekteWriterFactory interface {
	ObjekteWriter() (ShaWriteCloser, error)
}

func MakeBespokeObjekteWriteFactory

func MakeBespokeObjekteWriteFactory(
	r FuncObjekteWriter,
) ObjekteWriterFactory

type Pool

type Pool[T Poolable[T], TPtr PoolablePtr[T]] interface {
	PoolValue[TPtr]
	PutMany(...TPtr) error
}

type PoolValue

type PoolValue[T any] interface {
	Get() T
	Put(i T) (err error)
}

type Poolable

type Poolable[T any] interface{}

type PoolablePtr

type PoolablePtr[T any] interface {
	Ptr[T]
}

type Ptr

type Ptr[T any] interface {
	*T
}

type Resetable

type Resetable[T any] interface {
	Ptr[T]
	ResetWith(T)
	Reset()
}

type Resetter

type Resetter interface {
	Reset()
}

type Resetter2

type Resetter2[T any, TPtr Ptr[T]] interface {
	Reset(TPtr)
	ResetWith(TPtr, TPtr)
}

type ResetterWithError

type ResetterWithError interface {
	Reset() error
}

type SetLike

type SetLike[T any] interface {
	Collection[T]
	ContainsKeyer

	Key(T) string
	Get(string) (T, bool)
	Contains(T) bool
	EachKey(FuncIterKey) error

	CloneSetLike() SetLike[T]
	CloneMutableSetLike() MutableSetLike[T]
}

type SetPtrLike

type SetPtrLike[T any, TPtr Ptr[T]] interface {
	SetLike[T]
	CollectionPtr[T, TPtr]

	GetPtr(string) (TPtr, bool)
	KeyPtr(TPtr) string

	CloneSetPtrLike() SetPtrLike[T, TPtr]
	CloneMutableSetPtrLike() MutableSetPtrLike[T, TPtr]
}

type Setter

type Setter interface {
	Set(string) error
}

type SetterPtr

type SetterPtr[T any] interface {
	Ptr[T]
	Setter
}

type ShaGetter

type ShaGetter interface {
	GetShaLike() ShaLike
}

type ShaLike

type ShaLike interface {
	// TODO-P3
	// GetHashBytes() []byte
	// ValueLike
	Korper
	GetShaString() string
	GetShaBytes() []byte
	EqualsSha(ShaLike) bool // TODO-P3 rename to EqualsShaLike
	IsNull() bool
	ShaGetter
}

TODO-P3 refactor into hash or checksum or content address and split korper out into context object

type ShaReadCloser

type ShaReadCloser interface {
	io.Seeker
	io.WriterTo
	io.ReadCloser
	GetShaLike() ShaLike
}

type ShaWriteCloser

type ShaWriteCloser interface {
	io.ReaderFrom
	io.WriteCloser
	// io.WriterAt
	GetShaLike() ShaLike
}

type Sigil

type SigilGetter

type SigilGetter interface {
	GetSigil() Sigil
}

type Standort

type Standort interface {
	DirKennung() string
	FileVerzeichnisseEtiketten() string
	FileVerzeichnisseKennung() string
	FileVerzeichnisseHinweis() string
}

type StoreVersion

type StoreVersion interface {
	Stringer
	Lessor[StoreVersion]
	GetInt() int
}

type StringAdder

type StringAdder interface {
	AddString(string) error
}

type StringFormatReadWriter

type StringFormatReadWriter[T any] interface {
	StringFormatReader[T]
	StringFormatWriter[T]
}

type StringFormatReader

type StringFormatReader[T any] interface {
	ReadStringFormat(io.Reader, T) (int64, error)
}

type StringFormatWriter

type StringFormatWriter[T any] interface {
	WriteStringFormat(WriterAndStringWriter, T) (int64, error)
}

type StringKeyer

type StringKeyer[T any] interface {
	GetKey(T) string
}

type StringKeyerPtr

type StringKeyerPtr[T any, TPtr Ptr[T]] interface {
	StringKeyer[T]
	GetKeyPtr(TPtr) string
}

type StringLenner

type StringLenner interface {
	Stringer
	Lenner
}

type StringSetterPtr

type StringSetterPtr[T any] interface {
	Stringer
	Ptr[T]
	Setter
}

type Stringer

type Stringer interface {
	String() string
}

type StringerGattungGetter

type StringerGattungGetter interface {
	GattungGetter
	Stringer
}

type StringerPtr

type StringerPtr[T any] interface {
	Stringer
	Ptr[T]
}

type StringerSetter

type StringerSetter interface {
	Stringer
	Setter
}

type StringerSetterPtr

type StringerSetterPtr[T any] interface {
	Stringer
	Setter
	Ptr[T]
}

type Tridex

type Tridex interface {
	TridexLike
}

type TridexLike

type TridexLike interface {
	Lenner
	EachString(FuncIter[string]) error
	ContainsAbbreviation(string) bool
	ContainsExpansion(string) bool
	Abbreviate(string) string
	Expand(string) string
}

type Value

type Value[T any] interface {
	ValueLike
	Equatable[T]
}

type ValueLike

type ValueLike interface {
	Stringer
	Element
}

type ValuePtr

type ValuePtr[T any] interface {
	ValueLike
	// Value[T]
	Ptr[T]
}

type ValuePtrLike

type ValuePtrLike interface {
	ValueLike
	Setter
}

type ValueSet

type ValueSet[T flag.Value, TPtr ValuePtr[T]] interface {
	Strings() []string
	SetLike[T]
}

type VerzeichnisseFactory

type VerzeichnisseFactory interface {
	ReadCloserVerzeichnisse(string) (ShaReadCloser, error)
	WriteCloserVerzeichnisse(string) (ShaWriteCloser, error)
}

type WriterAndStringWriter

type WriterAndStringWriter interface {
	io.Writer
	io.StringWriter
}

Jump to

Keyboard shortcuts

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