Documentation
¶
Index ¶
- Variables
- type Permission
- type RouteMatcher
- type Rule
- type RuleValue
- type Service
- type Users
- func (u *Users) Add(v *schema.User) error
- func (u *Users) Del(name string) error
- func (u *Users) Get(name string) (schema.User, bool)
- func (u *Users) List() <-chan *schema.User
- func (u *Users) Load(file string) error
- func (u *Users) Save() error
- func (u *Users) SetPass(name, old, new string) (schema.User, bool)
- type Zone
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Permission ¶
type Permission struct {
Guest RouteMatcher `json:"guest"`
}
func (*Permission) Load ¶
func (p *Permission) Load(file string) error
type RouteMatcher ¶
type RouteMatcher struct {
Match []Rule
}
func (*RouteMatcher) Add ¶
func (r *RouteMatcher) Add(m Rule)
type Service ¶
type Service struct {
Zone Zone
Users Users
Permission Permission
}
Click to show internal directories.
Click to hide internal directories.