backends

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBackendNotImplemented = streaming.ErrBackendNotConnected
	ErrUnsupportedBackend    = streaming.ErrInvalidConfig
)

Backend errors.

Functions

func CreateStores

func CreateStores(config BackendConfig) (
	roomStore streaming.RoomStore,
	channelStore streaming.ChannelStore,
	messageStore streaming.MessageStore,
	presenceStore streaming.PresenceStore,
	typingStore streaming.TypingStore,
	distributed streaming.DistributedBackend,
	err error,
)

CreateStores creates backend stores based on the backend type and configuration.

Types

type BackendConfig

type BackendConfig struct {
	Type     string
	URLs     []string
	Username string
	Password string
	NodeID   string
	Prefix   string

	// TLS
	TLSEnabled  bool
	TLSCertFile string
	TLSKeyFile  string
	TLSCAFile   string
}

BackendConfig holds configuration for creating backend stores.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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