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 subscription Add(ctx context.Context, subscription *subapi.Subscription) error // Remove removes a subscription Remove(ctx context.Context, subscription *subapi.Subscription) error // Get returns a subscription based on a given subscription ID Get(ctx context.Context, id subapi.ID) (*subapi.Subscription, error) // List returns the list of existing subscriptions List(ctx context.Context) ([]subapi.Subscription, error) // Watch watches the subscription changes Watch(ctx context.Context, ch chan<- subapi.Event) error }
Client is an E2 subscription service client interface
func NewClient ¶
func NewClient(conn *grpc.ClientConn) Client
NewClient creates a new subscribe service client
Click to show internal directories.
Click to hide internal directories.