endpoints

package
v0.0.0-...-61e9026 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskEndpoint

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

func NewDiskEndpoint

func NewDiskEndpoint(name string, path string, expiration time.Duration) *DiskEndpoint

NewDiskEndpoint creates a new DiskEndpoint and starts a goroutine that cleans up expired reports on disk.

func (*DiskEndpoint) BuildReport

func (*DiskEndpoint) IsTransient

func (ep *DiskEndpoint) IsTransient(err error) bool

func (*DiskEndpoint) Name

func (ep *DiskEndpoint) Name() string

func (*DiskEndpoint) Release

func (ep *DiskEndpoint) Release() error

Release decrements the DiskEndpoint's usage count. If it reaches 0, Release instructs the DiskEndpoint's cleanup goroutine to gracefully shutdown. It blocks until the operation has completed. See pipeline.Component.Release.

func (*DiskEndpoint) Send

func (*DiskEndpoint) Use

func (ep *DiskEndpoint) Use()

Use increments the DiskEndpoint's usage count. See pipeline.Component.Use.

type ServiceControlEndpoint

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

func NewServiceControlEndpoint

func NewServiceControlEndpoint(name, serviceName, agentId string, consumerId string, jsonKey []byte) (*ServiceControlEndpoint, error)

NewServiceControlEndpoint creates a new ServiceControlEndpoint.

func (*ServiceControlEndpoint) BuildReport

func (*ServiceControlEndpoint) IsTransient

func (ep *ServiceControlEndpoint) IsTransient(err error) bool

func (*ServiceControlEndpoint) Name

func (ep *ServiceControlEndpoint) Name() string

func (*ServiceControlEndpoint) Release

func (ep *ServiceControlEndpoint) Release() error

Release is a no-op. ServiceControlEndpoint doesn't track usage.

func (*ServiceControlEndpoint) Send

func (*ServiceControlEndpoint) Use

func (ep *ServiceControlEndpoint) Use()

Use is a no-op. ServiceControlEndpoint doesn't track usage.

Jump to

Keyboard shortcuts

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