endpoint

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mock

type Mock struct{}

func NewMock

func NewMock() (*Mock, error)

func (*Mock) Send

func (m *Mock) Send(message *app.EndpointMessage) error

type Repository added in v0.2.0

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

func NewRepository added in v0.2.0

func NewRepository(configEndpoints []app.ConfigEndpoint) *Repository

func (*Repository) Create added in v0.2.0

func (r *Repository) Create(name, endpointType string, config map[string]string) error

func (*Repository) Get added in v0.2.0

func (r *Repository) Get(name string) (app.EndpointPort, error)

type Telegram

type Telegram struct {
	Token  string
	ChatID string
}

func NewTelegram

func NewTelegram(token string, chatID string) *Telegram

func (*Telegram) Send

func (t *Telegram) Send(msg *app.EndpointMessage) error

type TelegramResponse

type TelegramResponse struct {
	OK          bool   `json:"ok"`
	Description string `json:"description"`
}

Jump to

Keyboard shortcuts

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