model

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Msg string `json:"msg"`
}

Error holds an error message.

func (Error) Error

func (r Error) Error() string

type ExampleConfig added in v0.9.0

type ExampleConfig struct {
	// Used in tests.
	CallShouldFail   bool `json:"callShouldFail"`
	SendLogMessage   bool `json:"sendLogMessage"`
	NoClose          bool `json:"noClose"`
	NoReadingReceipt bool `json:"noReadingReceipt"`
	DropMessages     bool `json:"dropMessages"`
	NumMessages      int  `json:"numMessages"`
}

func (*ExampleConfig) Init added in v0.9.0

func (cfg *ExampleConfig) Init() error

type ExampleMessage added in v0.8.0

type ExampleMessage struct {
	Hello string `json:"hello"`
}

ExampleMessage is just a simple example message.

type ExampleReceipt added in v0.8.0

type ExampleReceipt struct {
	execrpc.Identity
	Error *Error `json:"err"`
	Text  string `json:"text"`
}

ExampleReceipt is just a simple receipt.

func (ExampleReceipt) Err added in v0.8.0

func (r ExampleReceipt) Err() error

Err is just a simple example error.

type ExampleRequest

type ExampleRequest struct {
	Text string `json:"text"`
}

ExampleRequest is just a simple example request.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL