File: interfaces.go

package info (click to toggle)
golang-github-openfga-go-sdk 0.6.5-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 1,960 kB
  • sloc: makefile: 13
file content (23 lines) | stat: -rw-r--r-- 845 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package telemetry

/*
CheckRequestTupleKeyInterface is a simplified interface that defines the methods the CheckRequestTupleKey struct implements, relevant to the context of the telemetry package.
*/
type CheckRequestTupleKeyInterface interface {
	GetUser() *string
}

/*
CheckRequestInterface is a simplified interface that defines the methods the CheckRequest struct implements, relevant to the context of the telemetry package.
*/
type CheckRequestInterface interface {
	GetTupleKey() CheckRequestTupleKeyInterface
	RequestAuthorizationModelIdInterface
}

/*
RequestAuthorizationModelIdInterface is a generic interface that defines the GetAuthorizationModelId() method a Request struct implements, relevant to the context of the telemetry package.
*/
type RequestAuthorizationModelIdInterface interface {
	GetAuthorizationModelId() *string
}