service

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: BSD-3-Clause Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MaxPingConcurrency      = 4
	DefaultPingCount        = 3
	DefaultPingDuration     = 10 * time.Second
	DefaultConnectTimeout   = 5 * time.Second
	DefaultDiscoverDuration = 10 * time.Second
)

Functions

This section is empty.

Types

type ConfigResolver

type ConfigResolver interface {
	Lookup(id string) (config.Parser, error)
}

type Service

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

func Serve

func Serve(ctx context.Context, resolver ConfigResolver) (*Service, error)

func (*Service) Attach

func (s *Service) Attach(mux *http.ServeMux)

Jump to

Keyboard shortcuts

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