httpendpoint

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package httpendpoint is an OAuth 2 server for operating a home's fan coil units using Google Asistant.

See https://developers.google.com/assistant/smarthome/overview and specifically https://developers.google.com/assistant/smarthome/develop/implement-oauth.

Package httpendpoint is an OAuth 2 server for operating a home's fan coil units using Google Asistant.

See https://developers.google.com/assistant/smarthome/overview and specifically https://developers.google.com/assistant/smarthome/develop/implement-oauth.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountLinkingServer

type AccountLinkingServer struct {
	// contains filtered or unexported fields
}

AccountLinkingServer provides an HTTP server that performs account linking.

See https://developers.google.com/assistant/smarthome/develop/implement-oauth.

func NewAccountLinkingServer

func NewAccountLinkingServer(ctx context.Context, cloudParams *cloudconfig.Params) (*AccountLinkingServer, error)

NewAccountLinkingServer creates a use *AccountLinkingServer that uses the provided context to communicate with GCP APIs like the secret manager.

func (*AccountLinkingServer) RegisterHandlers

func (s *AccountLinkingServer) RegisterHandlers(mux *http.ServeMux)

RegisterHandlers registers the handlers for account linking described here https://developers.google.com/assistant/smarthome/develop/implement-oauth and configured at https://console.actions.google.com/u/0/project/hydronics-9f50d/actions/smarthome/.

type Server

type Server struct {
}

func NewServer

func NewServer(ctx context.Context, mux *http.ServeMux, cloudParams *cloudconfig.Params, stateService cpb.StateServiceClient) (*Server, error)

Jump to

Keyboard shortcuts

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