Documentation
¶
Index ¶
- func AfterFrame(ctx context.Context) (*shredder.AfterFrame, bool)
- func AfterFrameInsert(ctx context.Context) (context.Context, *shredder.AfterFrame)
- func FrameInfect(source context.Context, target context.Context) context.Context
- func IsFreeCtx(ctx context.Context) bool
- func LogCanceled(ctx context.Context, action string)
- func NewFreeContext(ctx context.Context, runtime context.Context) context.Context
- func SyncFrameInsert(ctx context.Context, sync shredder.ReleaseFrame, init shredder.ReleaseFrame) context.Context
- type Frames
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AfterFrame ¶
func AfterFrame(ctx context.Context) (*shredder.AfterFrame, bool)
func AfterFrameInsert ¶ added in v0.8.14
func LogCanceled ¶
func NewFreeContext ¶
func SyncFrameInsert ¶ added in v0.8.14
func SyncFrameInsert(ctx context.Context, sync shredder.ReleaseFrame, init shredder.ReleaseFrame) context.Context
Types ¶
type Frames ¶ added in v0.8.14
type Frames struct {
// contains filtered or unexported fields
}
func (Frames) InitFrame ¶ added in v0.12.1
func (f Frames) InitFrame(ctx context.Context) shredder.ReleaseFrame
func (Frames) Render ¶ added in v0.8.14
func (f Frames) Render() shredder.ReleaseFrame
type Store ¶
type Store = *store
Store is goroutine-safe key-value storage.
func (Store) Init ¶
Init returns the value stored under key, creating it with new if key is absent.
Init is single-flight: concurrent callers for the same key block until new returns. If new panics, the key is left absent.
func (Store) Load ¶
Load returns the value stored under key, or nil if key is absent. It blocks while a concurrent Store.Init for the same key is still running.
func (Store) Remove ¶
Remove deletes the value stored under key and returns it, or nil if key was absent. It blocks while a concurrent Store.Init for the same key is still running.
Click to show internal directories.
Click to hide internal directories.