api

package
v0.0.0-...-7c66ffc Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package api contains the external API for Horde

Index

Constants

View Source
const AuthKey = contextKey("auth")

AuthKey is the context key for the authentication method in the context

View Source
const UserKey = contextKey("user")

UserKey is the context key for the user object in the context

Variables

This section is empty.

Functions

func NewHordeAPIService

func NewHordeAPIService(store storage.DataStore,
	fieldMask model.FieldMaskParameters,
	outputManager output.Manager,
	dataStoreClient datastore.DataStoreClient,
	messageSender DownstreamMessageSender, firmwareImageStore storage.FirmwareImageStore) apipb.HordeServer

NewHordeAPIService creates a new HordeAPIServer

Types

type DownstreamMessageSender

type DownstreamMessageSender interface {
	Send(model.Device, model.DownstreamMessage) error
}

DownstreamMessageSender is a type capable of sending messages downstream.

Directories

Path Synopsis
Package apipb is a reverse proxy.
Package apipb is a reverse proxy.
Package apitoolbox contains utility methods for the API services
Package apitoolbox contains utility methods for the API services

Jump to

Keyboard shortcuts

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