endpoint

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	io.Closer

	// Add adds a TerminationEndpoint
	Add(ctx context.Context, endPoint *regapi.TerminationEndpoint) error

	// Remove removes a TerminationEndpoint
	Remove(ctx context.Context, endPoint *regapi.TerminationEndpoint) error

	// Get returns a TerminationEndpoint based on a given TerminationEndpoint ID
	Get(ctx context.Context, id regapi.ID) (*regapi.TerminationEndpoint, error)

	// List returns the list of existing TerminationEndpoints
	List(ctx context.Context) ([]regapi.TerminationEndpoint, error)

	// Watch watches the TerminationEndpoint changes
	Watch(ctx context.Context, ch chan<- regapi.Event) error
}

Client provides an E2 end-point client interface

func NewClient

func NewClient(conn *grpc.ClientConn) Client

NewClient creates a new termination endpoint service client

Jump to

Keyboard shortcuts

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