shared

package module
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package shared represents the core library of darvaza

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reloader

type Reloader interface {
	Reload() error
}

Reloader identifies a service or worker that allows its internal configuration to be reloaded on runtime

type WorkGroup

type WorkGroup struct {
	Done chan error
	// contains filtered or unexported fields
}

WorkGroup governs a slice of Workers

func NewWorkGroup

func NewWorkGroup() *WorkGroup

NewWorkGroup creates a new empty group of workers

func (*WorkGroup) Append

func (s *WorkGroup) Append(r Worker)

Append adds a worker to the group

func (*WorkGroup) Cancel

func (s *WorkGroup) Cancel() error

Cancel interrupts the execution of all workers

func (*WorkGroup) Reload

func (s *WorkGroup) Reload() error

Reload calls Reload() on all workers that support it

func (*WorkGroup) Remove

func (s *WorkGroup) Remove(r Worker)

Remove removes a worker from the group

func (*WorkGroup) Run

func (s *WorkGroup) Run() error

Run invokes all Workers and waits for them to finish

type Worker

type Worker interface {
	Run() error
	Cancel() error
}

Worker is a routing that runs supervised

Directories

Path Synopsis
Package cblog provides a channel based logger.
Package cblog provides a channel based logger.
config module
Package net provides generic network helpers and proxies to some useful standard types and functions
Package net provides generic network helpers and proxies to some useful standard types and functions
os
Package os provides some extensions over the standard os package
Package os provides some extensions over the standard os package
flock
Package flock provides a wrapper around syscall.Flock
Package flock provides a wrapper around syscall.Flock
Package proxy implements various proxy related utilities
Package proxy implements various proxy related utilities
Package storage provides a TLS Store
Package storage provides a TLS Store
certpool
Package certpool provides a x509 Certificates store from ground up
Package certpool provides a x509 Certificates store from ground up
file
Package file provides a Storage implementation for storing x509 certificates as files
Package file provides a Storage implementation for storing x509 certificates as files
simple
Package simple provides a simple self-contained TLS Store
Package simple provides a simple self-contained TLS Store
Package sync provides concurrency helpers
Package sync provides concurrency helpers
httpgroup
Package httpgroup implements an errgroup for HTTP Servers
Package httpgroup implements an errgroup for HTTP Servers
tls
server
Package server provides an implementation of a TLSProxy.
Package server provides an implementation of a TLSProxy.
Package version exists so the linker can inject Version and BuildData values
Package version exists so the linker can inject Version and BuildData values
web module
x
Package x provides miscellaneous helpers
Package x provides miscellaneous helpers
Package x509utils provides abstract access to collections of x509 certificates
Package x509utils provides abstract access to collections of x509 certificates

Jump to

Keyboard shortcuts

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