handler

package
v0.0.0-...-6c969dd Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Repo     repo.RepoInterface
	Producer pulsar.Producer
}

func (*Handler) AcquireTargets

func (h *Handler) AcquireTargets(ctx context.Context, req *pb.Targets) (*pb.Response, error)

AcquireTargets - trigger and event to save targets passes the list of targets in the eventpayload

func (*Handler) ListTargets

func (h *Handler) ListTargets(ctx context.Context, req *pb.Request) (*pb.Targets, error)

ListTargets - get the list of all the targets saved in the db

Jump to

Keyboard shortcuts

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