mirror of
https://github.com/mainflux/mainflux.git
synced 2025-05-02 22:17:10 +08:00
54 lines
734 B
Go
54 lines
734 B
Go
![]() |
// Copyright (c) Mainflux
|
||
|
// SPDX-License-Identifier: Apache-2.0
|
||
|
|
||
|
package grpc
|
||
|
|
||
|
type identityRes struct {
|
||
|
id string
|
||
|
}
|
||
|
|
||
|
type issueRes struct {
|
||
|
accessToken string
|
||
|
refreshToken string
|
||
|
accessType string
|
||
|
}
|
||
|
|
||
|
type authorizeRes struct {
|
||
|
id string
|
||
|
authorized bool
|
||
|
}
|
||
|
|
||
|
type addPolicyRes struct {
|
||
|
authorized bool
|
||
|
}
|
||
|
|
||
|
type deletePolicyRes struct {
|
||
|
deleted bool
|
||
|
}
|
||
|
|
||
|
type listObjectsRes struct {
|
||
|
policies []string
|
||
|
nextPageToken string
|
||
|
}
|
||
|
|
||
|
type countObjectsRes struct {
|
||
|
count int
|
||
|
}
|
||
|
|
||
|
type listSubjectsRes struct {
|
||
|
policies []string
|
||
|
nextPageToken string
|
||
|
}
|
||
|
|
||
|
type countSubjectsRes struct {
|
||
|
count int
|
||
|
}
|
||
|
|
||
|
type membersRes struct {
|
||
|
total uint64
|
||
|
offset uint64
|
||
|
limit uint64
|
||
|
groupType string
|
||
|
members []string
|
||
|
}
|