simpletree

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachTo added in v0.0.4

func AttachTo(item *ogen.Operation)

AttachTo adds the `recurse` parameter to the path item.

func RecurseParam added in v0.0.4

func RecurseParam() *ogen.Parameter

RecurseParam returns the `recurse` parameter.

func RemoveEdges

func RemoveEdges(op *ogen.Operation)

RemoveEdges removes the `parent` and `children` fields from the OpenAPI schema.

func RemoveFields

func RemoveFields(props []ogen.Property, fields ...string) []ogen.Property

RemoveFields removes the specified fields from the properties.

Types

type ParentI16Mixin

type ParentI16Mixin[T ent.Interface] struct {
	ent.Schema
}

ParentI16Mixin is a mixin for int16 primary key.

func (ParentI16Mixin[T]) Edges

func (ParentI16Mixin[T]) Edges() []ent.Edge

func (ParentI16Mixin[T]) Fields

func (ParentI16Mixin[T]) Fields() []ent.Field

type ParentI32Mixin

type ParentI32Mixin[T ent.Interface] struct {
	ent.Schema
}

ParentI32Mixin is a mixin for int32 primary key.

func (ParentI32Mixin[T]) Edges

func (ParentI32Mixin[T]) Edges() []ent.Edge

func (ParentI32Mixin[T]) Fields

func (ParentI32Mixin[T]) Fields() []ent.Field

type ParentI64Mixin

type ParentI64Mixin[T ent.Interface] struct {
	ent.Schema
}

ParentI64Mixin is a mixin for int64 primary key.

func (ParentI64Mixin[T]) Edges

func (ParentI64Mixin[T]) Edges() []ent.Edge

func (ParentI64Mixin[T]) Fields

func (ParentI64Mixin[T]) Fields() []ent.Field

type ParentI8Mixin

type ParentI8Mixin[T ent.Interface] struct {
	ent.Schema
}

ParentI8Mixin is a mixin for int8 primary key.

func (ParentI8Mixin[T]) Edges

func (ParentI8Mixin[T]) Edges() []ent.Edge

func (ParentI8Mixin[T]) Fields

func (ParentI8Mixin[T]) Fields() []ent.Field

type ParentStringMixin

type ParentStringMixin[T ent.Interface] struct {
	ent.Schema
}

ParentStringMixin is a mixin for string primary key.

func (ParentStringMixin[T]) Edges

func (ParentStringMixin[T]) Edges() []ent.Edge

func (ParentStringMixin[T]) Fields

func (ParentStringMixin[T]) Fields() []ent.Field

type ParentU16Mixin

type ParentU16Mixin[T ent.Interface] struct {
	ent.Schema
}

ParentU16Mixin is a mixin for uint16 primary key.

func (ParentU16Mixin[T]) Edges

func (ParentU16Mixin[T]) Edges() []ent.Edge

func (ParentU16Mixin[T]) Fields

func (ParentU16Mixin[T]) Fields() []ent.Field

type ParentU32Mixin

type ParentU32Mixin[T ent.Interface] struct {
	ent.Schema
}

ParentU32Mixin is a mixin for uint32 primary key.

func (ParentU32Mixin[T]) Edges

func (ParentU32Mixin[T]) Edges() []ent.Edge

func (ParentU32Mixin[T]) Fields

func (ParentU32Mixin[T]) Fields() []ent.Field

type ParentU64Mixin

type ParentU64Mixin[T ent.Interface] struct {
	ent.Schema
}

ParentU64Mixin is a mixin for uint64 primary key.

func (ParentU64Mixin[T]) Edges

func (ParentU64Mixin[T]) Edges() []ent.Edge

func (ParentU64Mixin[T]) Fields

func (ParentU64Mixin[T]) Fields() []ent.Field

type ParentU8Mixin

type ParentU8Mixin[T ent.Interface] struct {
	ent.Schema
}

ParentU8Mixin is a mixin for uint8 primary key.

func (ParentU8Mixin[T]) Edges

func (ParentU8Mixin[T]) Edges() []ent.Edge

func (ParentU8Mixin[T]) Fields

func (ParentU8Mixin[T]) Fields() []ent.Field

type ParentUuidMixin

type ParentUuidMixin[T ent.Interface] struct {
	ent.Schema
}

ParentUuidMixin is a mixin for UUID primary key.

func (ParentUuidMixin[T]) Edges

func (ParentUuidMixin[T]) Edges() []ent.Edge

func (ParentUuidMixin[T]) Fields

func (ParentUuidMixin[T]) Fields() []ent.Field

Jump to

Keyboard shortcuts

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