Documentation ¶
Index ¶
- Constants
- Variables
- func GetPool() schnittstellen.Pool[Sha, *Sha]
- func MakeErrIsNull(s *Sha) error
- func MakeHashWriter() (h hash.Hash)
- func MakeReadCloser(r io.Reader) (src readCloser)
- func MakeReadCloserTee(r io.Reader, w io.Writer) (src readCloser)
- func MakeWriter(in io.Writer) (out *writer)
- func NopAkteFactory() schnittstellen.AkteIOFactory
- func PageIndexForSha(width uint8, s schnittstellen.ShaLike) (n uint8, err error)
- func PageIndexForString(width uint8, s string) (n uint8, err error)
- type Bytes
- type PageId
- type PathComponents
- type ReadCloser
- type Sha
- func FromFormatString(f string, vs ...interface{}) *Sha
- func FromHash(h hash.Hash) (s *Sha)
- func FromString(s string) *Sha
- func FromStringer(v schnittstellen.Stringer) *Sha
- func Make(s schnittstellen.ShaLike) *Sha
- func MakeSha(v string) (s *Sha, err error)
- func MakeShaFromPath(p string) (s *Sha, err error)
- func Must(v string) (s *Sha)
- func (a *Sha) Equals(b *Sha) bool
- func (a *Sha) EqualsAny(b any) bool
- func (a *Sha) EqualsSha(b schnittstellen.ShaLike) bool
- func (s *Sha) GetBytes() Bytes
- func (s *Sha) GetShaBytes() []byte
- func (s *Sha) GetShaLike() schnittstellen.ShaLike
- func (s *Sha) GetShaString() string
- func (s *Sha) IsNull() bool
- func (s *Sha) Kopf() string
- func (s *Sha) MarshalBinary() (text []byte, err error)
- func (s *Sha) MarshalText() (text []byte, err error)
- func (s *Sha) Path(pc ...string) string
- func (s *Sha) ReadAtFrom(r io.ReaderAt, start int64) (n int64, err error)
- func (s *Sha) ReadFrom(r io.Reader) (n int64, err error)
- func (s *Sha) Reset()
- func (a *Sha) ResetWith(b *Sha)
- func (a *Sha) ResetWithShaLike(b schnittstellen.ShaLike)
- func (s *Sha) Schwanz() string
- func (s *Sha) Set(v string) (err error)
- func (dst *Sha) SetFromHash(h hash.Hash) (err error)
- func (s *Sha) SetHexBytes(b []byte) (err error)
- func (s *Sha) SetParts(a, b string) (err error)
- func (dst *Sha) SetShaLike(src ShaLike) (err error)
- func (s *Sha) Sha() *Sha
- func (s *Sha) Size() int
- func (s *Sha) String() string
- func (s *Sha) UnmarshalBinary(text []byte) (err error)
- func (s *Sha) UnmarshalText(text []byte) (err error)
- func (src *Sha) WriteTo(w io.Writer) (n int64, err error)
- type ShaLike
- type WriteCloser
Constants ¶
View Source
const ( ByteSize = 32 ShaNullString = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" Null = ShaNullString )
Variables ¶
View Source
var Equaler equaler
View Source
var Lessor lessor
View Source
var Resetter resetter
Functions ¶
func GetPool ¶
func GetPool() schnittstellen.Pool[Sha, *Sha]
func NopAkteFactory ¶
func NopAkteFactory() schnittstellen.AkteIOFactory
Types ¶
type PageId ¶
type ReadCloser ¶
type ReadCloser = schnittstellen.ShaReadCloser
TODO-P4 remove
func MakeNopReadCloser ¶
func MakeNopReadCloser(rc io.ReadCloser) ReadCloser
type Sha ¶
type Sha struct {
// contains filtered or unexported fields
}
func FromStringer ¶
func FromStringer(v schnittstellen.Stringer) *Sha
func Make ¶
func Make(s schnittstellen.ShaLike) *Sha
func (*Sha) EqualsSha ¶
func (a *Sha) EqualsSha(b schnittstellen.ShaLike) bool
func (*Sha) GetShaLike ¶
func (s *Sha) GetShaLike() schnittstellen.ShaLike
func (*Sha) ResetWithShaLike ¶
func (a *Sha) ResetWithShaLike(b schnittstellen.ShaLike)
type ShaLike ¶
type ShaLike = schnittstellen.ShaGetter
Click to show internal directories.
Click to hide internal directories.