File size: 477 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
package apikey
import "github.com/target/goalert/permission"
// GQLPolicy is a GraphQL API key policy.
//
// Any changes to existing fields MUST require the version to be incremented.
//
// If new fields are added, they MUST be set to `omitempty`
// to ensure existing keys don't break.
//
// It MUST be possible to unmarshal & re-marshal the policy without changing the data for existing keys.
type GQLPolicy struct {
Version int
Query string
Role permission.Role
}
|