config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TelegramBot TelegramBot
	Webcams     map[string]webcam.Webcam
	Rabbitmq    Rabbitmq
	Queues      map[string]Queue
}

func ReadConfig

func ReadConfig() (Config, error)

type Queue added in v0.0.3

type Queue struct {
	Name string
}

type Rabbitmq added in v0.0.3

type Rabbitmq struct {
	Host     string
	Port     int
	User     string
	Password string
}

func (Rabbitmq) GetDial added in v0.0.3

func (r Rabbitmq) GetDial() string

type TelegramAllowedSender

type TelegramAllowedSender struct {
	Name string
	ID   int
}

type TelegramBot

type TelegramBot struct {
	Token          string
	AllowedSenders map[int]TelegramAllowedSender
}

Jump to

Keyboard shortcuts

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