Documentation ¶
Index ¶
- Variables
- type Limiter
- func (*Limiter) Descriptor() ([]byte, []int)
- func (m *Limiter) GetInterval() int64
- func (m *Limiter) GetName() string
- func (m *Limiter) GetRate() int32
- func (l *Limiter) IsValid() bool
- func (m *Limiter) Marshal() (dAtA []byte, err error)
- func (m *Limiter) MarshalTo(dAtA []byte) (int, error)
- func (m *Limiter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Limiter) ProtoMessage()
- func (m *Limiter) Reset()
- func (m *Limiter) Size() (n int)
- func (m *Limiter) String() string
- func (m *Limiter) Unmarshal(dAtA []byte) error
- func (m *Limiter) XXX_DiscardUnknown()
- func (m *Limiter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Limiter) XXX_Merge(src proto.Message)
- func (m *Limiter) XXX_Size() int
- func (m *Limiter) XXX_Unmarshal(b []byte) error
- type LimiterList
- func (*LimiterList) Descriptor() ([]byte, []int)
- func (m *LimiterList) GetList() []*Limiter
- func (m *LimiterList) Marshal() (dAtA []byte, err error)
- func (m *LimiterList) MarshalTo(dAtA []byte) (int, error)
- func (m *LimiterList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LimiterList) ProtoMessage()
- func (m *LimiterList) Reset()
- func (m *LimiterList) Size() (n int)
- func (m *LimiterList) String() string
- func (m *LimiterList) Unmarshal(dAtA []byte) error
- func (m *LimiterList) XXX_DiscardUnknown()
- func (m *LimiterList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LimiterList) XXX_Merge(src proto.Message)
- func (m *LimiterList) XXX_Size() int
- func (m *LimiterList) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Limiter ¶
type Limiter struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Rate int32 `protobuf:"varint,2,opt,name=rate,proto3" json:"rate,omitempty"` Interval int64 `protobuf:"varint,3,opt,name=interval,proto3" json:"interval,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewLimiter ¶ added in v1.0.3
func (*Limiter) Descriptor ¶
func (*Limiter) GetInterval ¶
func (*Limiter) MarshalToSizedBuffer ¶
func (*Limiter) ProtoMessage ¶
func (*Limiter) ProtoMessage()
func (*Limiter) XXX_DiscardUnknown ¶
func (m *Limiter) XXX_DiscardUnknown()
func (*Limiter) XXX_Marshal ¶
func (*Limiter) XXX_Unmarshal ¶
type LimiterList ¶
type LimiterList struct { List []*Limiter `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LimiterList) Descriptor ¶
func (*LimiterList) Descriptor() ([]byte, []int)
func (*LimiterList) GetList ¶
func (m *LimiterList) GetList() []*Limiter
func (*LimiterList) Marshal ¶
func (m *LimiterList) Marshal() (dAtA []byte, err error)
func (*LimiterList) MarshalToSizedBuffer ¶
func (m *LimiterList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LimiterList) ProtoMessage ¶
func (*LimiterList) ProtoMessage()
func (*LimiterList) Reset ¶
func (m *LimiterList) Reset()
func (*LimiterList) Size ¶
func (m *LimiterList) Size() (n int)
func (*LimiterList) String ¶
func (m *LimiterList) String() string
func (*LimiterList) Unmarshal ¶
func (m *LimiterList) Unmarshal(dAtA []byte) error
func (*LimiterList) XXX_DiscardUnknown ¶
func (m *LimiterList) XXX_DiscardUnknown()
func (*LimiterList) XXX_Marshal ¶
func (m *LimiterList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LimiterList) XXX_Merge ¶
func (m *LimiterList) XXX_Merge(src proto.Message)
func (*LimiterList) XXX_Size ¶
func (m *LimiterList) XXX_Size() int
func (*LimiterList) XXX_Unmarshal ¶
func (m *LimiterList) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.