collect

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

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

Go to latest
Published: Oct 20, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, args []string) error

Types

type Broker

type Broker[T any] struct {
	// contains filtered or unexported fields
}

func NewBroker

func NewBroker[T any]() *Broker[T]

func (*Broker[T]) Broadcast

func (b *Broker[T]) Broadcast(msg T)

func (*Broker[T]) Start

func (b *Broker[T]) Start()

func (*Broker[T]) Stop

func (b *Broker[T]) Stop()

func (*Broker[T]) Subscribe

func (b *Broker[T]) Subscribe() chan T

func (*Broker[T]) Unsubscribe

func (b *Broker[T]) Unsubscribe(oldC chan T)

type ImageServer

type ImageServer struct {
	schema.UnimplementedImageServiceServer
	// contains filtered or unexported fields
}

func NewImageServer

func NewImageServer(opt Options) (*ImageServer, error)

func (*ImageServer) LiveStream

func (*ImageServer) Start

func (s *ImageServer) Start(ctx context.Context) error

func (*ImageServer) Stop

func (s *ImageServer) Stop()

func (*ImageServer) StoreRawImage

type Options

type Options struct {
	Addr      string
	ImgDir    string
	ProxyAddr string
}

type ProcessedImage

type ProcessedImage struct {
	URL       string
	Timestamp time.Time
	ID        string
}

type ProxyServer

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

func NewProxyServer

func NewProxyServer(opt Options) *ProxyServer

func (*ProxyServer) Start

func (s *ProxyServer) Start() error

func (*ProxyServer) Stop

func (s *ProxyServer) Stop()

Jump to

Keyboard shortcuts

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