lazy

package
v0.0.0-...-3a06bfb Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Data

func Data(p []byte) *data

func DataFunc

func DataFunc(data func() []byte) *dataFunc

func DataFunc2

func DataFunc2(data func() ([]byte, error)) *dataFunc2

func DataFunc2SHA

func DataFunc2SHA(data func() ([]byte, error), sha ref.Sha256) *dataFunc2SHA

func DataFunc2SHAFunc

func DataFunc2SHAFunc(data func() ([]byte, error), sha func() ref.Sha256) *dataFunc2SHAFunc

func DataFuncSHA

func DataFuncSHA(data func() []byte, sha ref.Sha256) *dataFuncSHA

func DataFuncSHAFunc

func DataFuncSHAFunc(data func() []byte, sha func() ref.Sha256) *dataFuncSHAFunc

func DataSHA

func DataSHA(p []byte, sha ref.Sha256) *dataSHA

func DataSHAFunc

func DataSHAFunc(p []byte, sha func() ref.Sha256) *dataSHAFunc

Types

type ConstData

type ConstData []byte

func (ConstData) GetData

func (d ConstData) GetData() ([]byte, error)

func (ConstData) MustData

func (d ConstData) MustData() []byte

type ConstSHA

type ConstSHA ref.Sha256

func (ConstSHA) GetSHA

func (s ConstSHA) GetSHA() (ref.Sha256, error)

func (ConstSHA) MustSHA

func (s ConstSHA) MustSHA() ref.Sha256

type MustDataSHAObject

type MustDataSHAObject interface {
	Object
	MustData() []byte
	MustSHAObject
}

type MustSHAObject

type MustSHAObject interface {
	Object
	MustSHA() ref.Sha256
}

type Object

type Object interface {
	GetData() ([]byte, error)
	GetSHA() (ref.Sha256, error)
}

type SHAF

type SHAF struct {
	Fn func() ref.Sha256
	// contains filtered or unexported fields
}

func (*SHAF) GetSHA

func (s *SHAF) GetSHA() (ref.Sha256, error)

func (*SHAF) MustSHA

func (s *SHAF) MustSHA() ref.Sha256

Jump to

Keyboard shortcuts

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