server

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDaemon

func NewDaemon(tasks ...Task) *daemon

func NewHTTPMux

func NewHTTPMux(impl api.API) *http.ServeMux

Types

type HTTP

type HTTP struct {
	Server   *http.Server
	Listener net.Listener
	// contains filtered or unexported fields
}

func NewHTTP

func NewHTTP(tasks ...Task) (*HTTP, error)

func (*HTTP) Run

func (h *HTTP) Run(ctx context.Context) error

type Task

type Task struct {
	Interval time.Duration
	Timeout  time.Duration
	Run      func(ctx context.Context)
}

Jump to

Keyboard shortcuts

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