mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-05 13:28:49 +08:00
17c3a70d64
Signed-off-by: cai.zhang <cai.zhang@zilliz.com>
32 lines
525 B
Go
32 lines
525 B
Go
package proxy
|
|
|
|
import (
|
|
"github.com/zilliztech/milvus-distributed/internal/util/paramtable"
|
|
)
|
|
|
|
type ParamTable struct {
|
|
paramtable.BaseTable
|
|
}
|
|
|
|
var Params ParamTable
|
|
|
|
func (p *ParamTable) InitParamTable() {
|
|
p.Init()
|
|
}
|
|
|
|
func (p *ParamTable) MasterAddress() string {
|
|
masterAddress, err := p.Load("_MasterAddress")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return masterAddress
|
|
}
|
|
|
|
func (p *ParamTable) PulsarAddress() string {
|
|
pulsarAddress, err := p.Load("_PulsarAddress")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return pulsarAddress
|
|
}
|