config

package
v0.0.0-...-f90bd80 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: AGPL-3.0 Imports: 2 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 {
	Tenants []Tenant `yaml:"tenants"`
}

func Load

func Load(data io.Reader) (*Config, error)

type ContextSourceConfig

type ContextSourceConfig struct {
	Endpoint    string             `yaml:"endpoint"`
	Temporal    TemporalInfo       `yaml:"temporal"`
	Information []RegistrationInfo `yaml:"information"`
}

func (*ContextSourceConfig) TemporalEndpoint

func (cs *ContextSourceConfig) TemporalEndpoint() string

type EntityInfo

type EntityInfo struct {
	IDPattern string `yaml:"idPattern"`
	Type      string `yaml:"type"`
}

type Notification

type Notification struct {
	Endpoint string `yaml:"endpoint"`
}

type RegistrationInfo

type RegistrationInfo struct {
	Entities []EntityInfo `yaml:"entities"`
}

type TemporalInfo

type TemporalInfo struct {
	Enabled  bool   `yaml:"enabled"`
	Endpoint string `yaml:"endpoint"`
}

type Tenant

type Tenant struct {
	ID             string                `yaml:"id"`
	Name           string                `yaml:"name"`
	ContextSources []ContextSourceConfig `yaml:"contextSources"`
	Notifications  []Notification        `yaml:"notifications"`
}

Jump to

Keyboard shortcuts

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