grpc

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2025 License: ISC Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	URL       string
	AccessKey string

	MaxRecvMsgSize int
	MaxSendMsgSize int
	TLSConfig      *TLSConfig
}

type GRPCEngine

type GRPCEngine struct {
	*common.BaseEngine
	// contains filtered or unexported fields
}

func NewGRPCEngine

func NewGRPCEngine(
	ctx context.Context,
	endpoint string,
	opts ...common.Option,
) (*GRPCEngine, error)

func (*GRPCEngine) Close

func (e *GRPCEngine) Close() error

func (*GRPCEngine) CreateClient

func (e *GRPCEngine) CreateClient(accessKey string, options ...common.ClientOption) error

func (*GRPCEngine) Publish

func (e *GRPCEngine) Publish(
	eventName string,
	recipients []string,
	payload map[string]interface{},
	metadata *common.EventMetadata,
	options *common.PublishOptions,
) (string, error)

func (*GRPCEngine) Subscribe

func (e *GRPCEngine) Subscribe(eventName string, options *common.SubscribeOptions) (common.Subscription, error)

type TLSConfig

type TLSConfig struct {
	CertFile           string
	KeyFile            string
	CAFile             string
	ServerName         string
	InsecureSkipVerify bool
}

Jump to

Keyboard shortcuts

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