Documentation
¶
Overview ¶
Package yaml provides a YAML-file-backed implementation of queueconfig.Store. The file is read once at construction time and held in memory; the file is not watched for changes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a queueconfig.Store backed by an in-memory snapshot of a YAML file. Construct via NewStore. Safe for concurrent reads.
func NewStore ¶
NewStore reads queue configurations from the YAML file at path and returns a Store. If the file omits the top-level "queues" key, it is treated as an empty queue list. Returns an error if the file is unreadable, malformed, contains a queue with an empty name, or contains duplicate queue names.
Click to show internal directories.
Click to hide internal directories.