Documentation ¶
Overview ¶
Package entopenapi contains interfaces for providing phronesis as an ent extension to be used for generating openapi specs with ent
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtensionOption ¶
type ExtensionOption = func(*OpenapiExtension)
func WithSoftDeletes ¶
func WithSoftDeletes() ExtensionOption
WithSoftDeletes ensure the delete hook is still used even when soft deletes change the Op to Update
type OpenapiExtension ¶
type OpenapiExtension struct { entc.DefaultExtension // contains filtered or unexported fields }
OpenapiExtension implements entc.Extension.
func NewOpenapiExtension ¶
func NewOpenapiExtension(opts ...ExtensionOption) *OpenapiExtension
NewOpenapiExtension creates a new fga extension
func (*OpenapiExtension) Annotations ¶
func (e *OpenapiExtension) Annotations() []entc.Annotation
Annotations of the OpenapiExtension
func (*OpenapiExtension) Templates ¶
func (e *OpenapiExtension) Templates() []*gen.Template
Templates returns the generated templates which include the client and authz from mutation
Click to show internal directories.
Click to hide internal directories.