broadcast

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UseBroadCast

func UseBroadCast(ctx context.Context) (context.Context, chan Response)

UseBroadCast creates a new context that indicates a broadcast should be performed.

Types

type ClusterBuilder

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

ClusterBuilder helps to communicate with a cluster of services for a given `service`.

func NewClusterBuilder

func NewClusterBuilder(registry registry.Registry, service string, dialOptions ...grpc.DialOption) *ClusterBuilder

NewClusterBuilder creates a new instance of ClusterBuilder with the provided parameters.

func (*ClusterBuilder) BuildUnaryInterceptor

func (b *ClusterBuilder) BuildUnaryInterceptor() grpc.UnaryClientInterceptor

BuildUnaryInterceptor creates a grpc.UnaryClientInterceptor that supports broadcasting.

type Response added in v0.0.3

type Response struct {
	Error error
	Reply interface{}
}

Response structure for holding either a reply or an error.

Jump to

Keyboard shortcuts

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