connectionlog

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceLog

type DeviceLog struct {
	Id        string    `json:"id"`
	Connected bool      `json:"connected"`
	Time      time.Time `json:"time"`
}

type HubLog

type HubLog struct {
	Id        string    `json:"id"`
	Connected bool      `json:"connected"`
	Time      time.Time `json:"time"`
}

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, wg *sync.WaitGroup, config configuration.Config, metrics *prometheus.Metrics) (logger *Logger, err error)

func (*Logger) LogDeviceConnect

func (this *Logger) LogDeviceConnect(id string) error

func (*Logger) LogDeviceDisconnect

func (this *Logger) LogDeviceDisconnect(id string) error

func (*Logger) LogHubConnect

func (this *Logger) LogHubConnect(id string) error

func (*Logger) LogHubDisconnect

func (this *Logger) LogHubDisconnect(id string) error

Jump to

Keyboard shortcuts

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