wsclient

package
v0.0.0-...-833c9d0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
}

Factory for creating triggers

func (*Factory) Metadata

func (*Factory) Metadata() *trigger.Metadata

Metadata implements trigger.Factory.Metadata

func (*Factory) New

func (*Factory) New(config *trigger.Config) (trigger.Trigger, error)

New implements trigger.Factory.New

type Output

type Output struct {
	Content interface{} `md:"content"`
}

Output is the outputs for the websocket trigger

func (*Output) FromMap

func (o *Output) FromMap(values map[string]interface{}) error

FromMap converts the values from a map to a struct

func (*Output) ToMap

func (o *Output) ToMap() map[string]interface{}

ToMap converts the output to a map

type Settings

type Settings struct {
	URL     string `md:"url,required"`
	SubPath string `md:"subPath,required"`
	Token   string `md:"token,required"`
}

Settings for the websocket client trigger

type Trigger

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

Trigger trigger struct

func (*Trigger) Initialize

func (t *Trigger) Initialize(ctx trigger.InitContext) error

Initialize initializes the trigger

func (*Trigger) Start

func (t *Trigger) Start() error

Start starts the trigger

func (*Trigger) Stop

func (t *Trigger) Stop() error

Stop stops the trigger

Jump to

Keyboard shortcuts

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