Documentation ¶
Index ¶
Constants ¶
View Source
const TypeMsg string = "msg"
TypeMsg is a constant for incoming messages
Variables ¶
This section is empty.
Functions ¶
func ReadInput ¶ added in v0.4.0
func ReadInput(sessionAssets flows.SessionAssets, data json.RawMessage, missing assets.MissingCallback) (flows.Input, error)
ReadInput reads an input from the given typed envelope
func RegisterType ¶ added in v0.11.0
func RegisterType(name string, f readFunc)
RegisterType registers a new type of input
Types ¶
type MsgInput ¶ added in v0.4.0
type MsgInput struct {
// contains filtered or unexported fields
}
MsgInput is a message which can be used as input
func NewMsgInput ¶ added in v0.4.0
func NewMsgInput(assets flows.SessionAssets, msg *flows.MsgIn, createdOn time.Time) (*MsgInput, error)
NewMsgInput creates a new user input based on a message
func (*MsgInput) MarshalJSON ¶ added in v0.4.0
MarshalJSON marshals this msg input into JSON
func (*MsgInput) ToXValue ¶ added in v0.32.0
func (i *MsgInput) ToXValue(env utils.Environment) types.XValue
ToXValue returns a representation of this object for use in expressions
Click to show internal directories.
Click to hide internal directories.