config

package
v0.0.0-...-eacc1e1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	conf.Version
	RabbitConnectionString string `conf:"env:RABBIT_CS,default:amqp://guest:guest@localhost:5672"`
	SourceQueue            string `conf:"env:source_queue,default:partymq.q.source,help:source queue, app will consume messages from this queue"`
	KeyConfig              struct {
		Source string `conf:"default:header,help:points to a source for fetching partition key, possible values are: header, body"`
		Key    string `conf:"default:partitionKey,help:key for partitionKey value"`
	}
	HeartBeatConfig struct {
		CheckInterval string `conf:"default:30s,help:duration, after this span background job will inspect whether clients are idle"`
		ExpiresAfter  string `conf:"default:120s,help:duration, after this span client will be deleted if no heartbeat sent"`
	}
}

Config - app config

Jump to

Keyboard shortcuts

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