Documentation
¶
Index ¶
- func LogCanceled(ctx context.Context, action string)
- func NewAfterFrame(ctx context.Context, inst string, group uint64) (context.Context, *shredder.AfterFrame)
- func NewBatch(ctx context.Context, id uint64) (context.Context, *shredder.ValveFrame)
- func NewDetachedContext(ctx, runtime context.Context, fake bool) context.Context
- func NewDocumentContext(ctx context.Context) context.Context
- func NewInfectedContext(source, target context.Context) context.Context
- func NewRenderContext(system, user context.Context, keys WithValueKeys) context.Context
- func NewReplaceContext(ctx context.Context) context.Context
- func SyncFrameInsert(ctx context.Context, sync shredder.ReleaseFrame, init shredder.ReleaseFrame) context.Context
- func UserContext(ctx, parent context.Context) context.Context
- type Frames
- func (f Frames) AfterFrame() (*shredder.AfterFrame, bool)
- func (f Frames) Batch() uint64
- func (f Frames) BatchFrame() (*shredder.ValveFrame, bool)
- func (f Frames) Call() shredder.Frame
- func (f Frames) Detached() bool
- func (f Frames) Group() uint64
- func (f Frames) InitFrame(ctx context.Context) shredder.ReleaseFrame
- func (f Frames) Inst() string
- func (f Frames) Owner() bool
- func (f Frames) Render() shredder.ReleaseFrame
- func (f Frames) Settle() Frames
- type Store
- type WithValueKeys
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogCanceled ¶
func NewAfterFrame ¶ added in v0.18.0
func NewDetachedContext ¶ added in v0.18.0
func NewDocumentContext ¶ added in v0.18.0
func NewInfectedContext ¶ added in v0.18.0
func NewRenderContext ¶ added in v0.18.0
func NewRenderContext(system, user context.Context, keys WithValueKeys) context.Context
func NewReplaceContext ¶ added in v0.18.0
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) AfterFrame ¶ added in v0.18.0
func (f Frames) AfterFrame() (*shredder.AfterFrame, bool)
func (Frames) BatchFrame ¶ added in v0.18.0
func (f Frames) BatchFrame() (*shredder.ValveFrame, bool)
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.
type WithValueKeys ¶ added in v0.18.0
Click to show internal directories.
Click to hide internal directories.