Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewLogService, NewDeviceLogConsumer, )
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type DeviceLogConsumer ¶
type DeviceLogConsumer struct {
// contains filtered or unexported fields
}
func NewDeviceLogConsumer ¶
func NewDeviceLogConsumer(dbs *LogService) *DeviceLogConsumer
func (*DeviceLogConsumer) Cleanup ¶
func (s *DeviceLogConsumer) Cleanup(sarama.ConsumerGroupSession) error
func (*DeviceLogConsumer) ConsumeClaim ¶
func (s *DeviceLogConsumer) ConsumeClaim(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
func (*DeviceLogConsumer) Setup ¶
func (s *DeviceLogConsumer) Setup(sarama.ConsumerGroupSession) error
type LogService ¶
type LogService struct { logApi.UnimplementedLogServer // contains filtered or unexported fields }
func NewLogService ¶
func NewLogService(dc *conf.DatabaseServerConfig, lc *conf.LogConfig) *LogService
func (*LogService) CreateDeviceLog ¶ added in v0.2.2
func (*LogService) ListDeviceLog ¶ added in v0.2.2
func (ls *LogService) ListDeviceLog(ctx context.Context, req *logApi.ListDeviceLogReq) (*logApi.ListDeviceLogResp, error)
Click to show internal directories.
Click to hide internal directories.