Documentation ¶
Index ¶
- type Config
- type Redis
- type Service
- func (s *Service) Find(c context.Context, aid int64, ipaddr, cdnip string) (ret, retdown int64, err error)
- func (s *Service) FindByGid(c context.Context, gid int64, ipaddr, cdnip string) (ret, retdown int64)
- func (s *Service) FindByPid(c context.Context, pids []int64, ipaddr string) (ret, retdown int64)
- func (s *Service) Forbid(c context.Context, pstr string, ipaddr string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service zlimit service struct
func (*Service) Find ¶
func (s *Service) Find(c context.Context, aid int64, ipaddr, cdnip string) (ret, retdown int64, err error)
Find redio rule by aid and ipaddr
func (*Service) FindByGid ¶
func (s *Service) FindByGid(c context.Context, gid int64, ipaddr, cdnip string) (ret, retdown int64)
FindByGid redio rule by group_id and ipaddr(or cdnip)
Click to show internal directories.
Click to hide internal directories.