Documentation
¶
Index ¶
- type Hub
- func (h *Hub) ActiveBuffer() *eventBuffer
- func (h *Hub) ActiveResponseID() string
- func (h *Hub) BeginTurn(responseID, conversation string, cancel func()) *eventBuffer
- func (h *Hub) CancelActive() bool
- func (h *Hub) EndTurn()
- func (h *Hub) FinishTurn(status, outputText string)
- func (h *Hub) GetStored(id string) (*persistedResponse, bool)
- func (h *Hub) LiveConversation() string
- func (h *Hub) Publish(ev streamEvent)
- func (h *Hub) SetLiveConversation(id string)
- func (h *Hub) Subscribe() (chan streamEvent, func())
- func (h *Hub) TurnActive() bool
- func (h *Hub) WaitTurnDone(responseID string) <-chan struct{}
- type Options
- type Server
- type TokenRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
func (*Hub) ActiveBuffer ¶
func (h *Hub) ActiveBuffer() *eventBuffer
func (*Hub) ActiveResponseID ¶
func (*Hub) CancelActive ¶
func (*Hub) FinishTurn ¶
func (*Hub) LiveConversation ¶
func (*Hub) SetLiveConversation ¶
func (*Hub) TurnActive ¶
func (*Hub) WaitTurnDone ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) BootstrapToken ¶
func (*Server) Fingerprint ¶
func (*Server) ListenAndServe ¶
Click to show internal directories.
Click to hide internal directories.