server

package
v0.0.0-...-4dd3f74 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package server implements a gRPC server that streams Tagger entities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is a grpc server that streams tagger entities

func NewServer

func NewServer(t tagger.Component) *Server

NewServer returns a new Server

func (*Server) TaggerFetchEntity

func (s *Server) TaggerFetchEntity(ctx context.Context, in *pb.FetchEntityRequest) (*pb.FetchEntityResponse, error)

TaggerFetchEntity fetches an entity from the Tagger with the desired cardinality tags.

func (*Server) TaggerStreamEntities

func (s *Server) TaggerStreamEntities(in *pb.StreamTagsRequest, out pb.AgentSecure_TaggerStreamEntitiesServer) error

TaggerStreamEntities subscribes to added, removed, or changed entities in the Tagger and streams them to clients as pb.StreamTagsResponse events. Filtering is as of yet not implemented.

Jump to

Keyboard shortcuts

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