Documentation ¶
Index ¶
- type Callback
- type Result
- func (r *Result) ErrorCode() int64
- func (r *Result) ErrorDesc() string
- func (r *Result) Key() *key.Key
- func (r *Result) MarshalJSON() ([]byte, error)
- func (r *Result) String() string
- func (r *Result) Succeeded() bool
- func (r *Result) Tag() uint64
- func (r *Result) UnmarshalJSON(data []byte) error
- func (r *Result) Value() any
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Callback ¶
type Callback func(result *Result)
Callback is the prototype for functions that need to handle the result associated with changes to keys.
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
Reesult represents a result from an operation on a key. The zero value is not valid.
func NewFromJSON ¶
NewFromJSON creates a new Result from the given JSON data. Any errors are reported in the Result itself and should be handled by anyone that cares about it.
func (*Result) MarshalJSON ¶
func (*Result) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.