database

package
v0.0.0-...-a924312 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectionNew

func ConnectionNew(ID string) bool

func CreateNewClientEvent

func CreateNewClientEvent(recipient string, eventType string, extra string) bool

func CreateTables

func CreateTables() bool

func DeleteClientEvent

func DeleteClientEvent(ID string, event_type string, extra string) bool

func DeleteConnection

func DeleteConnection(ID string) bool

func GetConnectionData

func GetConnectionData(ID string) string

func GetConnectionTime

func GetConnectionTime(ID string) string

func UpdateConnection

func UpdateConnection(ID string) bool

Types

type ConnectionData

type ConnectionData struct {
	ID                string
	LastHeartbeatTime string
	ConnectionTime    string
}

func GetConnections

func GetConnections() []ConnectionData

type EventData

type EventData struct {
	Recipient string
	EventType string
	Extra     string
}

func GetClientEvent

func GetClientEvent(ID string) EventData

Jump to

Keyboard shortcuts

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