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/.