Documentation ¶
Index ¶
- type Adder
- type AdderCustom
- type AdderPtr
- type Blob
- type BlobGetter
- type BlobGetterPutter
- type BlobIOFactory
- type BlobPtr
- type BlobPutter
- type BlobReaderFactory
- type BlobWriterFactory
- type CacheIOFactory
- type Cloner
- type Collection
- type CollectionOld
- type CollectionPtr
- type CompoundKeyer
- type Config
- type ConfigDryRunReader
- type ConfigDryRunWriter
- type ConfigGetFilters
- type ContainsKeyer
- type Delta
- type Directory
- type DirectoryPaths
- type Element
- type ElementPtr
- type Equaler
- type Equaler1
- type Equatable
- type FileExtensionGetter
- type Flusher
- type FuncAbbreviateKorper
- type FuncAbbreviateValue
- type FuncError
- type FuncIter
- type FuncIterIO
- type FuncIterKey
- type FuncIterWithKey
- type FuncMakePrinter
- type FuncObjectReader
- type FuncObjectWriter
- type FuncReader
- type FuncReaderElementInterface
- type FuncReaderFormat
- type FuncReaderFormatInterface
- type FuncSetString
- type FuncShaReadCloser
- type FuncShaWriteCloser
- type FuncString
- type FuncStringWriterFormat
- type FuncTransform
- type FuncWriter
- type FuncWriterElement
- type FuncWriterElementInterface
- type FuncWriterFormat
- type Genre
- type GenreGetter
- type Id
- type IdPtr
- type ImmutableConfig
- type ImmutableConfigGetter
- type IncludesExternal
- type IncludesHidden
- type IncludesHistory
- type IncludesLatest
- type Iterable
- type IterablePtr
- type KeyedIterable
- type Lenner
- type Lessor
- type Lessor2
- type Lessor3
- type LockSmith
- type LockSmithGetter
- type MutableConfig
- type MutableConfigDryRun
- type MutableSetLike
- type MutableSetPtrLike
- type MutableStoredConfig
- type MutableTridex
- type MutableTridexLike
- type MutableValueSet
- type ObjectIOFactory
- type ObjectId
- type ObjectIdWithRepoId
- type ObjectReaderFactory
- type ObjectWriterFactory
- type Pool
- type Pool2
- type PoolValue
- type PoolValue2
- type Poolable
- type PoolablePtr
- type Ptr
- type RepoId
- type RepoIdGetter
- type Resetable
- type Resetter
- type Resetter2
- type Resetter3
- type ResetterWithError
- type SetLike
- type SetPtrLike
- type Setter
- type SetterPtr
- type Sha
- type ShaGetter
- type ShaReadCloser
- type ShaWriteCloser
- type Sigil
- type SigilGetter
- type StoreVersion
- type StringAdder
- type StringFormatReadWriter
- type StringFormatReader
- type StringFormatWriter
- type StringKeyer
- type StringKeyerPtr
- type StringLenner
- type StringSetterPtr
- type Stringer
- type StringerPtr
- type StringerSetter
- type StringerSetterPtr
- type StringerWithHeadAndTail
- type Tridex
- type TridexLike
- type Value
- type ValueLike
- type ValuePtr
- type ValuePtrLike
- type ValueSet
- type WriterAndStringWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdderCustom ¶
type Blob ¶
type Blob[T any] interface{}
Blobs represent persisted files, like blobs in Git. Blobs are used by Zettels, types, tags, config, and inventory lists.
type BlobGetter ¶
Blobs represent persisted files, like blobs in Git. Blobs are used by Zettels, types, tags, config, and inventory lists.
type BlobGetterPutter ¶
type BlobGetterPutter[ V any, ] interface { BlobGetter[V] BlobPutter[V] }
Blobs represent persisted files, like blobs in Git. Blobs are used by Zettels, types, tags, config, and inventory lists.
type BlobIOFactory ¶
type BlobIOFactory interface { BlobReaderFactory BlobWriterFactory }
Blobs represent persisted files, like blobs in Git. Blobs are used by Zettels, types, tags, config, and inventory lists.
type BlobPtr ¶
Blobs represent persisted files, like blobs in Git. Blobs are used by Zettels, types, tags, config, and inventory lists.
type BlobPutter ¶
type BlobPutter[ V any, ] interface { PutBlob(V) }
Blobs represent persisted files, like blobs in Git. Blobs are used by Zettels, types, tags, config, and inventory lists.
type BlobReaderFactory ¶
type BlobReaderFactory interface {
BlobReader(ShaGetter) (ShaReadCloser, error)
}
Blobs represent persisted files, like blobs in Git. Blobs are used by Zettels, types, tags, config, and inventory lists.
type BlobWriterFactory ¶
type BlobWriterFactory interface {
BlobWriter() (ShaWriteCloser, error)
}
Blobs represent persisted files, like blobs in Git. Blobs are used by Zettels, types, tags, config, and inventory lists.
type CacheIOFactory ¶
type CacheIOFactory interface { ReadCloserCache(string) (ShaReadCloser, error) WriteCloserCache(string) (ShaWriteCloser, error) }
type Collection ¶
type CollectionOld ¶
type CollectionPtr ¶
type CollectionPtr[T any, TPtr Ptr[T]] interface { Lenner IterablePtr[T, TPtr] }
type CompoundKeyer ¶
type CompoundKeyer[T any] []StringKeyer[T]
func (CompoundKeyer[T]) GetKey ¶
func (ck CompoundKeyer[T]) GetKey(e T) string
type Config ¶
type Config interface { MutableConfig ImmutableConfig GetTypeStringFromExtension(t string) string }
type ConfigDryRunReader ¶
type ConfigDryRunReader interface {
IsDryRun() bool
}
type ConfigDryRunWriter ¶
type ConfigDryRunWriter interface {
SetDryRun(bool)
}
type ConfigGetFilters ¶
type ContainsKeyer ¶
type Directory ¶
type Directory interface { DirectoryPaths Delete(string) error }
type DirectoryPaths ¶
type DirectoryPaths interface { Dir(p ...string) string DirCache(p ...string) string DirCacheObjectPointers() string DirCacheObjects() string DirCacheRepo(p ...string) string DirLostAndFound() string DirObjectGenre(g GenreGetter) (p string, err error) DirObjectId() string DirObjects(p ...string) string DirZit(p ...string) string FileAge() string FileCacheDormant() string FileCacheObjectId() string FileConfigMutable() string FileConfigPermanent() string FileLock() string FileTags() string }
type ElementPtr ¶
type FileExtensionGetter ¶
type FuncAbbreviateKorper ¶
type FuncAbbreviateKorper func(StringerWithHeadAndTail) (string, error)
type FuncAbbreviateValue ¶
type FuncIterIO ¶
type FuncIterKey ¶
type FuncIterWithKey ¶
type FuncMakePrinter ¶
type FuncMakePrinter[OUT any] func(WriterAndStringWriter) FuncIter[OUT]
type FuncObjectReader ¶
type FuncObjectReader func(ShaGetter) (ShaReadCloser, error)
type FuncObjectWriter ¶
type FuncObjectWriter func() (ShaWriteCloser, error)
type FuncReaderFormatInterface ¶
TODO-P3 switch to below
type FuncSetString ¶
type FuncShaReadCloser ¶
type FuncShaReadCloser func(Sha) (ShaReadCloser, error)
type FuncShaWriteCloser ¶
type FuncShaWriteCloser func(Sha) (ShaWriteCloser, error)
type FuncString ¶
type FuncStringWriterFormat ¶
type FuncStringWriterFormat[T any] func(WriterAndStringWriter, T) (int64, error)
type FuncTransform ¶
type Genre ¶
type Genre interface { ObjectId EqualsGenre(GenreGetter) bool GetGenreBitInt() byte GetGenreString() string GetGenreStringPlural(StoreVersion) string }
type GenreGetter ¶
type GenreGetter interface {
GetGenre() Genre
}
type Id ¶
type Id[T any] interface { Value[T] GenreGetter }
type ImmutableConfig ¶
type ImmutableConfig interface {
GetStoreVersion() StoreVersion
}
type ImmutableConfigGetter ¶
type ImmutableConfigGetter interface {
GetImmutableConfig() ImmutableConfig
}
type IncludesExternal ¶
type IncludesExternal interface {
IncludesExternal() bool
}
type IncludesHidden ¶
type IncludesHidden interface {
IncludesHidden() bool
}
type IncludesHistory ¶
type IncludesHistory interface {
IncludesHistory() bool
}
type IncludesLatest ¶
type IncludesLatest interface {
IncludesLatest() bool
}
type IterablePtr ¶
type KeyedIterable ¶
type LockSmithGetter ¶
type LockSmithGetter interface {
GetLockSmith() LockSmith
}
type MutableConfig ¶
type MutableConfig interface { MutableStoredConfig UsePrintTime() bool UsePredictableZettelIds() bool MutableConfigDryRun }
type MutableConfigDryRun ¶
type MutableConfigDryRun interface { ConfigDryRunReader ConfigDryRunWriter }
type MutableSetLike ¶
type MutableSetPtrLike ¶
type MutableSetPtrLike[T any, TPtr Ptr[T]] interface { SetPtrLike[T, TPtr] MutableSetLike[T] AddPtr(TPtr) error DelPtr(TPtr) error }
type MutableStoredConfig ¶
type MutableStoredConfig interface { ConfigGetFilters }
type MutableTridex ¶
type MutableTridexLike ¶
type MutableTridexLike interface { TridexLike Add(string) Remove(string) }
type MutableValueSet ¶
type MutableValueSet[T flag.Value, TPtr ValuePtr[T]] interface { MutableSetLike[T] }
type ObjectIOFactory ¶
type ObjectIOFactory interface { ObjectReaderFactory ObjectWriterFactory }
func MakeBespokeObjectReadWriterFactory ¶
func MakeBespokeObjectReadWriterFactory( r ObjectReaderFactory, w ObjectWriterFactory, ) ObjectIOFactory
type ObjectId ¶
type ObjectId interface { GenreGetter Stringer }
type ObjectIdWithRepoId ¶
type ObjectIdWithRepoId interface { GenreGetter RepoIdGetter Stringer }
type ObjectReaderFactory ¶
type ObjectReaderFactory interface {
ObjectReader(ShaGetter) (ShaReadCloser, error)
}
func MakeBespokeObjectReadFactory ¶
func MakeBespokeObjectReadFactory( r FuncObjectReader, ) ObjectReaderFactory
type ObjectWriterFactory ¶
type ObjectWriterFactory interface {
ObjectWriter() (ShaWriteCloser, error)
}
func MakeBespokeObjectWriteFactory ¶
func MakeBespokeObjectWriteFactory( r FuncObjectWriter, ) ObjectWriterFactory
type Pool ¶
type Pool[T Poolable[T], TPtr PoolablePtr[T]] interface { PoolValue[TPtr] PutMany(...TPtr) error }
type Pool2 ¶
type Pool2[T Poolable[T], TPtr PoolablePtr[T]] interface { PoolValue2[TPtr] PutMany(...TPtr) error }
type PoolValue2 ¶
type PoolablePtr ¶
type RepoId ¶
type RepoId interface { Stringer EqualsRepoId(RepoIdGetter) bool GetRepoIdString() string }
type RepoIdGetter ¶
type RepoIdGetter interface {
GetRepoId() RepoId
}
type ResetterWithError ¶
type ResetterWithError interface {
Reset() error
}
type SetLike ¶
type SetLike[T any] interface { CollectionOld[T] ContainsKeyer Key(T) string Get(string) (T, bool) Contains(T) bool EachKey(FuncIterKey) error AllKeys() iter.Seq[string] 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 Sha ¶
type Sha interface { // TODO-P3 // GetHashBytes() []byte // ValueLike StringerWithHeadAndTail GetShaString() string GetShaBytes() []byte EqualsSha(Sha) 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 ¶
TODO reconsider this and force consumption of bufio? Formats expect WriterAndStringWriter, but this forces just Writer
type ShaWriteCloser ¶
type ShaWriteCloser interface { io.ReaderFrom io.WriteCloser // io.WriterAt GetShaLike() Sha }
TODO reconsider this and force consumption of bufio? Formats expect WriterAndStringWriter, but this forces just Writer
type Sigil ¶
type Sigil interface { IncludesHistory IncludesLatest IncludesExternal IncludesHidden }
Used primarily for limiting / restricting queries.
type SigilGetter ¶
type SigilGetter interface {
GetSigil() Sigil
}
type StoreVersion ¶
type StoreVersion interface { Stringer Lessor[StoreVersion] GetInt() int }
type StringAdder ¶
type StringFormatReadWriter ¶
type StringFormatReadWriter[T any] interface { StringFormatReader[T] StringFormatWriter[T] }
type StringFormatReader ¶
type StringFormatWriter ¶
type StringFormatWriter[T any] interface { WriteStringFormat(WriterAndStringWriter, T) (int64, error) }
type StringKeyer ¶
type StringKeyerPtr ¶
type StringKeyerPtr[T any, TPtr Ptr[T]] interface { StringKeyer[T] GetKeyPtr(TPtr) string }
type StringLenner ¶
type StringerPtr ¶
type StringerSetter ¶
type StringerWithHeadAndTail ¶
type Tridex ¶
type Tridex interface { TridexLike }
type TridexLike ¶
type ValuePtrLike ¶
type WriterAndStringWriter ¶
type WriterAndStringWriter interface { io.Writer io.StringWriter }