application

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

package application is the main package for the SkyEye application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

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

Application implements the SkyEye application.

func NewApplication

func NewApplication(config conf.Configuration) (*Application, error)

NewApplication constructs a new Application.

func (*Application) Run

func (a *Application) Run(ctx context.Context, cancel context.CancelFunc, wg *sync.WaitGroup) error

Run implements Application.Run.

type Message added in v0.6.0

type Message[T any] struct {
	Context context.Context
	Data    T
}

Message binds a context to data. It should only be used for passing a request context and data together through channels. The receiver should immediately extract the context and data from the message and use them independently. If you're passing a Message as a function parameter, you are misusing it.

func AsMessage added in v0.6.0

func AsMessage[T any](ctx context.Context, data T) Message[T]

AsMessage creates a Message from a context and data. The message should be immediately sent through a channel.

Jump to

Keyboard shortcuts

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