response

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClosed = errors.New("thread: block already closed")
View Source
var ErrEnded = errors.New("thread: turn already ended")
View Source
var ErrMismatch = errors.New("thread: event does not belong")
View Source
var ErrNoContent = errors.New("thread: turn ended with no content")
View Source
var ErrNotEnded = errors.New("thread: turn has not ended")
View Source
var ErrNotStarted = errors.New("thread: turn has not started")
View Source
var ErrStarted = errors.New("thread: turn already started")

Functions

This section is empty.

Types

type Builder

type Builder = *builder

func NewBulder

func NewBulder() Builder

func (Builder) Abort

func (r Builder) Abort() (usage api.EventUsage, content api.Indexed[api.Content])

func (Builder) Flush

func (r Builder) Flush() (response Response)

func (Builder) Spent

func (r Builder) Spent() api.EventUsage

func (Builder) State

func (r Builder) State() api.Indexed[api.Content]

type Response

type Response struct {
	Cause   error
	Usage   api.EventUsage
	Content api.Indexed[api.Content]
	// contains filtered or unexported fields
}

func (Response) Err

func (r Response) Err() (api.ErrCode, bool)

func (Response) Ok

func (r Response) Ok() (api.OkCode, bool)

Jump to

Keyboard shortcuts

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