Help us shape the future of Go! Take the 2026 Go Developer Survey

proxymessage

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

proxymessage library for section.io k8s

Dockerfile runs gofmt & go test

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {

	// Successful messages come in via this InboundMessageChannel
	InboundMessageChannel chan string
	// InfoEventCallback is called with informational string messages related to the redis connection
	InfoEventCallback InfoEventCallback

	DebugLog bool
	// contains filtered or unexported fields
}

Client is the message client for proxy pod handlers

func NewClient

func NewClient(redisAddress, registrationKey, listKeyPrefix, listKeySuffix string, registrationTimeoutSeconds int) *Client

NewClient creates a new proxy message client

func NewClientFromEnvVars

func NewClientFromEnvVars() *Client

NewClientFromEnvVars creates a new proxy message client from environment variables

func (*Client) GetListKey

func (pmc *Client) GetListKey() string

GetListKey returns the list key the client is listening on

type InfoEventCallback

type InfoEventCallback func(event string)

This function is called with informational strings

Jump to

Keyboard shortcuts

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