service

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KafkaTopicDeviceLog = "device-log"
)
View Source
const (
	KafkaTopicDeviceReport = "device-report"
)
View Source
const (
	KafkaTopicEmail = "email"
)
View Source
const (
	KafkaTopicMessage = "message"
)

Variables

This section is empty.

Functions

func KafkaTopicDeviceLogUnmarshal

func KafkaTopicDeviceLogUnmarshal(data []byte) (*log.DeviceLogData, error)

func KafkaTopicDeviceLogUnmarshalTo

func KafkaTopicDeviceLogUnmarshalTo(data []byte, v *log.DeviceLogData) error

func KafkaTopicDeviceReportSend added in v0.3.0

func KafkaTopicDeviceReportSend(kc sarama.AsyncProducer, deviceID uint64, data *collection.CreateCollectionRecordReq) error

func KafkaTopicDeviceReportUnmarshal

func KafkaTopicDeviceReportUnmarshal(data []byte) (*collection.CreateCollectionRecordReq, error)

func KafkaTopicDeviceReportUnmarshalTo

func KafkaTopicDeviceReportUnmarshalTo(data []byte, v *collection.CreateCollectionRecordReq) error

func KafkaTopicEmailSend added in v0.3.0

func KafkaTopicEmailSend(kc sarama.AsyncProducer, data *email.SendEmailReq) error

func KafkaTopicEmailUnmarshal added in v0.3.0

func KafkaTopicEmailUnmarshal(data []byte) (*email.SendEmailReq, error)

func KafkaTopicEmailUnmarshalTo added in v0.3.0

func KafkaTopicEmailUnmarshalTo(data []byte, v *email.SendEmailReq) error

func KafkaTopicMessageSend added in v0.3.3

func KafkaTopicMessageSend(kc sarama.AsyncProducer, data *message.SendMessageReq) error

func KafkaTopicMessageUnmarshal added in v0.3.3

func KafkaTopicMessageUnmarshal(data []byte) (*message.SendMessageReq, error)

func KafkaTopicMessageUnmarshalTo added in v0.3.3

func KafkaTopicMessageUnmarshalTo(data []byte, v *message.SendMessageReq) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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