daemon

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: LGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

type Daemon interface {
	context.Context

	// Start wrapped server, server will block util an error occurs or
	// invoking Shutdown() explicitly.
	Start()
	// Shutdown close all servers under the hood.
	Shutdown()
}

Daemon server behaviour abstraction.

func NewDaemon

func NewDaemon(ctx context.Context, cfg *types.DaemonFlag) (Daemon, error)

NewDaemon creates a new daemon server that can handle incoming requests with grpc or http protocol.

Jump to

Keyboard shortcuts

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