Documentation ¶
Index ¶
- func Body(r Message, err error) interface{}
- func BodyAsBool(r Message, err error) bool
- func BodyAsFloat64(r Message, err error) float64
- func BodyAsInt64(r Message, err error) int64
- func BodyAsString(r Message, err error) string
- func GenerateTests(src string, dest string)
- type App
- type Caller
- type Log
- type Logger
- type Message
- type MockNode
- type Node
- type ReplyMessage
- type StartOptions
- type TestResource
- type Tester
- type Tuple
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BodyAsBool ¶
func BodyAsFloat64 ¶
func BodyAsInt64 ¶
func BodyAsString ¶
func GenerateTests ¶
Types ¶
type App ¶
type App struct { Conn *nats.EncodedConn Config map[string]interface{} Resources map[string]interface{} NodeMap map[string]Node Logger Logger OnError func(address string, msg Message, err error) // contains filtered or unexported fields }
func (*App) RegisterModule ¶
func (*App) Start ¶
func (a *App) Start(opt StartOptions)
type MockNode ¶
type ReplyMessage ¶
type StartOptions ¶
type TestResource ¶
type TestResource struct { }
Click to show internal directories.
Click to hide internal directories.