actions

package
v0.0.0-...-6312dd6 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Type        string            `json:"type,omitempty"`
	AtType      string            `json:"@type,omitempty"`
	Title       string            `json:"title,omitempty"`
	Description string            `json:"description,omitempty"`
	Links       []ActionLinksElem `json:"links,omitempty"`
	Forms       []ActionFormsElem `json:"forms,omitempty"`
	Input       ActionInput       `json:"input,omitempty"`
}

func (Action) GetDescription

func (a Action) GetDescription() string

func (Action) GetInput

func (a Action) GetInput() map[string]any

func (Action) GetTitle

func (a Action) GetTitle() string

func (Action) GetType

func (a Action) GetType() string

func (Action) ToMessage

func (a Action) ToMessage() messages.Action

func (*Action) UnmarshalJSON

func (a *Action) UnmarshalJSON(data []byte) error

type ActionDescription

type ActionDescription struct {
	Id            string         `json:"id,omitempty"`
	Name          string         `json:"name,omitempty"`
	Input         map[string]any `json:"input,omitempty"`
	Status        string         `json:"status,omitempty"`
	TimeRequested string         `json:"timeRequested,omitempty"`
	TimeCompleted string         `json:"timeCompleted,omitempty"`
}

func (ActionDescription) GetDescription

func (a ActionDescription) GetDescription() any

func (ActionDescription) GetName

func (a ActionDescription) GetName() string

type ActionFormsElem

type ActionFormsElem struct {
	Op any `json:"op"`
}

type ActionInput

type ActionInput map[string]any

type ActionLinksElem

type ActionLinksElem struct {
}

Jump to

Keyboard shortcuts

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