server

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: Unlicense Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callbacks added in v1.1.0

type Callbacks struct {
	Logger         log.Logger
	Signal         chan struct{}
	Fetches        int
	Requests       int
	DeltaRequests  int
	DeltaResponses int
	// contains filtered or unexported fields
}

func NewCallbacks added in v1.1.1

func NewCallbacks(s *subscription.Subscriber, l log.Logger) *Callbacks

func (*Callbacks) OnDeltaStreamClosed added in v1.1.0

func (cb *Callbacks) OnDeltaStreamClosed(id int64)

func (*Callbacks) OnDeltaStreamOpen added in v1.1.0

func (cb *Callbacks) OnDeltaStreamOpen(_ context.Context, id int64, typ string) error

func (*Callbacks) OnFetchRequest added in v1.1.0

func (cb *Callbacks) OnFetchRequest(_ context.Context, req *discovery.DiscoveryRequest) error

func (*Callbacks) OnFetchResponse added in v1.1.0

func (*Callbacks) OnStreamClosed added in v1.1.0

func (cb *Callbacks) OnStreamClosed(id int64)

func (*Callbacks) OnStreamDeltaRequest added in v1.1.0

func (cb *Callbacks) OnStreamDeltaRequest(id int64, req *discovery.DeltaDiscoveryRequest) error

func (*Callbacks) OnStreamDeltaResponse added in v1.1.0

func (cb *Callbacks) OnStreamDeltaResponse(id int64, req *discovery.DeltaDiscoveryRequest, res *discovery.DeltaDiscoveryResponse)

func (*Callbacks) OnStreamOpen added in v1.1.0

func (cb *Callbacks) OnStreamOpen(_ context.Context, id int64, typ string) error

func (*Callbacks) OnStreamRequest added in v1.1.0

func (cb *Callbacks) OnStreamRequest(id int64, req *discovery.DiscoveryRequest) error

func (*Callbacks) OnStreamResponse added in v1.1.0

func (*Callbacks) Report added in v1.1.0

func (cb *Callbacks) Report()

func (*Callbacks) Stop added in v1.1.1

func (cb *Callbacks) Stop()

type SdsServer added in v1.1.0

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

func NewServer

func NewServer(awsRegion string, awsEndpoint string, l log.Logger) (*SdsServer, error)

func (*SdsServer) Run added in v1.1.0

func (s *SdsServer) Run(socketPath string) error

Jump to

Keyboard shortcuts

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