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)
Click to show internal directories.
Click to hide internal directories.