mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-07-01 11:35:23 +00:00
15 lines
329 B
Go
15 lines
329 B
Go
package conf
|
|
|
|
import (
|
|
"github.com/golang/protobuf/proto"
|
|
"github.com/v2fly/v2ray-core/v4/app/observatory"
|
|
)
|
|
|
|
type ObservatoryConfig struct {
|
|
SubjectSelector []string `json:"subjectSelector"`
|
|
}
|
|
|
|
func (o ObservatoryConfig) Build() (proto.Message, error) {
|
|
return &observatory.Config{SubjectSelector: o.SubjectSelector}, nil
|
|
}
|