Documentation
¶
Index ¶
Constants ¶
View Source
const RouteBase = "/expand"
Variables ¶
View Source
var (
ErrUnknownNodeType = errors.New("unknown node type")
)
Functions ¶
func NewHandler ¶
func NewHandler(d handlerDependencies) *handler
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func NewEngine ¶
func NewEngine(d EngineDependencies) *Engine
type EngineDependencies ¶
type EngineDependencies interface { relationtuple.ManagerProvider }
type EngineProvider ¶
type EngineProvider interface {
ExpandEngine() *Engine
}
type NodeType ¶
type NodeType string
swagger:enum NodeType
func NodeTypeFromProto ¶
func (*NodeType) UnmarshalJSON ¶
type Tree ¶
type Tree struct { // required: true Type NodeType `json:"type"` // required: true Subject relationtuple.Subject `json:"subject"` Children []*Tree `json:"children,omitempty"` }
swagger:model expandTree
func (*Tree) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.