Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶ added in v0.6.0
func Parse(p string, cp *CliPayload) error
func RunWithOptions ¶
Types ¶
type CliPayload ¶ added in v0.6.0
func (*CliPayload) Bind ¶ added in v0.6.0
func (c *CliPayload) Bind(k string, value interface{}, msg *client.Message) error
func (*CliPayload) Pair ¶ added in v0.6.0
func (c *CliPayload) Pair(key string, value interface{}) error
Not implementating this side of interface, not used -- the interface itself may not be necessary
func (*CliPayload) SetBatch ¶ added in v0.6.0
func (c *CliPayload) SetBatch(msg *client.Message)
type Options ¶
type Options struct { Host string `short:"h" long:"host" description:"endpoint host"` Port int `short:"p" long:"port" description:"endpoint port"` Debug bool `long:"debug"` Model string `short:"m" long:"model" description:"model"` Storable string `short:"s" long:"storable"` PayloadStr string `short:"a" long:"payload"` Format string `short:"f" long:"format" choice:"mly" choice:"json"` }
func (*Options) Payload ¶ added in v0.6.0
func (o *Options) Payload() (*CliPayload, error)
Click to show internal directories.
Click to hide internal directories.