Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapObject ¶
type MapObject interface {
GetHash() Hash
GetEncoded() []byte
Encode() error
Decode(Hash, []byte) error
}
func MapExecute ¶
MapExecute() run the mapFunc() to find a new result and stores it in the map and object-store.
func MapExisting ¶
MapExisting() find the right outputs for a given input. Checks the cache to see if it finds any previously stored results.
type MapRequest ¶
type MapRequest struct {
Input MapObject
MapFunc func(MapObject) (MapObject, error)
Validator func(MapObject) (bool, error)
OutputDecode func(hash Hash, content []byte) (MapObject, error)
Store entities.CASStore
InvalidCount int
CacheHit bool
StartTime time.Time
Duration time.Duration
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.