Documentation ¶
Index ¶
- Variables
- type Cache
- func (c *Cache) AuthKey(accessKey string) (models.AuthKey, error)
- func (c *Cache) PathPermission(id int) (models.PathPermission, error)
- func (c *Cache) PathPermissionIDs(accessKey string) ([]int, error)
- func (c *Cache) RefreshPathPermissions(perms []models.PathPermission) error
- func (c *Cache) SetAuthKey(authKey models.AuthKey) error
- func (c *Cache) SetPathPermissionIDs(accessKey string, permIDs []int) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("Not found") ErrExists = errors.New("Error exists") )
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) PathPermission ¶
func (c *Cache) PathPermission(id int) (models.PathPermission, error)
func (*Cache) PathPermissionIDs ¶
func (*Cache) RefreshPathPermissions ¶
func (c *Cache) RefreshPathPermissions(perms []models.PathPermission) error
Click to show internal directories.
Click to hide internal directories.