buildevent

package
v0.0.0-...-d37f60d Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service implements the Build Event Protocol service.

func NewService

func NewService(besTopic sender) (*Service, error)

func (*Service) PublishBuildToolEventStream

func (s *Service) PublishBuildToolEventStream(stream bpb.PublishBuildEvent_PublishBuildToolEventStreamServer) (retErr error)

PublishBuildToolEventStream handles all the Bazel BES messages seen.

func (*Service) PublishLifecycleEvent

func (s *Service) PublishLifecycleEvent(ctx context.Context, req *bpb.PublishLifecycleEventRequest) (*emptypb.Empty, error)

PublishLifecycleEvent records the BEP lifecycle events seen in a metric, and not much else.

type Topic

type Topic struct {
	*pubsub.Topic
}

Topic wraps a pubsub.Topic so that it can expose the proper return type for Publish().

func NewTopic

func NewTopic(t *pubsub.Topic) *Topic

NewTopic wraps a pubsub.Topic with a *Topic so it can be used as a `sender`.

func (*Topic) Publish

func (t *Topic) Publish(ctx context.Context, msg *pubsub.Message) fetcher

Publish effectively casts a pubsub.MessageResult into a fetcher.

Jump to

Keyboard shortcuts

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