config

package
v0.0.0-...-9fe20ad Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MediaServiceConfig

type MediaServiceConfig struct {
	ServiceConfig `yaml:"ServiceConfig"`
	LocalStore    string `yaml:"LocalStore"`
}

func NewMediaSericeConfig

func NewMediaSericeConfig(configFile string) (*MediaServiceConfig, error)

type ServiceConfig

type ServiceConfig struct {
	Server struct {
		Name       string `yaml:"Name"`
		GrpcAddr   string `yaml:"GrpcAddr"`
		RestAddr   string `yaml:"RestAddr"`
		CertFile   string `yaml:"CertFile"`
		KeyFile    string `yaml:"KeyFile"`
		ServerName string `yaml:"ServerName"`
		Nodes      []struct {
			Name string `yaml:"Name"`
			Host string `yaml:"Host"`
			Port string `yaml:"Port"`
		} `yaml:"Nodes"`
	} `yaml:"Server"`
}

func NewServerconfig

func NewServerconfig(configFile string) (*ServiceConfig, error)

func (*ServiceConfig) GetNodeAddr

func (sc *ServiceConfig) GetNodeAddr(name string) (error, string)

type WebServiceConfig

type WebServiceConfig struct {
	ServiceConfig `yaml:"ServiceConfig"`
	AssetsPath    string `yaml:"AssetsPath"`
}

func NewWebSericeConfig

func NewWebSericeConfig(configFile string) (*WebServiceConfig, error)

Jump to

Keyboard shortcuts

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