cache

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {

	// SessionAuthKey is the HMAC key for session cookies, shared across HA instances.
	SessionAuthKey string
	// SessionEncKey is the AES encryption key for session cookies, shared across HA instances.
	SessionEncKey string
	// contains filtered or unexported fields
}

Service holds session keys for the UI service.

func New

func New(ctx context.Context, cfg *model.Cfg, log *logger.Log) (*Service, error)

New creates the UI cache service and resolves HA-shared session keys.

func (*Service) Close

func (s *Service) Close(ctx context.Context) error

Close disconnects MongoDB if connected.

Jump to

Keyboard shortcuts

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