Documentation ¶
Index ¶
Constants ¶
View Source
const ( ScopeSys = "sys" ScopeOrg = "org" ScopeProject = "project" ScopeApp = "app" ScopePublisher = "publisher" ScopeMicroService = "micro_service" MonitorProjectAlert string = "monitor_project_alert" )
Scope values
View Source
const ( ActionCreate = "CREATE" ActionDelete = "DELETE" ActionUpdate = "UPDATE" ActionGet = "GET" ActionList = "LIST" ActionOperate = "OPERATE" )
Action values
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface {
Check(perms ...*Permission) transport.ServiceOption
}
Interface .
type Permission ¶
type Permission struct {
// contains filtered or unexported fields
}
Permission .
func Method ¶
func Method(method interface{}, scope, resource interface{}, action Action, id ValueGetter) *Permission
Method .
func (*Permission) String ¶
func (p *Permission) String() string
type ValueGetter ¶
ValueGetter .
Click to show internal directories.
Click to hide internal directories.