generator

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Ellipsis = "..."

Ellipsis is the relation name for terminal subjects.

View Source
const MaxSingleLineCommentLength = 70 // 80 - the comment parts and some padding

MaxSingleLineCommentLength sets the maximum length for a comment to made single line.

Variables

This section is empty.

Functions

func GenerateCaveatSource

func GenerateCaveatSource(caveat *core.CaveatDefinition) (string, bool, error)

GenerateCaveatSource generates a DSL view of the given caveat definition.

func GenerateRelationSource

func GenerateRelationSource(relation *core.Relation) (string, error)

GenerateRelationSource generates a DSL view of the given relation definition.

func GenerateSchema

func GenerateSchema(definitions []compiler.SchemaDefinition) (string, bool, error)

GenerateSchema generates a DSL view of the given schema.

func GenerateSource

func GenerateSource(namespace *core.NamespaceDefinition) (string, bool, error)

GenerateSource generates a DSL view of the given namespace definition.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL