expire

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Overview

Package expire provides registry server chain elements for unregistering expired endpoints, services

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNetworkServiceEndpointRegistryServer

func NewNetworkServiceEndpointRegistryServer(ctx context.Context, opts ...Option) registry.NetworkServiceEndpointRegistryServer

NewNetworkServiceEndpointRegistryServer creates a new NetworkServiceServer chain element that implements unregister of expired connections for the subsequent chain elements.

Types

type Option added in v1.7.1

type Option func(*options)

Option is option to configure expire chain element

func WithDefaultExpiration added in v1.7.1

func WithDefaultExpiration(d time.Duration) Option

WithDefaultExpiration sets the default expiration for endpoints

Jump to

Keyboard shortcuts

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