client

package
v0.0.0-...-b46bf14 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	KeyTraceId    = "trace-id"
	KeyParentId   = "parent-id"
	KeyTraceFlags = "trace-flags"
)

Variables

This section is empty.

Functions

func Emit

func Emit(ctx context.Context,
	client grpc.EventsClient,
	callback Callable,
	events ...*pb.Event) error

func PrepareEvent

func PrepareEvent(ctx context.Context, event *pb.Event)

Types

type Callable

type Callable interface {
	Callable()
	GetWaitChannel() chan struct{}
	GetCommChannel() chan *pb2.StatusResponse
}

type EventClient

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

type EventClientCallback

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

func NewEventClientCallback

func NewEventClientCallback(stream grpc.Events_EmitClient) *EventClientCallback

func (EventClientCallback) Callback

func (e EventClientCallback) Callback()

func (EventClientCallback) GetCommChannel

func (e EventClientCallback) GetCommChannel() chan *pb2.StatusResponse

func (EventClientCallback) GetWaitChannel

func (e EventClientCallback) GetWaitChannel() chan struct{}

func (EventClientCallback) RegisterCommunicationsChannel

func (e EventClientCallback) RegisterCommunicationsChannel(comm chan *pb2.StatusResponse)

func (EventClientCallback) SetWaitChannel

func (e EventClientCallback) SetWaitChannel(in chan struct{})

Jump to

Keyboard shortcuts

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