0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-04-28 22:31:25 +03:00
Xray-core/infra/conf/observatory.go

15 lines
324 B
Go
Raw Normal View History

package conf
import (
"github.com/golang/protobuf/proto"
"github.com/xtls/xray-core/app/observatory"
)
type ObservatoryConfig struct {
SubjectSelector []string `json:"subjectSelector"`
}
func (o ObservatoryConfig) Build() (proto.Message, error) {
return &observatory.Config{SubjectSelector: o.SubjectSelector}, nil
}