{"modulePath":"github.com/bep/execrpc","version":"v0.10.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package model\n\n## Types\n\n```go\ntype Error struct {\n\tMsg string `json:\"msg\"`\n}\n```\nError holds an error message.\n\n```go\nfunc (r Error) Error() string\n```\n\n```go\ntype ExampleConfig struct {\n\t// Used in tests.\n\tCallShouldFail   bool `json:\"callShouldFail\"`\n\tSendLogMessage   bool `json:\"sendLogMessage\"`\n\tNoClose          bool `json:\"noClose\"`\n\tNoReadingReceipt bool `json:\"noReadingReceipt\"`\n\tDropMessages     bool `json:\"dropMessages\"`\n\tNumMessages      int  `json:\"numMessages\"`\n}\n```\n\n```go\nfunc (cfg *ExampleConfig) Init() error\n```\n\n```go\ntype ExampleMessage struct {\n\tHello string `json:\"hello\"`\n}\n```\nExampleMessage is just a simple example message.\n\n```go\ntype ExampleReceipt struct {\n\texecrpc.Identity\n\tError *Error `json:\"err\"`\n\tText  string `json:\"text\"`\n}\n```\nExampleReceipt is just a simple receipt.\n\n```go\nfunc (r ExampleReceipt) Err() error\n```\nErr is just a simple example error.\n\n```go\ntype ExampleRequest struct {\n\tText string `json:\"text\"`\n}\n```\nExampleRequest is just a simple example request.\n\n","path":"github.com/bep/execrpc/examples/model","name":"model","synopsis":"","isRedistributable":true}
