communication

package
v0.0.0-...-8d2886a Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StepInterval   = 1 // отправка каждую 1 секунду
	ChangeInterval = 3 // смена одной из картинок каждые 3 секунды
	GivenArtsLen   = 4 // 4 картинки меняются по кругу (каждые ChangeInterval меняет одну картинку)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bifröst

type Bifröst struct {
	// contains filtered or unexported fields
}

func NewBifröst

func NewBifröst(red *redis.Client) *Bifröst

func (*Bifröst) ListenPrivateOdinRequests

func (s *Bifröst) ListenPrivateOdinRequests(ctx context.Context, odin odin) error

func (*Bifröst) SendDrakkar

func (s *Bifröst) SendDrakkar(ctx context.Context, channel string, item interface{}) error

SendDrakkar - отправка хрустального драккара с грузом вниз по ручью

type Giving

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

func NewGiving

func NewGiving(artPile artPile, muninn muninn, bifröst *Bifröst) *Giving

func (*Giving) StartGiving

func (g *Giving) StartGiving(ctx context.Context)

type Keyhole

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

Keyhole - замочная скважина (http-ручка) Через эту замочную скважину другая внешняя система может получать кадры с веб-камеры Веб-камеру единолично занимает Asgard, поэтому он и выставляет эту ручку

func NewKeyhole

func NewKeyhole(httpPort string, webcam webcam) *Keyhole

func (*Keyhole) StartHttpServer

func (kh *Keyhole) StartHttpServer(ctx context.Context) error

Jump to

Keyboard shortcuts

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