factory

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfigFactory

func InitConfigFactory(f string)

TODO: Support configuration update from REST api

Types

type Config

type Config struct {
	Info *Info `yaml:"info"`

	Configuration *Configuration `yaml:"configuration"`
}
var UdrConfig Config

type Configuration

type Configuration struct {
	Sbi *Sbi `yaml:"sbi"`

	Mongodb *Mongodb `yaml:"mongodb"`

	NrfUri string `yaml:"nrfUri"`
}

type Info

type Info struct {
	Version string `yaml:"version,omitempty"`

	Description string `yaml:"description,omitempty"`
}

type Mongodb

type Mongodb struct {
	Name string `yaml:"name"`

	Url string `yaml:"url"`
}

type Sbi

type Sbi struct {
	Scheme   string `yaml:"scheme"`
	IPv4Addr string `yaml:"ipv4Addr"`
	// IPv6Addr string `yaml:"ipv6Addr,omitempty"`
	Port int  `yaml:"port"`
	Tls  *Tls `yaml:"tls,omitempty"`
}

type Tls

type Tls struct {
	Log string `yaml:"log"`

	Pem string `yaml:"pem"`

	Key string `yaml:"key"`
}

Jump to

Keyboard shortcuts

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