package
module
Version:
v2.0.0-alpha.3
Opens a new window with list of versions in this module.
Published: Apr 18, 2024
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Reply(code int) *reply
func WithGlobalActions(as ...Action)
type ApiSpec struct {
Endpoint string `json:"endpoint"`
Method string `json:"method"`
Help string `json:"help,omitempty"`
Params []ParamSpec `json:"params,omitempty"`
Output []ReplySpec `json:"output,omitempty"`
}
type ParamSpec struct {
Name string `json:"name"`
Type string `json:"type"`
Required bool `json:"required"`
Default string `json:"default"`
Rules []string `json:"rules,omitempty"`
Help string `json:"help,omitempty"`
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.