1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-07 22:04:30 -04:00
v2fly/infra/conf/observatory.go

17 lines
397 B
Go
Raw Normal View History

2021-04-08 17:20:30 -04:00
package conf
import (
"github.com/golang/protobuf/proto"
2021-04-08 17:20:30 -04:00
"github.com/v2fly/v2ray-core/v4/app/observatory"
)
type ObservatoryConfig struct {
SubjectSelector []string `json:"subjectSelector"`
ProbeURL string `json:"probeURL"`
2021-04-08 17:20:30 -04:00
}
func (o *ObservatoryConfig) Build() (proto.Message, error) {
return &observatory.Config{SubjectSelector: o.SubjectSelector, ProbeUrl: o.ProbeURL}, nil
2021-04-08 17:20:30 -04:00
}