telegram

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	meta.TypeMeta `json:",inline"`
	meta.JobMeta  `json:"metadata,omitempty"`

	Spec Spec `json:"spec,omitempty"`
	// contains filtered or unexported fields
}

func (Job) Execute

func (j Job) Execute(payload io.Reader) (io.Reader, error)

func (Job) GetStoreType

func (j Job) GetStoreType() string

func (*Job) Init

func (j *Job) Init() error

func (Job) SetStore

func (j Job) SetStore(_ meta.Store)

type Spec

type Spec struct {
	TokenEnv string   `json:"tokenEnv,omitempty"`
	Channel  string   `json:"channel,omitempty"`
	Template Template `json:"template,omitempty"`
}

type Template

type Template struct {
	ParseMode string `json:"parseMode,omitempty"`
	Text      string `json:"text,omitempty"`
}

Jump to

Keyboard shortcuts

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