Documentation ¶
Index ¶
- Variables
- type TestBitString
- func (*TestBitString) Descriptor() ([]byte, []int)deprecated
- func (x *TestBitString) GetAttrBs1() *asn1.BitString
- func (x *TestBitString) GetAttrBs2() *asn1.BitString
- func (x *TestBitString) GetAttrBs3() *asn1.BitString
- func (x *TestBitString) GetAttrBs4() *asn1.BitString
- func (x *TestBitString) GetAttrBs5() *asn1.BitString
- func (*TestBitString) ProtoMessage()
- func (x *TestBitString) ProtoReflect() protoreflect.Message
- func (x *TestBitString) Reset()
- func (x *TestBitString) String() string
- type TestChoices
- func (*TestChoices) Descriptor() ([]byte, []int)deprecated
- func (m *TestChoices) GetChoice1() isTestChoices_Choice1
- func (x *TestChoices) GetChoice1A() int32
- func (m *TestChoices) GetChoice2() isTestChoices_Choice2
- func (x *TestChoices) GetChoice2A() int32
- func (x *TestChoices) GetChoice2B() string
- func (m *TestChoices) GetChoice3() isTestChoices_Choice3
- func (x *TestChoices) GetChoice3A() int32
- func (x *TestChoices) GetChoice3B() string
- func (x *TestChoices) GetChoice3C() []byte
- func (x *TestChoices) GetOtherAttr() string
- func (*TestChoices) ProtoMessage()
- func (x *TestChoices) ProtoReflect() protoreflect.Message
- func (x *TestChoices) Reset()
- func (x *TestChoices) String() string
- type TestChoices_Choice1A
- type TestChoices_Choice2A
- type TestChoices_Choice2B
- type TestChoices_Choice3A
- type TestChoices_Choice3B
- type TestChoices_Choice3C
- type TestConstrainedInt
- func (*TestConstrainedInt) Descriptor() ([]byte, []int)deprecated
- func (x *TestConstrainedInt) GetAttrCiA() int32
- func (x *TestConstrainedInt) GetAttrCiB() int64
- func (x *TestConstrainedInt) GetAttrCiC() int64
- func (x *TestConstrainedInt) GetAttrCiD() int64
- func (x *TestConstrainedInt) GetAttrCiE() int64
- func (*TestConstrainedInt) ProtoMessage()
- func (x *TestConstrainedInt) ProtoReflect() protoreflect.Message
- func (x *TestConstrainedInt) Reset()
- func (x *TestConstrainedInt) String() string
- type TestUnconstrainedInt
- func (*TestUnconstrainedInt) Descriptor() ([]byte, []int)deprecated
- func (x *TestUnconstrainedInt) GetAttrUciA() int32
- func (x *TestUnconstrainedInt) GetAttrUciB() int64
- func (*TestUnconstrainedInt) ProtoMessage()
- func (x *TestUnconstrainedInt) ProtoReflect() protoreflect.Message
- func (x *TestUnconstrainedInt) Reset()
- func (x *TestUnconstrainedInt) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var Choicemap = map[string]map[int]reflect.Type{ "Choice1": { 1: reflect.TypeOf(TestChoices_Choice1A{}), }, "Choice2": { 1: reflect.TypeOf(TestChoices_Choice2A{}), 2: reflect.TypeOf(TestChoices_Choice2B{}), }, "Choice3": { 1: reflect.TypeOf(TestChoices_Choice3A{}), 2: reflect.TypeOf(TestChoices_Choice3B{}), 3: reflect.TypeOf(TestChoices_Choice3C{}), }, }
Choicemap - Should be generated with protoc-gen-choice from proto
View Source
var File_pkg_asn1_test_aper_test_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type TestBitString ¶
type TestBitString struct { AttrBs1 *asn1.BitString `protobuf:"bytes,1,opt,name=attrBs1,proto3" json:"attrBs1,omitempty"` // @inject_tag: aper:"sizeLB:20,sizeUB:20" AttrBs2 *asn1.BitString `protobuf:"bytes,2,opt,name=attrBs2,proto3" json:"attrBs2,omitempty" aper:"sizeLB:20,sizeUB:20"` // @inject_tag: aper:"sizeLB:22,sizeUB:32" AttrBs3 *asn1.BitString `protobuf:"bytes,3,opt,name=attrBs3,proto3" json:"attrBs3,omitempty" aper:"sizeLB:22,sizeUB:32"` // @inject_tag: aper:"valueExt,sizeLB:28,sizeUB:32" AttrBs4 *asn1.BitString `protobuf:"bytes,4,opt,name=attrBs4,proto3" json:"attrBs4,omitempty" aper:"valueExt,sizeLB:28,sizeUB:32"` // @inject_tag: aper:"optional,sizeLB:32,sizeUB:36" AttrBs5 *asn1.BitString `protobuf:"bytes,5,opt,name=attrBs5,proto3,oneof" json:"attrBs5,omitempty" aper:"optional,sizeLB:32,sizeUB:36"` // contains filtered or unexported fields }
func (*TestBitString) Descriptor
deprecated
func (*TestBitString) Descriptor() ([]byte, []int)
Deprecated: Use TestBitString.ProtoReflect.Descriptor instead.
func (*TestBitString) GetAttrBs1 ¶
func (x *TestBitString) GetAttrBs1() *asn1.BitString
func (*TestBitString) GetAttrBs2 ¶
func (x *TestBitString) GetAttrBs2() *asn1.BitString
func (*TestBitString) GetAttrBs3 ¶
func (x *TestBitString) GetAttrBs3() *asn1.BitString
func (*TestBitString) GetAttrBs4 ¶
func (x *TestBitString) GetAttrBs4() *asn1.BitString
func (*TestBitString) GetAttrBs5 ¶
func (x *TestBitString) GetAttrBs5() *asn1.BitString
func (*TestBitString) ProtoMessage ¶
func (*TestBitString) ProtoMessage()
func (*TestBitString) ProtoReflect ¶
func (x *TestBitString) ProtoReflect() protoreflect.Message
func (*TestBitString) Reset ¶
func (x *TestBitString) Reset()
func (*TestBitString) String ¶
func (x *TestBitString) String() string
type TestChoices ¶
type TestChoices struct { OtherAttr string `protobuf:"bytes,1,opt,name=otherAttr,proto3" json:"otherAttr,omitempty"` // Types that are assignable to Choice1: // *TestChoices_Choice1A Choice1 isTestChoices_Choice1 `protobuf_oneof:"Choice1"` // Types that are assignable to Choice2: // *TestChoices_Choice2A // *TestChoices_Choice2B Choice2 isTestChoices_Choice2 `protobuf_oneof:"Choice2"` // Types that are assignable to Choice3: // *TestChoices_Choice3A // *TestChoices_Choice3B // *TestChoices_Choice3C Choice3 isTestChoices_Choice3 `protobuf_oneof:"Choice3"` // contains filtered or unexported fields }
func (*TestChoices) Descriptor
deprecated
func (*TestChoices) Descriptor() ([]byte, []int)
Deprecated: Use TestChoices.ProtoReflect.Descriptor instead.
func (*TestChoices) GetChoice1 ¶
func (m *TestChoices) GetChoice1() isTestChoices_Choice1
func (*TestChoices) GetChoice1A ¶
func (x *TestChoices) GetChoice1A() int32
func (*TestChoices) GetChoice2 ¶
func (m *TestChoices) GetChoice2() isTestChoices_Choice2
func (*TestChoices) GetChoice2A ¶
func (x *TestChoices) GetChoice2A() int32
func (*TestChoices) GetChoice2B ¶
func (x *TestChoices) GetChoice2B() string
func (*TestChoices) GetChoice3 ¶
func (m *TestChoices) GetChoice3() isTestChoices_Choice3
func (*TestChoices) GetChoice3A ¶
func (x *TestChoices) GetChoice3A() int32
func (*TestChoices) GetChoice3B ¶
func (x *TestChoices) GetChoice3B() string
func (*TestChoices) GetChoice3C ¶
func (x *TestChoices) GetChoice3C() []byte
func (*TestChoices) GetOtherAttr ¶
func (x *TestChoices) GetOtherAttr() string
func (*TestChoices) ProtoMessage ¶
func (*TestChoices) ProtoMessage()
func (*TestChoices) ProtoReflect ¶
func (x *TestChoices) ProtoReflect() protoreflect.Message
func (*TestChoices) Reset ¶
func (x *TestChoices) Reset()
func (*TestChoices) String ¶
func (x *TestChoices) String() string
type TestChoices_Choice1A ¶
type TestChoices_Choice1A struct { // @inject_tag: aper:"choiceIdx:1,valueExt" Choice1A int32 `protobuf:"varint,10,opt,name=choice1A,proto3,oneof" aper:"choiceIdx:1,valueExt"` }
type TestChoices_Choice2A ¶
type TestChoices_Choice2A struct { // @inject_tag: aper:"choiceIdx:1,valueExt" Choice2A int32 `protobuf:"varint,20,opt,name=choice2A,proto3,oneof" aper:"choiceIdx:1,valueExt"` }
type TestChoices_Choice2B ¶
type TestChoices_Choice2B struct { // @inject_tag: aper:"choiceIdx:2,valueExt" Choice2B string `protobuf:"bytes,21,opt,name=choice2B,proto3,oneof" aper:"choiceIdx:2,valueExt"` }
type TestChoices_Choice3A ¶
type TestChoices_Choice3A struct { // @inject_tag: aper:"choiceIdx:1,valueExt" Choice3A int32 `protobuf:"varint,30,opt,name=choice3A,proto3,oneof" aper:"choiceIdx:1,valueExt"` }
type TestChoices_Choice3B ¶
type TestChoices_Choice3B struct { // @inject_tag: aper:"choiceIdx:2,valueExt" Choice3B string `protobuf:"bytes,31,opt,name=choice3B,proto3,oneof" aper:"choiceIdx:2,valueExt"` }
type TestChoices_Choice3C ¶
type TestChoices_Choice3C struct { // @inject_tag: aper:"choiceIdx:3,valueExt" Choice3C []byte `protobuf:"bytes,32,opt,name=choice3C,proto3,oneof" aper:"choiceIdx:3,valueExt"` }
type TestConstrainedInt ¶
type TestConstrainedInt struct { // @inject_tag: aper:"valueLB:10,valueUB:100" AttrCiA int32 `protobuf:"varint,1,opt,name=attrCiA,proto3" json:"attrCiA,omitempty" aper:"valueLB:10,valueUB:100"` // @inject_tag: aper:"valueLB:10" AttrCiB int64 `protobuf:"varint,2,opt,name=attrCiB,proto3" json:"attrCiB,omitempty" aper:"valueLB:10"` // @inject_tag: aper:"valueUB:100" AttrCiC int64 `protobuf:"varint,3,opt,name=attrCiC,proto3" json:"attrCiC,omitempty" aper:"valueUB:100"` // @inject_tag: aper:"valueLB:10,valueUB:20" AttrCiD int64 `protobuf:"varint,4,opt,name=attrCiD,proto3" json:"attrCiD,omitempty" aper:"valueLB:10,valueUB:20"` // @inject_tag: aper:"valueLB:10,valueUB:10" AttrCiE int64 `protobuf:"varint,5,opt,name=attrCiE,proto3" json:"attrCiE,omitempty" aper:"valueLB:10,valueUB:10"` // contains filtered or unexported fields }
Add in constraints to control the APER encoding
func (*TestConstrainedInt) Descriptor
deprecated
func (*TestConstrainedInt) Descriptor() ([]byte, []int)
Deprecated: Use TestConstrainedInt.ProtoReflect.Descriptor instead.
func (*TestConstrainedInt) GetAttrCiA ¶
func (x *TestConstrainedInt) GetAttrCiA() int32
func (*TestConstrainedInt) GetAttrCiB ¶
func (x *TestConstrainedInt) GetAttrCiB() int64
func (*TestConstrainedInt) GetAttrCiC ¶
func (x *TestConstrainedInt) GetAttrCiC() int64
func (*TestConstrainedInt) GetAttrCiD ¶
func (x *TestConstrainedInt) GetAttrCiD() int64
func (*TestConstrainedInt) GetAttrCiE ¶
func (x *TestConstrainedInt) GetAttrCiE() int64
func (*TestConstrainedInt) ProtoMessage ¶
func (*TestConstrainedInt) ProtoMessage()
func (*TestConstrainedInt) ProtoReflect ¶
func (x *TestConstrainedInt) ProtoReflect() protoreflect.Message
func (*TestConstrainedInt) Reset ¶
func (x *TestConstrainedInt) Reset()
func (*TestConstrainedInt) String ¶
func (x *TestConstrainedInt) String() string
type TestUnconstrainedInt ¶
type TestUnconstrainedInt struct { AttrUciA int32 `protobuf:"varint,1,opt,name=attrUciA,proto3" json:"attrUciA,omitempty"` AttrUciB int64 `protobuf:"varint,2,opt,name=attrUciB,proto3" json:"attrUciB,omitempty"` // contains filtered or unexported fields }
func (*TestUnconstrainedInt) Descriptor
deprecated
func (*TestUnconstrainedInt) Descriptor() ([]byte, []int)
Deprecated: Use TestUnconstrainedInt.ProtoReflect.Descriptor instead.
func (*TestUnconstrainedInt) GetAttrUciA ¶
func (x *TestUnconstrainedInt) GetAttrUciA() int32
func (*TestUnconstrainedInt) GetAttrUciB ¶
func (x *TestUnconstrainedInt) GetAttrUciB() int64
func (*TestUnconstrainedInt) ProtoMessage ¶
func (*TestUnconstrainedInt) ProtoMessage()
func (*TestUnconstrainedInt) ProtoReflect ¶
func (x *TestUnconstrainedInt) ProtoReflect() protoreflect.Message
func (*TestUnconstrainedInt) Reset ¶
func (x *TestUnconstrainedInt) Reset()
func (*TestUnconstrainedInt) String ¶
func (x *TestUnconstrainedInt) String() string
Click to show internal directories.
Click to hide internal directories.