Source File
args.go
Belonging Package
/examples/cli_daemon/types
package typesimport (am)var ss = states.DaemonStates// ///// ///// /////// ///// ARGS// ///// ///// /////// TODO add RPC args example from pkg/nodeconst APrefix = "daemon"type Args struct {am.ArgsBase `json:"-"`}func (Args) () string {return APrefix}// -----type OpFoo1 struct {Args `json:"-"`Duration time.Duration `log:"duration"`}func (OpFoo1) () string {return ss.OpFoo1}// -----type OpBar2 OpFoo1func (OpBar2) () string {return ss.OpBar2}// ----- RPC boilerplatefunc init() {for , := range ArgsRpc {gob.Register()}}// ArgsRpc will be available in the REPL.var ArgsRpc = []am.ArgsApi{OpFoo1{}, OpBar2{}}
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |