subscriptiontask

package
v0.7.22 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: Apache-2.0 Imports: 9 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

	// Get returns a subscription based on a given subscription ID
	Get(ctx context.Context, id subtaskapi.ID) (*subtaskapi.SubscriptionTask, error)

	// List returns the list of existing subscriptions
	List(ctx context.Context, opts ...ListOption) ([]subtaskapi.SubscriptionTask, error)

	// Watch watches the subscription changes
	Watch(ctx context.Context, ch chan<- subtaskapi.Event, opts ...WatchOption) error
}

Client is an E2 subscription service client interface

func NewClient

func NewClient(conn *grpc.ClientConn) Client

NewClient creates a new subscribe task service client

type FilterOption

type FilterOption interface {
	ListOption
	WatchOption
}

FilterOption is an option for filtering List/Watch calls

func WithEndpointID

func WithEndpointID(id epapi.ID) FilterOption

WithEndpointID creates an option for filtering by endpoint ID

func WithSubscriptionID

func WithSubscriptionID(id subapi.ID) FilterOption

WithSubscriptionID creates an option for filtering by subscription ID

type ListOption

type ListOption interface {
	// contains filtered or unexported methods
}

ListOption is an option for filtering List calls

type WatchOption

type WatchOption interface {
	// contains filtered or unexported methods
}

WatchOption is an option for filtering Watch calls

Jump to

Keyboard shortcuts

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