gateway

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: BSD-3-Clause-Clear Imports: 26 Imported by: 0

Documentation

Overview

Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. SPDX-License-Identifier: BSD-3-Clause-Clear

Index

Constants

This section is empty.

Variables

View Source
var (
	CtxGetLog  = context.CtxGetLog
	CtxWithLog = context.CtxWithLog
)
View Source
var (
	EchoError     = server.EchoError
	ReadBody      = server.ReadBody
	ReadJsonBody  = server.ReadJsonBody
	ParseJsonBody = server.ParseJsonBody
)

Functions

func CtxGetDevice

func CtxGetDevice(ctx context.Context) *storage.Device

func NewServer

func NewServer(ctx context.Context, db *storage.DbHandle, fs *storage.FsHandle, bindAddr string) (server.Server, error)

func RegisterHandlers

func RegisterHandlers(e *echo.Echo, storage *storage.Storage, url string)

Types

type AppsStates

type AppsStates = storage.AppsStates

type ConfigFile

type ConfigFile = storage.ConfigFile

type Context

type Context = context.Context

func CtxWithDevice

func CtxWithDevice(ctx Context, device *storage.Device) Context

type Device

type Device = storage.Device

type NetworkInfo

type NetworkInfo struct {
	Hostname  string `json:"hostname,omitempty"`
	Mac       string `json:"mac,omitempty"`
	LocalIpv4 string `json:"local_ipv4,omitempty"`
}

type UpdateEvent

type UpdateEvent = storage.DeviceUpdateEvent

Jump to

Keyboard shortcuts

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