watcherservice

package
v0.0.0-...-7d6da81 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAnnotationVal

func GetAnnotationVal(key string, annotations map[string]string) (
	string, error)

Types

type Client

type Client struct {
	Cancel context.CancelFunc

	Addr, Port string
	pb.WatcherServiceClient
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, logger logr.Logger, addr,
	port string, opts ...grpc.DialOption) (*Client, error)

func (*Client) GetServerParams

func (c *Client) GetServerParams() (addr, port string)

func (*Client) SendEvent

func (c *Client) SendEvent(ctx context.Context, params watcher.EventParameters) (
	pb.ResponseType, error)

SendEvent takes the event params from watcherStore and sends a pb.EventRequest to edgewatcher server

Jump to

Keyboard shortcuts

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