adsc

package
v0.0.0-...-f43927d Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ADSC

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

func New

func New(opts *ADSCConfig) (*ADSC, error)

func (*ADSC) Restart

func (a *ADSC) Restart(ctx context.Context)

func (*ADSC) Run

func (a *ADSC) Run(ctx context.Context) error

type ADSCConfig

type ADSCConfig struct {
	PeerName                 string
	DiscoveryAddr            string
	Authority                string
	InitialDiscoveryRequests []*discovery.DiscoveryRequest
	Handlers                 map[string]ResponseHandler
	ReconnectDelay           time.Duration
}

type ResponseHandler

type ResponseHandler interface {
	Handle(source string, resources []*anypb.Any) error
}

ResponseHandler handles response received from an XDS server.

Jump to

Keyboard shortcuts

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