Documentation
¶
Index ¶
- Constants
- type ActiveSession
- type ConnectedDevice
- type Device
- type DeviceAuth
- type DeviceAuthClaims
- type DeviceAuthRequest
- type DeviceAuthResponse
- type Endpoints
- type MqttACLQuery
- type MqttAuthQuery
- type MqttClientEvent
- type MqttEvent
- type Session
- type Stats
- type UID
- type User
- type UserAuthClaims
- type UserAuthRequest
- type UserAuthResponse
Constants ¶
View Source
const ( MqttClientConnectedEventType = "client_connected" MqttClientDisconnectedEventType = "client_disconnected" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveSession ¶
type ConnectedDevice ¶
type Device ¶
type Device struct {
UID string `json:"uid"`
Name string `json:"name" bson:"name,omitempty"`
Identity map[string]string `json:"identity"`
Attributes map[string]string `json:"attributes"`
PublicKey string `json:"public_key" bson:"public_key"`
TenantID string `json:"tenant_id" bson:"tenant_id"`
LastSeen time.Time `json:"last_seen"`
Online bool `json:"online"`
Namespace string `json:"namespace"`
}
type DeviceAuth ¶
type DeviceAuthClaims ¶
type DeviceAuthClaims struct {
UID string `json:"uid"`
jwt.StandardClaims
}
type DeviceAuthRequest ¶
type DeviceAuthRequest struct {
Attributes map[string]string `json:"attributes"`
Sessions []string `json:"sessions,omitempty"`
*DeviceAuth
}
type DeviceAuthResponse ¶
type MqttACLQuery ¶
type MqttAuthQuery ¶
type MqttClientEvent ¶
type MqttEvent ¶
type MqttEvent struct {
Action string `json:"action"`
MqttClientEvent
}
type Session ¶
type Session struct {
UID string `json:"uid"`
Device UID `json:"device"`
TenantID string `json:"tenant_id" bson:"tenant_id"`
Username string `json:"username"`
IPAddress string `json:"ip_address" bson:"ip_address"`
StartedAt time.Time `json:"started_at" bson:"started_at"`
LastSeen time.Time `json:"last_seen" bson:"last_seen"`
Active bool `json:"active"`
}
type UserAuthClaims ¶
type UserAuthClaims struct {
Name string `json:"name"`
Admin bool `json:"admin"`
Tenant string `json:"tenant"`
jwt.StandardClaims
}
type UserAuthRequest ¶
type UserAuthResponse ¶
Click to show internal directories.
Click to hide internal directories.