backends

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2026 License: MIT 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
Package storetest holds the behavioural contract every MessageStore backend must satisfy, so the backends can be proven to agree rather than merely to each work.
Package storetest holds the behavioural contract every MessageStore backend must satisfy, so the backends can be proven to agree rather than merely to each work.

Jump to

Keyboard shortcuts

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