github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/infra/conf/v2jsonpb/followerlist.go (about) 1 package v2jsonpb 2 3 import "google.golang.org/protobuf/reflect/protoreflect" 4 5 type V2JsonProtobufListFollower struct { 6 protoreflect.List 7 } 8 9 func (v V2JsonProtobufListFollower) Len() int { 10 return v.List.Len() 11 } 12 13 func (v V2JsonProtobufListFollower) Get(i int) protoreflect.Value { 14 return protoreflect.ValueOfMessage(&V2JsonProtobufFollower{v.List.Get(i).Message()}) 15 } 16 17 func (v V2JsonProtobufListFollower) Set(i int, value protoreflect.Value) { 18 panic("implement me") 19 } 20 21 func (v V2JsonProtobufListFollower) Append(value protoreflect.Value) { 22 v.List.Append(value) 23 } 24 25 func (v V2JsonProtobufListFollower) AppendMutable() protoreflect.Value { 26 panic("implement me") 27 } 28 29 func (v V2JsonProtobufListFollower) Truncate(i int) { 30 panic("implement me") 31 } 32 33 func (v V2JsonProtobufListFollower) NewElement() protoreflect.Value { 34 newelement := v.List.NewElement() 35 return protoreflect.ValueOfMessage(&V2JsonProtobufFollower{newelement.Message()}) 36 } 37 38 func (v V2JsonProtobufListFollower) IsValid() bool { 39 panic("implement me") 40 }