package
Version:
v1.0.0-beta1
Opens a new window with list of versions in this module.
Published: Mar 16, 2025
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Arg struct {
Name string `json:"name"`
Description string `json:"description"`
Type string `json:"type"`
}
type Constructor struct {
Name string `json:"name"`
Description string `json:"description"`
Args []*Arg `json:"args"`
ResultType string `json:"result_type"`
}
type Function struct {
Name string `json:"name"`
Description string `json:"description"`
Args []*Arg `json:"args"`
ResultType string `json:"result_type"`
IsSynchronous bool `json:"is_synchronous"`
Type FunctionType `json:"type"`
}
const (
FUNCTION_TYPE_UNKNOWN FunctionType = iota
FUNCTION_TYPE_COMMON
FUNCTION_TYPE_USER
FUNCTION_TYPE_BOT
)
type Schema struct {
Constructors []*Constructor `json:"constructors"`
Types []*Type `json:"types"`
Functions []*Function `json:"functions"`
}
type Type struct {
Name string `json:"name"`
Description string `json:"description"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.