Documentation
¶
Index ¶
- Variables
- type Filter
- func (*Filter) Descriptor() ([]byte, []int)
- func (m *Filter) GetName() string
- func (m *Filter) GetType() Filter_Type
- func (m *Filter) GetValue() string
- func (m *Filter) Marshal() (dAtA []byte, err error)
- func (m *Filter) MarshalTo(dAtA []byte) (int, error)
- func (m *Filter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Filter) ProtoMessage()
- func (m *Filter) Reset()
- func (m *Filter) Size() (n int)
- func (m Filter) String() string
- func (m *Filter) Unmarshal(dAtA []byte) error
- func (m *Filter) XXX_DiscardUnknown()
- func (m *Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Filter) XXX_Merge(src proto.Message)
- func (m *Filter) XXX_Size() int
- func (m *Filter) XXX_Unmarshal(b []byte) error
- type Filter_Type
- type Query
- func (*Query) Descriptor() ([]byte, []int)
- func (m *Query) GetFilters() []Filter
- func (m *Query) Marshal() (dAtA []byte, err error)
- func (m *Query) MarshalTo(dAtA []byte) (int, error)
- func (m *Query) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Query) ProtoMessage()
- func (m *Query) Reset()
- func (m *Query) Size() (n int)
- func (m Query) String() string
- func (m *Query) Unmarshal(dAtA []byte) error
- func (m *Query) XXX_DiscardUnknown()
- func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Query) XXX_Merge(src proto.Message)
- func (m *Query) XXX_Size() int
- func (m *Query) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
View Source
var Filter_Type_name = map[int32]string{
0: "Exact",
1: "Regex",
}
View Source
var Filter_Type_value = map[string]int32{
"Exact": 0,
"Regex": 1,
}
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter struct {
// Type of filter
Type Filter_Type `protobuf:"varint,1,opt,name=type,proto3,enum=query.Filter_Type" json:"type,omitempty"`
// Name of field that should be filtered
Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
// Value that should be used for filter
Value string `protobuf:"bytes,3,opt,name=Value,proto3" json:"Value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Filter) Descriptor ¶
func (*Filter) GetType ¶
func (m *Filter) GetType() Filter_Type
func (*Filter) MarshalToSizedBuffer ¶
func (*Filter) ProtoMessage ¶
func (*Filter) ProtoMessage()
func (*Filter) XXX_DiscardUnknown ¶
func (m *Filter) XXX_DiscardUnknown()
func (*Filter) XXX_Marshal ¶
func (*Filter) XXX_Unmarshal ¶
type Filter_Type ¶
type Filter_Type int32
const ( // Exact sets when value of filter should be equal to the header value Filter_Exact Filter_Type = 0 // Regex sets when value of filter should match the header value by the regular expression Filter_Regex Filter_Type = 1 )
func (Filter_Type) EnumDescriptor ¶
func (Filter_Type) EnumDescriptor() ([]byte, []int)
func (Filter_Type) String ¶
func (x Filter_Type) String() string
type Query ¶
type Query struct {
// Filters is set of filters, should not be empty
Filters []Filter `protobuf:"bytes,1,rep,name=Filters,proto3" json:"Filters"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Query) Descriptor ¶
func (*Query) GetFilters ¶
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) XXX_DiscardUnknown ¶
func (m *Query) XXX_DiscardUnknown()
func (*Query) XXX_Marshal ¶
func (*Query) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.