NewWalker is a constructor for the Walker struct
(schema *base.SchemaDefinition)
| 17 | |
| 18 | // NewWalker is a constructor for the Walker struct |
| 19 | func NewWalker(schema *base.SchemaDefinition) *Walker { |
| 20 | return &Walker{ |
| 21 | schema: schema, |
| 22 | visited: make(map[string]struct{}), |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | // Walk traverses the schema based on entity type and permission |
| 27 | func (w *Walker) Walk( |