Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for StoreInt32 (0.14 sec)

  1. internal/logger/target/kafka/kafka.go

    	}
    	msg := sarama.ProducerMessage{
    		Topic: h.kconfig.Topic,
    		Value: sarama.ByteEncoder(logJSON),
    	}
    	_, _, err = h.producer.SendMessage(&msg)
    	if err != nil {
    		atomic.StoreInt32(&h.status, statusOffline)
    	} else {
    		atomic.StoreInt32(&h.status, statusOnline)
    	}
    	return err
    }
    
    // Init initialize kafka target
    func (h *Target) init() error {
    	sconfig := sarama.NewConfig()
    	if h.kconfig.Version != "" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 10.1K bytes
    - Viewed (1)
Back to top