1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-03 12:35:24 +00:00
v2fly/infra/conf/observatory.go

16 lines
331 B
Go
Raw Normal View History

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