server

package
v0.0.0-...-a7f31ed Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 51 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StreamHeader = "X-Stream"
	StreamValue  = "true"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceCert

type DeviceCert struct {
	Cert    []byte
	Onboard []byte
	Serial  string
}

DeviceCert encoding for sending a device information, including device cert, onboard cert, and serial, if any

type OnboardCert

type OnboardCert struct {
	// a Cert for onboarding
	//
	// unique: true
	// in: query
	Cert []byte
	// a Serial for onboarding
	//
	// unique: true
	// in: query
	Serial string
}

OnboardCert encoding for sending an onboard cert and serials via json swagger:parameters onboard

type Server

type Server struct {
	Port            string
	Address         string
	CertPath        string
	KeyPath         string
	SigningCertPath string
	SigningKeyPath  string
	EncryptCertPath string
	EncryptKeyPath  string
	DeviceManager   driver.DeviceManager
	CertRefresh     int
	// WebDir path to webfiles to serve. If empty, use embedded
	WebDir string
}

Server an adam server

func (*Server) Start

func (s *Server) Start()

Start start the server

Jump to

Keyboard shortcuts

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