util

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromConfig

func FromConfig(f *os.File) (*tq.Server, error)

FromConfig creates a Tasqueue server from a YAML config file.

Types

type Config

type Config struct {
	Broker struct {
		Redis *br.Options `yaml:"redis"`
		Nats  *bn.Options `yaml:"nats"`
	} `yaml:"broker"`
	Results struct {
		Postgres *rp.Options `yaml:"postgres"`
		Sqlite   *rs.Options `yaml:"sqlite"`
	} `yaml:"results"`
}

Config file structure.

At most one broker and one result store can be specified. Where one isn't given, an in-memory broker or result store will be used (as needed).

Jump to

Keyboard shortcuts

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