configuration

package
v0.0.0-...-4e4a002 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

* Copyright 2020-present Open Networking Foundation * * SPDX-License-Identifier: Apache-2.0 *

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker struct {
	URL string `json:"url"`
}

type Configuration

type Configuration struct {
	GroupID string  `json:"group_id"`
	Topics  []Topic `json:"topics"`
}

func GetConfiguration

func GetConfiguration(config []byte) (Configuration, error)

GetConfiguration converts byte array from config file into a configuration struct

type Queue

type Queue struct {
	Inbound  string `json:"inbound"`
	Outbound string `json:"outbound"`
}

type Topic

type Topic struct {
	Name    string   `json:"name"`
	Brokers []Broker `json:"brokers"`
	Queues  Queue    `json:"queues"`
}

Jump to

Keyboard shortcuts

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