Documentation
¶
Index ¶
Constants ¶
View Source
const EchoCommand = "/debug/echo"
Variables ¶
View Source
var Echo = capabilities.MustNew[*EchoArguments]( EchoCommand, capability.WithPolicyBuilder(policy.NotEqual(".message", "")), )
Functions ¶
This section is empty.
Types ¶
type EchoArguments ¶
type EchoArguments struct {
Message string `cborgen:"message" dagjsongen:"message"`
}
func (*EchoArguments) MarshalCBOR ¶
func (t *EchoArguments) MarshalCBOR(w io.Writer) error
func (*EchoArguments) MarshalDagJSON ¶
func (t *EchoArguments) MarshalDagJSON(w io.Writer) error
func (*EchoArguments) UnmarshalCBOR ¶
func (t *EchoArguments) UnmarshalCBOR(r io.Reader) (err error)
func (*EchoArguments) UnmarshalDagJSON ¶
func (t *EchoArguments) UnmarshalDagJSON(r io.Reader) (err error)
type EchoOK ¶
type EchoOK = EchoArguments
Click to show internal directories.
Click to hide internal directories.