Documentation ¶
Index ¶
- type Dao
- func (d *Dao) AddAuth(c context.Context, zoneids map[int64]map[int64]int64) (err error)
- func (d *Dao) Auth(c context.Context, aid int64, zoneids []int64) (res []int64, err error)
- func (d *Dao) CheckVersion(c context.Context) (version *model.Version, err error)
- func (d *Dao) Close() (err error)
- func (d *Dao) DownIPLibrary(c context.Context, version, file string) (err error)
- func (d *Dao) DownloadAnonym() (err error)
- func (d *Dao) ExistsAuth(c context.Context, aid int64) (ok bool, err error)
- func (d *Dao) GroupAuthZone(c context.Context) (res map[int64]map[int64]map[int64]int64, err error)
- func (d *Dao) GroupPolicies(c context.Context) (res map[int64][]int64, err error)
- func (d *Dao) Groupid(c context.Context, aid int64) (gid int64, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) Policies(c context.Context) (res map[int64]map[int64]int64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao dao.
func (*Dao) CheckVersion ¶
func (*Dao) DownIPLibrary ¶
func (*Dao) DownloadAnonym ¶
DownloadAnonym download anonym file.
func (*Dao) ExistsAuth ¶
ExistsAuth if existes ruls in redis.
func (*Dao) GroupAuthZone ¶
GroupAuthZone zone_id by group_id.
func (*Dao) GroupPolicies ¶
GroupPolicies get policy data from db group by group_id
Click to show internal directories.
Click to hide internal directories.