Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InlineCache ¶
type InlineCache struct { Producer InlineProducer Validator InlineValidator // contains filtered or unexported fields }
func (*InlineCache) Invalidate ¶
func (c *InlineCache) Invalidate()
func (*InlineCache) Value ¶
func (c *InlineCache) Value(args ...interface{}) interface{}
func (*InlineCache) ValueWithError ¶
func (c *InlineCache) ValueWithError(args ...interface{}) (cached interface{}, err error)
type InlineProducer ¶
type InlineProducer func(interface{}, ...interface{}) (interface{}, error)
func InlineProducer0 ¶
func InlineProducer0(f func() interface{}) InlineProducer
func InlineProducer0E ¶
func InlineProducer0E(f func() (interface{}, error)) InlineProducer
type InlineValidator ¶
type InlineValidator func(interface{}) bool
Click to show internal directories.
Click to hide internal directories.