package types

import (
	
	

	
	am 
)

var ss = states.DaemonStates

// ///// ///// /////

// ///// ARGS

// ///// ///// /////
// TODO add RPC args example from pkg/node

const 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 OpFoo1

func (OpBar2) () string {
	return ss.OpBar2
}

// ----- RPC boilerplate

func init() {
	for ,  := range ArgsRpc {
		gob.Register()
	}
}

// ArgsRpc will be available in the REPL.
var ArgsRpc = []am.ArgsApi{OpFoo1{}, OpBar2{}}