INNER CODE UNIT · Go

hasKey

moleculer-go/moleculer · broker/broker_internals_test.go:16

func hasKey(m map[string]moleculer.Payload, k string) bool {
	_, foundKey := m[k]
	return foundKey
}

var _ = Describe("Broker Internals", func() {

	Describe("Broker events", func() {
		It("Should trigger Local and remote events", func() {
			logLevel := "ERROR"
			verse := "3 little birds..."
			chorus := "don't worry..."
			mem := &memory.SharedMemory{}
			baseConfig := &moleculer.Config{
				LogLevel: logLevel,
				TransporterFactory: func() interface{} {
					transport := memory.Create(log.WithField("transport", "memory"), mem)
					return &transport

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…