Documentation
¶
Index ¶
- Constants
- type ConditionConfig
- type ListAfter
- type Permissions
- func (this *Permissions) CheckAccess(token auth.Token, topic string, id string, right string) (allowed bool, err error)
- func (this *Permissions) GetResourceRights(token string, topic string, id string) (rights ResourceRights, err error)
- func (this *Permissions) Query(token string, query QueryMessage, result interface{}) (err error, code int)
- func (this *Permissions) SetResourceRights(token string, topic string, id string, rights ResourceRights, kafkaKey string) error
- type QueryCheckIds
- type QueryFind
- type QueryListCommons
- type QueryListIds
- type QueryMessage
- type QueryOperationType
- type ResourceRights
- type ResourceRightsBase
- type Right
- type Selection
Constants ¶
View Source
const ( QueryEqualOperation = client.QueryEqualOperation QueryUnequalOperation = client.QueryUnequalOperation QueryAnyValueInFeatureOperation = client.QueryAnyValueInFeatureOperation )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConditionConfig ¶
type ConditionConfig = client.ConditionConfig
type Permissions ¶
type Permissions struct {
// contains filtered or unexported fields
}
func New ¶
func New(config configuration.Config) *Permissions
func (*Permissions) CheckAccess ¶
func (*Permissions) GetResourceRights ¶
func (this *Permissions) GetResourceRights(token string, topic string, id string) (rights ResourceRights, err error)
func (*Permissions) Query ¶
func (this *Permissions) Query(token string, query QueryMessage, result interface{}) (err error, code int)
func (*Permissions) SetResourceRights ¶
func (this *Permissions) SetResourceRights(token string, topic string, id string, rights ResourceRights, kafkaKey string) error
type QueryCheckIds ¶
type QueryCheckIds = client.QueryCheckIds
type QueryListCommons ¶
type QueryListCommons = client.QueryListCommons
type QueryListIds ¶
type QueryListIds = client.QueryListIds
type QueryMessage ¶
type QueryMessage = client.QueryMessage
type QueryOperationType ¶
type QueryOperationType = client.QueryOperationType
type ResourceRights ¶
type ResourceRights = model.ResourceRights
type ResourceRightsBase ¶
type ResourceRightsBase = model.ResourceRightsBase
Click to show internal directories.
Click to hide internal directories.