handler

package
v0.0.0-...-b38a9fd Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthData

type AuthData struct {
	AccessToken  string `json:"access_token"`
	TokenType    string `json:"token_type"`
	ExpiresIn    int64  `json:"expires_in"`
	RefreshToken string `json:"refresh_token"`
	Scope        string `json:"scope"`
}

AuthData is used to store all the tokens and expire information

type FimpTibberHandler

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

FimpTibberHandler structure

func NewFimpTibberHandler

func NewFimpTibberHandler(transport *fimpgo.MqttTransport, appLifecycle *edgeapp.Lifecycle, tibber *TibberHandler, configs *model.Configs) *FimpTibberHandler

NewFimpTibberHandler construct new handler

func (*FimpTibberHandler) Start

func (t *FimpTibberHandler) Start() error

Start handler

type TibberHandler

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

TibberHandler structure

func NewTibberHandler

func NewTibberHandler(transport *fimpgo.MqttTransport, appLifecycle *edgeapp.Lifecycle) *TibberHandler

NewTibberHandler construct new handler

func (*TibberHandler) Start

func (th *TibberHandler) Start(token string, homeID string) error

Start tibber handler service and listen to ws events

func (*TibberHandler) StartStreamStateEventListener

func (th *TibberHandler) StartStreamStateEventListener()

StartStreamStateEventListener start event listener

Jump to

Keyboard shortcuts

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