Documentation ¶
Index ¶
- type Action
- type AgentContent
- type Data
- type KV
- func (j KV) Float64(key string) (float64, bool)
- func (j KV) Float64Value() (float64, bool)
- func (j KV) Int64(key string) (int64, bool)
- func (j KV) Int64Value() (int64, bool)
- func (j KV) Map(key string) (map[string]any, bool)
- func (j *KV) Scan(value any) error
- func (j KV) String(key string) (string, bool)
- func (j KV) StringValue() (string, bool)
- func (j KV) Uint64(key string) (uint64, bool)
- func (j KV) Uint64Value() (uint64, bool)
- type Response
- type ResponseStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentContent ¶
type KV ¶
func (KV) Float64Value ¶
func (KV) Int64Value ¶
func (KV) StringValue ¶
func (KV) Uint64Value ¶
type Response ¶
type Response struct { // Execution status (success or failure), must be one of ok and failed, // indicating successful and unsuccessful execution, respectively. Status ResponseStatus `json:"status"` // The return code, which must conform to the return code rules defined later on this page RetCode int64 `json:"retcode,omitempty"` // Response data Data any `json:"data,omitempty"` // Error message, it is recommended to fill in a human-readable error message when the action fails to execute, // or an empty string when it succeeds. Message string `json:"message,omitempty"` }
type ResponseStatus ¶
type ResponseStatus string
const ( Success ResponseStatus = "ok" Failed ResponseStatus = "failed" SuccessCode = int64(0) )
Click to show internal directories.
Click to hide internal directories.