Documentation ¶
Index ¶
- Variables
- func JsonCast[Result any](in interface{}) (result Result, err error)
- func List[Result any](client Client, token string, kind string, options model.ListOptions) (result Result, err error)
- func Query[Result any](client Client, token string, query model.QueryMessage) (result Result, code int, err error)
- type Client
- type ConditionConfig
- type FeatureSelection
- type ListAfter
- type ListOptions
- type QueryCheckIds
- type QueryFind
- type QueryListCommons
- type QueryListIds
- type QueryMessage
- type QueryOperationType
- type Selection
- type TestClient
- func (this *TestClient) CheckUserOrGroup(token string, kind string, resource string, rights string) (err error)
- func (this *TestClient) GetRights(_ string, resource string, id string) (result model.ResourceRights, err error)
- func (this *TestClient) GetTermAggregation(token string, kind string, rights string, field string, limit int) (result []model.TermAggregationResultElement, err error)
- func (this *TestClient) List(token string, kind string, options ListOptions) (result []map[string]interface{}, err error)
- func (this *TestClient) Query(token string, query QueryMessage) (result interface{}, code int, err error)
- func (this *TestClient) SetRights(resource string, id string, rights model.ResourceRights)
- func (this *TestClient) Total(token string, kind string, options ListOptions) (result int64, err error)
- type WithTotal
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAccessDenied = model.ErrAccessDenied
View Source
var ErrBadRequest = model.ErrBadRequest
View Source
var ErrInvalidAuth = model.ErrInvalidAuth
View Source
var ErrNotFound = model.ErrNotFound
Functions ¶
Types ¶
type Client ¶
type Client interface { Query(token string, query QueryMessage) (result interface{}, code int, err error) List(token string, kind string, options ListOptions) (result []map[string]interface{}, err error) Total(token string, kind string, options ListOptions) (result int64, err error) CheckUserOrGroup(token string, kind string, resource string, rights string) (err error) GetRights(token string, kind string, resource string) (result model.ResourceRights, err error) GetTermAggregation(token string, kind string, rights string, field string, limit int) (result []model.TermAggregationResultElement, err error) }
type ConditionConfig ¶
type ConditionConfig = model.ConditionConfig
type FeatureSelection ¶
type FeatureSelection = model.FeatureSelection
type ListOptions ¶
type ListOptions = model.ListOptions
type QueryCheckIds ¶
type QueryCheckIds = model.QueryCheckIds
type QueryListCommons ¶
type QueryListCommons = model.QueryListCommons
type QueryListIds ¶
type QueryListIds = model.QueryListIds
type QueryMessage ¶
type QueryMessage = model.QueryMessage
type QueryOperationType ¶
type QueryOperationType = model.QueryOperationType
const ( QueryEqualOperation QueryOperationType = model.QueryEqualOperation QueryUnequalOperation QueryOperationType = model.QueryUnequalOperation QueryAnyValueInFeatureOperation QueryOperationType = model.QueryAnyValueInFeatureOperation )
type TestClient ¶
type TestClient struct {
// contains filtered or unexported fields
}
func NewTestClient ¶
func NewTestClient() *TestClient
func (*TestClient) CheckUserOrGroup ¶
func (*TestClient) GetRights ¶
func (this *TestClient) GetRights(_ string, resource string, id string) (result model.ResourceRights, err error)
func (*TestClient) GetTermAggregation ¶
func (this *TestClient) GetTermAggregation(token string, kind string, rights string, field string, limit int) (result []model.TermAggregationResultElement, err error)
func (*TestClient) List ¶
func (this *TestClient) List(token string, kind string, options ListOptions) (result []map[string]interface{}, err error)
func (*TestClient) Query ¶
func (this *TestClient) Query(token string, query QueryMessage) (result interface{}, code int, err error)
func (*TestClient) SetRights ¶
func (this *TestClient) SetRights(resource string, id string, rights model.ResourceRights)
func (*TestClient) Total ¶
func (this *TestClient) Total(token string, kind string, options ListOptions) (result int64, err error)
Click to show internal directories.
Click to hide internal directories.