Documentation ¶
Index ¶
- type Validator
- func (*Validator) Descriptor() ([]byte, []int)
- func (m *Validator) GetPattern() isValidator_Pattern
- func (m *Validator) GetPatternNumBytes() int32
- func (m *Validator) GetPatternString() string
- func (*Validator) ProtoMessage()
- func (m *Validator) Reset()
- func (m *Validator) String() string
- func (m *Validator) XXX_DiscardUnknown()
- func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Validator) XXX_Merge(src proto.Message)
- func (*Validator) XXX_OneofWrappers() []interface{}
- func (m *Validator) XXX_Size() int
- func (m *Validator) XXX_Unmarshal(b []byte) error
- type Validator_PatternNumBytes
- type Validator_PatternString
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator struct { // Validate the data integrity of the response using a pattern that is // repeated throughout the length of the response, with last len(response) % // len(pattern) bytes being zero bytes. // // For example if response length is 100 bytes and pattern length is 8 bytes, // first 96 bytes of the response should be pattern repeated 12 times, and // last 4 bytes should be set to zero byte ('\0') // // Types that are valid to be assigned to Pattern: // *Validator_PatternString // *Validator_PatternNumBytes Pattern isValidator_Pattern `protobuf_oneof:"pattern"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Validator) Descriptor ¶
func (*Validator) GetPattern ¶
func (m *Validator) GetPattern() isValidator_Pattern
func (*Validator) GetPatternNumBytes ¶
func (*Validator) GetPatternString ¶
func (*Validator) ProtoMessage ¶
func (*Validator) ProtoMessage()
func (*Validator) XXX_DiscardUnknown ¶
func (m *Validator) XXX_DiscardUnknown()
func (*Validator) XXX_Marshal ¶
func (*Validator) XXX_OneofWrappers ¶ added in v0.10.4
func (*Validator) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Validator) XXX_Unmarshal ¶
type Validator_PatternNumBytes ¶
type Validator_PatternNumBytes struct {
PatternNumBytes int32 `protobuf:"varint,2,opt,name=pattern_num_bytes,json=patternNumBytes,oneof"`
}
type Validator_PatternString ¶
type Validator_PatternString struct {
PatternString string `protobuf:"bytes,1,opt,name=pattern_string,json=patternString,oneof"`
}
Click to show internal directories.
Click to hide internal directories.