generated

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewExecutableSchema

func NewExecutableSchema(cfg Config) graphql.ExecutableSchema

NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.

Types

type Action

type Action struct {
	Resource        string                 `json:"Resource"`
	Action          XgenResourceActionType `json:"Action"`
	Route           *string                `json:"Route,omitempty"`
	SchemaFieldName *string                `json:"SchemaFieldName,omitempty"`
}

This directive is used to mark the object as a resource action

type ActionAnnotationSingle

type ActionAnnotationSingle struct {
	Name  *string `json:"name,omitempty"`
	Value *Action `json:"value,omitempty"`
}

type ActionField

type ActionField struct {
	Label       *string `json:"Label,omitempty"`
	Description *string `json:"Description,omitempty"`
	// Map field to resource field, {resource}.{field}, eg. user.id
	MapTo []string `json:"MapTo,omitempty"`
}

This directive is used to mark the object as a resource field

type ComplexityRoot

type ComplexityRoot struct {
	Action struct {
		Action          func(childComplexity int) int
		Resource        func(childComplexity int) int
		Route           func(childComplexity int) int
		SchemaFieldName func(childComplexity int) int
	}

	ActionAnnotationSingle struct {
		Name  func(childComplexity int) int
		Value func(childComplexity int) int
	}

	ActionField struct {
		Description func(childComplexity int) int
		Label       func(childComplexity int) int
		MapTo       func(childComplexity int) int
	}

	CustomTodoXgenDef struct {
		Field  func(childComplexity int) int
		Object func(childComplexity int) int
	}

	DeleteTodoXgenDef struct {
		Field  func(childComplexity int) int
		Object func(childComplexity int) int
	}

	Field struct {
		Description func(childComplexity int) int
		Label       func(childComplexity int) int
	}

	ListAction struct {
		Action          func(childComplexity int) int
		Pagination      func(childComplexity int) int
		Resource        func(childComplexity int) int
		Route           func(childComplexity int) int
		SchemaFieldName func(childComplexity int) int
		Sort            func(childComplexity int) int
	}

	ListActionAnnotationSingle struct {
		Name  func(childComplexity int) int
		Value func(childComplexity int) int
	}

	ListTodoXgenDef struct {
		Field  func(childComplexity int) int
		Object func(childComplexity int) int
	}

	Mutation struct {
		NewTodo    func(childComplexity int, input *NewTodo) int
		TodoCustom func(childComplexity int, input *CustomTodo) int
		TodoDelete func(childComplexity int, input *DeleteTodo) int
		TodoUpdate func(childComplexity int, input *UpdateTodo) int
		UserCreate func(childComplexity int, input *NewUser) int
		UserUpdate func(childComplexity int, input *UpdateUser) int
	}

	NewTodoXgenDef struct {
		Field  func(childComplexity int) int
		Object func(childComplexity int) int
	}

	NewUserXgenDef struct {
		Field  func(childComplexity int) int
		Object func(childComplexity int) int
	}

	Query struct {
		TodoBrowse        func(childComplexity int, where *ListTodo, pagination *XgenPaginationInput) int
		UserBrowse        func(childComplexity int, where *UserList, pagination *XgenPaginationInput) int
		XgenIntrospection func(childComplexity int) int
	}

	Resource struct {
		Name    func(childComplexity int) int
		Primary func(childComplexity int) int
		Route   func(childComplexity int) int
	}

	ResourceAnnotationSingle struct {
		Name  func(childComplexity int) int
		Value func(childComplexity int) int
	}

	Todo struct {
		Done func(childComplexity int) int
		ID   func(childComplexity int) int
		Text func(childComplexity int) int
		User func(childComplexity int) int
	}

	TodoXgenDef struct {
		Field  func(childComplexity int) int
		Object func(childComplexity int) int
	}

	UpdateTodoXgenDef struct {
		Field  func(childComplexity int) int
		Object func(childComplexity int) int
	}

	UpdateUserXgenDef struct {
		Field  func(childComplexity int) int
		Object func(childComplexity int) int
	}

	User struct {
		ID   func(childComplexity int) int
		Name func(childComplexity int) int
	}

	UserListXgenDef struct {
		Field  func(childComplexity int) int
		Object func(childComplexity int) int
	}

	UserXgenDef struct {
		Field  func(childComplexity int) int
		Object func(childComplexity int) int
	}

	XgenAnnotationMap struct {
		Action     func(childComplexity int) int
		ListAction func(childComplexity int) int
		Resource   func(childComplexity int) int
	}

	XgenCursorPaginationInputXgenDef struct {
		Field  func(childComplexity int) int
		Object func(childComplexity int) int
	}

	XgenFieldDef struct {
		ActionField func(childComplexity int) int
		Field       func(childComplexity int) int
	}

	XgenIntrospection struct {
		Annotation func(childComplexity int) int
		Object     func(childComplexity int) int
		Resource   func(childComplexity int) int
	}

	XgenObjectDefinition struct {
		Action     func(childComplexity int) int
		ListAction func(childComplexity int) int
		Resource   func(childComplexity int) int
	}

	XgenObjectField struct {
		Definition func(childComplexity int) int
		Name       func(childComplexity int) int
	}

	XgenObjectMap struct {
		CustomTodo                     func(childComplexity int) int
		DeleteTodo                     func(childComplexity int) int
		ListTodo                       func(childComplexity int) int
		NewTodo                        func(childComplexity int) int
		NewUser                        func(childComplexity int) int
		Todo                           func(childComplexity int) int
		UpdateTodo                     func(childComplexity int) int
		UpdateUser                     func(childComplexity int) int
		User                           func(childComplexity int) int
		UserList                       func(childComplexity int) int
		XgenCursorPaginationInput      func(childComplexity int) int
		XgenPaginationInput            func(childComplexity int) int
		XgenResourceActionType         func(childComplexity int) int
		XgenResourceDbConfigInput      func(childComplexity int) int
		XgenResourceFieldDbConfigInput func(childComplexity int) int
		XgenResourceListActionType     func(childComplexity int) int
		XgenSort                       func(childComplexity int) int
		XgenSortDirection              func(childComplexity int) int
		XgenSortInput                  func(childComplexity int) int
		XgenSortResourceConfig         func(childComplexity int) int
		XgenSortResourceConfigInput    func(childComplexity int) int
	}

	XgenPaginationInputXgenDef struct {
		Field  func(childComplexity int) int
		Object func(childComplexity int) int
	}

	XgenResourceAction struct {
		Action          func(childComplexity int) int
		Resource        func(childComplexity int) int
		Route           func(childComplexity int) int
		SchemaFieldName func(childComplexity int) int
	}

	XgenResourceActionTypeXgenDef struct {
		Field  func(childComplexity int) int
		Object func(childComplexity int) int
	}

	XgenResourceDbConfigInputXgenDef struct {
		Field  func(childComplexity int) int
		Object func(childComplexity int) int
	}

	XgenResourceDefinition struct {
		Actions    func(childComplexity int) int
		ObjectName func(childComplexity int) int
		Properties func(childComplexity int) int
	}

	XgenResourceFieldDbConfigInputXgenDef struct {
		Field  func(childComplexity int) int
		Object func(childComplexity int) int
	}

	XgenResourceListActionTypeXgenDef struct {
		Field  func(childComplexity int) int
		Object func(childComplexity int) int
	}

	XgenResourceMap struct {
		Todo func(childComplexity int) int
		User func(childComplexity int) int
	}

	XgenResourceProperty struct {
		Name    func(childComplexity int) int
		Primary func(childComplexity int) int
		Route   func(childComplexity int) int
	}

	XgenSort struct {
		By        func(childComplexity int) int
		Direction func(childComplexity int) int
	}

	XgenSortDirectionXgenDef struct {
		Field  func(childComplexity int) int
		Object func(childComplexity int) int
	}

	XgenSortInputXgenDef struct {
		Field  func(childComplexity int) int
		Object func(childComplexity int) int
	}

	XgenSortResourceConfig struct {
		Default  func(childComplexity int) int
		Disabled func(childComplexity int) int
	}

	XgenSortResourceConfigInputXgenDef struct {
		Field  func(childComplexity int) int
		Object func(childComplexity int) int
	}

	XgenSortResourceConfigXgenDef struct {
		Field  func(childComplexity int) int
		Object func(childComplexity int) int
	}

	XgenSortXgenDef struct {
		Field  func(childComplexity int) int
		Object func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type CustomTodo

type CustomTodo struct {
	Text    string `json:"text"`
	UserID  int    `json:"userId"`
	Code    string `json:"code"`
	Custom  string `json:"custom"`
	Custom2 string `json:"custom2"`
}

func (*CustomTodo) ToTodoModel

func (ra *CustomTodo) ToTodoModel(ctx context.Context) (*Todo, error)

ToTodoModel Map CustomTodo to Todo model

type CustomTodoXgenDef

type CustomTodoXgenDef struct {
	Object *XgenObjectDefinition `json:"object,omitempty"`
	Field  []*XgenObjectField    `json:"field"`
}

type DeleteTodo

type DeleteTodo struct {
	ID int `json:"id"`
}

func (*DeleteTodo) ToTodoModel

func (ra *DeleteTodo) ToTodoModel(ctx context.Context) (*Todo, error)

ToTodoModel Map DeleteTodo to Todo model

type DeleteTodoXgenDef

type DeleteTodoXgenDef struct {
	Object *XgenObjectDefinition `json:"object,omitempty"`
	Field  []*XgenObjectField    `json:"field"`
}

type DirectiveRoot

type DirectiveRoot struct {
	Action                  func(ctx context.Context, obj interface{}, next graphql.Resolver, resource string, action XgenResourceActionType, route *string, schemaFieldName *string) (res interface{}, err error)
	ActionField             func(ctx context.Context, obj interface{}, next graphql.Resolver, label *string, description *string, mapTo []string) (res interface{}, err error)
	ExcludeArgumentFromType func(ctx context.Context, obj interface{}, next graphql.Resolver, exclude *bool) (res interface{}, err error)
	Field                   func(ctx context.Context, obj interface{}, next graphql.Resolver, label *string, description *string, db *XgenResourceFieldDbConfigInput) (res interface{}, err error)
	ListAction              func(ctx context.Context, obj interface{}, next graphql.Resolver, resource string, action XgenResourceListActionType, route *string, pagination *bool, sort *XgenSortResourceConfigInput, schemaFieldName *string) (res interface{}, err error)
	Resource                func(ctx context.Context, obj interface{}, next graphql.Resolver, name string, route *string, primary *bool, db *XgenResourceDbConfigInput) (res interface{}, err error)
	ToObjectType            func(ctx context.Context, obj interface{}, next graphql.Resolver, typeArg string) (res interface{}, err error)
	XgenCustomConf          func(ctx context.Context, obj interface{}, next graphql.Resolver, asd *string) (res interface{}, err error)
}

type Field

type Field struct {
	Label       *string `json:"Label,omitempty"`
	Description *string `json:"Description,omitempty"`
}

This directive is used to mark the object as a resource field

type ListAction

type ListAction struct {
	Resource        string                     `json:"Resource"`
	Action          XgenResourceListActionType `json:"Action"`
	Route           *string                    `json:"Route,omitempty"`
	Pagination      *bool                      `json:"Pagination,omitempty"`
	Sort            *XgenSortResourceConfig    `json:"Sort,omitempty"`
	SchemaFieldName *string                    `json:"SchemaFieldName,omitempty"`
}

This directive is used to mark the object as a resource list action

type ListActionAnnotationSingle

type ListActionAnnotationSingle struct {
	Name  *string     `json:"name,omitempty"`
	Value *ListAction `json:"value,omitempty"`
}

type ListTodo

type ListTodo struct {
	ID     int    `json:"id" mapto:""`
	Text   string `json:"text" mapto:""`
	Done   bool   `json:"done" mapto:""`
	UserID int    `json:"userId" mapto:""`
	Code   string `json:"code" mapto:""`
}

func (*ListTodo) ToTodoModel

func (ra *ListTodo) ToTodoModel(ctx context.Context) (*Todo, error)

ToTodoModel Map ListTodo to Todo model

type ListTodoXgenDef

type ListTodoXgenDef struct {
	Object *XgenObjectDefinition `json:"object,omitempty"`
	Field  []*XgenObjectField    `json:"field"`
}

type MutationResolver

type MutationResolver interface {
	TodoUpdate(ctx context.Context, input *UpdateTodo) (*Todo, error)
	UserCreate(ctx context.Context, input *NewUser) (*User, error)
	TodoDelete(ctx context.Context, input *DeleteTodo) (*Todo, error)
	TodoCustom(ctx context.Context, input *CustomTodo) (*Todo, error)
	NewTodo(ctx context.Context, input *NewTodo) (*Todo, error)
	UserUpdate(ctx context.Context, input *UpdateUser) (*User, error)
}

type NewTodo

type NewTodo struct {
	Text   string `json:"text" mapto:""`
	UserID int    `json:"userId" mapto:""`
	Code   string `json:"code" mapto:""`
}

func (*NewTodo) ToTodoModel

func (ra *NewTodo) ToTodoModel(ctx context.Context) (*Todo, error)

ToTodoModel Map NewTodo to Todo model

type NewTodoXgenDef

type NewTodoXgenDef struct {
	Object *XgenObjectDefinition `json:"object,omitempty"`
	Field  []*XgenObjectField    `json:"field"`
}

type NewUser

type NewUser struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

func (*NewUser) ToUserModel

func (ra *NewUser) ToUserModel(ctx context.Context) (*User, error)

ToUserModel Map NewUser to User model

type NewUserXgenDef

type NewUserXgenDef struct {
	Object *XgenObjectDefinition `json:"object,omitempty"`
	Field  []*XgenObjectField    `json:"field"`
}

type QueryResolver

type QueryResolver interface {
	XgenIntrospection(ctx context.Context) (*XgenIntrospection, error)
	TodoBrowse(ctx context.Context, where *ListTodo, pagination *XgenPaginationInput) ([]*Todo, error)
	UserBrowse(ctx context.Context, where *UserList, pagination *XgenPaginationInput) ([]*User, error)
}

type ResolverRoot

type ResolverRoot interface {
	Mutation() MutationResolver
	Query() QueryResolver
}

type Resource

type Resource struct {
	Name    string  `json:"Name"`
	Route   *string `json:"Route,omitempty"`
	Primary *bool   `json:"Primary,omitempty"`
}

This directive is used to mark the object as a resource

type ResourceAnnotationSingle

type ResourceAnnotationSingle struct {
	Name  *string   `json:"name,omitempty"`
	Value *Resource `json:"value,omitempty"`
}

type Todo

type Todo struct {
	ID   int    `json:"id"`
	Text string `json:"text"`
	Done bool   `json:"done"`
	User *User  `json:"user"`
}

type TodoSingleSortInput

type TodoSingleSortInput struct {
	Field     TodoSortableField  `json:"field"`
	Direction *XgenSortDirection `json:"direction,omitempty"`
}

type TodoSortInput

type TodoSortInput struct {
	By []*TodoSingleSortInput `json:"by,omitempty"`
}

type TodoSortableField

type TodoSortableField string
const (
	TodoSortableFieldID   TodoSortableField = "id"
	TodoSortableFieldText TodoSortableField = "text"
	TodoSortableFieldDone TodoSortableField = "done"
	TodoSortableFieldUser TodoSortableField = "user"
)

func (TodoSortableField) IsValid

func (e TodoSortableField) IsValid() bool

func (TodoSortableField) MarshalGQL

func (e TodoSortableField) MarshalGQL(w io.Writer)

func (TodoSortableField) String

func (e TodoSortableField) String() string

func (*TodoSortableField) UnmarshalGQL

func (e *TodoSortableField) UnmarshalGQL(v interface{}) error

type TodoXgenDef

type TodoXgenDef struct {
	Object *XgenObjectDefinition `json:"object,omitempty"`
	Field  []*XgenObjectField    `json:"field"`
}

type UpdateTodo

type UpdateTodo struct {
	Text   string `json:"text"`
	UserID int    `json:"userId"`
	Code   string `json:"code"`
}

func (*UpdateTodo) ToTodoModel

func (ra *UpdateTodo) ToTodoModel(ctx context.Context) (*Todo, error)

ToTodoModel Map UpdateTodo to Todo model

type UpdateTodoXgenDef

type UpdateTodoXgenDef struct {
	Object *XgenObjectDefinition `json:"object,omitempty"`
	Field  []*XgenObjectField    `json:"field"`
}

type UpdateUser

type UpdateUser struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

func (*UpdateUser) ToUserModel

func (ra *UpdateUser) ToUserModel(ctx context.Context) (*User, error)

ToUserModel Map UpdateUser to User model

type UpdateUserXgenDef

type UpdateUserXgenDef struct {
	Object *XgenObjectDefinition `json:"object,omitempty"`
	Field  []*XgenObjectField    `json:"field"`
}

type User

type User struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type UserList

type UserList struct {
	ID   *int    `json:"id,omitempty" mapto:""`
	Name *string `json:"name,omitempty" mapto:""`
}

func (*UserList) ToUserModel

func (ra *UserList) ToUserModel(ctx context.Context) (*User, error)

ToUserModel Map UserList to User model

type UserListXgenDef

type UserListXgenDef struct {
	Object *XgenObjectDefinition `json:"object,omitempty"`
	Field  []*XgenObjectField    `json:"field"`
}

type UserSingleSortInput

type UserSingleSortInput struct {
	Field     UserSortableField  `json:"field"`
	Direction *XgenSortDirection `json:"direction,omitempty"`
}

type UserSortInput

type UserSortInput struct {
	By []*UserSingleSortInput `json:"by,omitempty"`
}

type UserSortableField

type UserSortableField string
const (
	UserSortableFieldID   UserSortableField = "id"
	UserSortableFieldName UserSortableField = "name"
)

func (UserSortableField) IsValid

func (e UserSortableField) IsValid() bool

func (UserSortableField) MarshalGQL

func (e UserSortableField) MarshalGQL(w io.Writer)

func (UserSortableField) String

func (e UserSortableField) String() string

func (*UserSortableField) UnmarshalGQL

func (e *UserSortableField) UnmarshalGQL(v interface{}) error

type UserXgenDef

type UserXgenDef struct {
	Object *XgenObjectDefinition `json:"object,omitempty"`
	Field  []*XgenObjectField    `json:"field"`
}

type XgenAnnotationMap

type XgenAnnotationMap struct {
	Resource   []*ResourceAnnotationSingle   `json:"Resource"`
	ListAction []*ListActionAnnotationSingle `json:"ListAction"`
	Action     []*ActionAnnotationSingle     `json:"Action"`
}

type XgenCursorPaginationInput

type XgenCursorPaginationInput struct {
	First  int     `json:"first"`
	After  *string `json:"after,omitempty"`
	Last   int     `json:"last"`
	Before *string `json:"before,omitempty"`
}

type XgenCursorPaginationInputXgenDef

type XgenCursorPaginationInputXgenDef struct {
	Object *XgenObjectDefinition `json:"object,omitempty"`
	Field  []*XgenObjectField    `json:"field"`
}

type XgenFieldDef

type XgenFieldDef struct {
	Field       *Field       `json:"Field,omitempty"`
	ActionField *ActionField `json:"ActionField,omitempty"`
}

type XgenIntrospection

type XgenIntrospection struct {
	Annotation *XgenAnnotationMap `json:"annotation,omitempty"`
	Object     *XgenObjectMap     `json:"object,omitempty"`
	Resource   *XgenResourceMap   `json:"resource,omitempty"`
}

func XgenIntrospectionValues

func XgenIntrospectionValues() (*XgenIntrospection, error)

XgenIntrospection is the resolver for the XgenIntrospection field.

type XgenObjectDefinition

type XgenObjectDefinition struct {
	Resource   *Resource   `json:"Resource,omitempty"`
	ListAction *ListAction `json:"ListAction,omitempty"`
	Action     *Action     `json:"Action,omitempty"`
}

type XgenObjectField

type XgenObjectField struct {
	Name       *string       `json:"name,omitempty"`
	Definition *XgenFieldDef `json:"definition,omitempty"`
}

type XgenObjectMap

type XgenObjectMap struct {
	NewUser                        *NewUserXgenDef                        `json:"NewUser,omitempty"`
	Todo                           *TodoXgenDef                           `json:"Todo,omitempty"`
	XgenResourceActionType         *XgenResourceActionTypeXgenDef         `json:"XgenResourceActionType,omitempty"`
	XgenSort                       *XgenSortXgenDef                       `json:"XgenSort,omitempty"`
	XgenSortDirection              *XgenSortDirectionXgenDef              `json:"XgenSortDirection,omitempty"`
	UserList                       *UserListXgenDef                       `json:"UserList,omitempty"`
	UpdateTodo                     *UpdateTodoXgenDef                     `json:"UpdateTodo,omitempty"`
	XgenResourceListActionType     *XgenResourceListActionTypeXgenDef     `json:"XgenResourceListActionType,omitempty"`
	XgenSortInput                  *XgenSortInputXgenDef                  `json:"XgenSortInput,omitempty"`
	XgenCursorPaginationInput      *XgenCursorPaginationInputXgenDef      `json:"XgenCursorPaginationInput,omitempty"`
	User                           *UserXgenDef                           `json:"User,omitempty"`
	XgenSortResourceConfig         *XgenSortResourceConfigXgenDef         `json:"XgenSortResourceConfig,omitempty"`
	XgenResourceFieldDbConfigInput *XgenResourceFieldDbConfigInputXgenDef `json:"XgenResourceFieldDbConfigInput,omitempty"`
	ListTodo                       *ListTodoXgenDef                       `json:"ListTodo,omitempty"`
	UpdateUser                     *UpdateUserXgenDef                     `json:"UpdateUser,omitempty"`
	XgenPaginationInput            *XgenPaginationInputXgenDef            `json:"XgenPaginationInput,omitempty"`
	DeleteTodo                     *DeleteTodoXgenDef                     `json:"DeleteTodo,omitempty"`
	XgenSortResourceConfigInput    *XgenSortResourceConfigInputXgenDef    `json:"XgenSortResourceConfigInput,omitempty"`
	CustomTodo                     *CustomTodoXgenDef                     `json:"CustomTodo,omitempty"`
	XgenResourceDbConfigInput      *XgenResourceDbConfigInputXgenDef      `json:"XgenResourceDbConfigInput,omitempty"`
	NewTodo                        *NewTodoXgenDef                        `json:"NewTodo,omitempty"`
}

type XgenPaginationInput

type XgenPaginationInput struct {
	Page int `json:"page"`
	Size int `json:"size"`
}

type XgenPaginationInputXgenDef

type XgenPaginationInputXgenDef struct {
	Object *XgenObjectDefinition `json:"object,omitempty"`
	Field  []*XgenObjectField    `json:"field"`
}

type XgenResourceAction

type XgenResourceAction struct {
	Resource        string                 `json:"Resource"`
	Action          XgenResourceActionType `json:"Action"`
	Route           *string                `json:"Route,omitempty"`
	SchemaFieldName *string                `json:"SchemaFieldName,omitempty"`
}

type XgenResourceActionType

type XgenResourceActionType string
const (
	XgenResourceActionTypeCreateMutation XgenResourceActionType = "CREATE_MUTATION"
	XgenResourceActionTypeReadQuery      XgenResourceActionType = "READ_QUERY"
	XgenResourceActionTypeUpdateMutation XgenResourceActionType = "UPDATE_MUTATION"
	XgenResourceActionTypeDeleteMutation XgenResourceActionType = "DELETE_MUTATION"
	XgenResourceActionTypeCustomMutation XgenResourceActionType = "CUSTOM_MUTATION"
)

func (XgenResourceActionType) IsValid

func (e XgenResourceActionType) IsValid() bool

func (XgenResourceActionType) MarshalGQL

func (e XgenResourceActionType) MarshalGQL(w io.Writer)

func (XgenResourceActionType) String

func (e XgenResourceActionType) String() string

func (*XgenResourceActionType) UnmarshalGQL

func (e *XgenResourceActionType) UnmarshalGQL(v interface{}) error

type XgenResourceActionTypeXgenDef

type XgenResourceActionTypeXgenDef struct {
	Object *XgenObjectDefinition `json:"object,omitempty"`
	Field  []*XgenObjectField    `json:"field"`
}

type XgenResourceDbConfigInput

type XgenResourceDbConfigInput struct {
	Table *string `json:"Table,omitempty"`
}

type XgenResourceDbConfigInputXgenDef

type XgenResourceDbConfigInputXgenDef struct {
	Object *XgenObjectDefinition `json:"object,omitempty"`
	Field  []*XgenObjectField    `json:"field"`
}

type XgenResourceDefinition

type XgenResourceDefinition struct {
	ObjectName *string               `json:"objectName,omitempty"`
	Properties *XgenResourceProperty `json:"properties,omitempty"`
	Actions    []*XgenResourceAction `json:"actions"`
}

type XgenResourceFieldDbConfigInput

type XgenResourceFieldDbConfigInput struct {
	Column                 *string `json:"Column,omitempty"`
	PrimaryKey             *bool   `json:"PrimaryKey,omitempty"`
	AutoIncrement          *bool   `json:"AutoIncrement,omitempty"`
	Unique                 *bool   `json:"Unique,omitempty"`
	NotNull                *bool   `json:"NotNull,omitempty"`
	Index                  *bool   `json:"Index,omitempty"`
	UniqueIndex            *bool   `json:"UniqueIndex,omitempty"`
	Size                   *int    `json:"Size,omitempty"`
	Precision              *int    `json:"Precision,omitempty"`
	Type                   *string `json:"Type,omitempty"`
	Scale                  *int    `json:"Scale,omitempty"`
	AutoIncrementIncrement *int    `json:"AutoIncrementIncrement,omitempty"`
}

type XgenResourceFieldDbConfigInputXgenDef

type XgenResourceFieldDbConfigInputXgenDef struct {
	Object *XgenObjectDefinition `json:"object,omitempty"`
	Field  []*XgenObjectField    `json:"field"`
}

type XgenResourceListActionType

type XgenResourceListActionType string
const (
	XgenResourceListActionTypeBrowseQuery         XgenResourceListActionType = "BROWSE_QUERY"
	XgenResourceListActionTypeBatchDeleteMutation XgenResourceListActionType = "BATCH_DELETE_MUTATION"
)

func (XgenResourceListActionType) IsValid

func (e XgenResourceListActionType) IsValid() bool

func (XgenResourceListActionType) MarshalGQL

func (e XgenResourceListActionType) MarshalGQL(w io.Writer)

func (XgenResourceListActionType) String

func (*XgenResourceListActionType) UnmarshalGQL

func (e *XgenResourceListActionType) UnmarshalGQL(v interface{}) error

type XgenResourceListActionTypeXgenDef

type XgenResourceListActionTypeXgenDef struct {
	Object *XgenObjectDefinition `json:"object,omitempty"`
	Field  []*XgenObjectField    `json:"field"`
}

type XgenResourceMap

type XgenResourceMap struct {
	Todo *XgenResourceDefinition `json:"todo,omitempty"`
	User *XgenResourceDefinition `json:"user,omitempty"`
}

type XgenResourceProperty

type XgenResourceProperty struct {
	Name    string  `json:"Name"`
	Route   *string `json:"Route,omitempty"`
	Primary *bool   `json:"Primary,omitempty"`
}

type XgenSort

type XgenSort struct {
	By        string             `json:"by"`
	Direction *XgenSortDirection `json:"direction,omitempty"`
}

type XgenSortDirection

type XgenSortDirection string
const (
	XgenSortDirectionAsc  XgenSortDirection = "ASC"
	XgenSortDirectionDesc XgenSortDirection = "DESC"
)

func (XgenSortDirection) IsValid

func (e XgenSortDirection) IsValid() bool

func (XgenSortDirection) MarshalGQL

func (e XgenSortDirection) MarshalGQL(w io.Writer)

func (XgenSortDirection) String

func (e XgenSortDirection) String() string

func (*XgenSortDirection) UnmarshalGQL

func (e *XgenSortDirection) UnmarshalGQL(v interface{}) error

type XgenSortDirectionXgenDef

type XgenSortDirectionXgenDef struct {
	Object *XgenObjectDefinition `json:"object,omitempty"`
	Field  []*XgenObjectField    `json:"field"`
}

type XgenSortInput

type XgenSortInput struct {
	By        string             `json:"by"`
	Direction *XgenSortDirection `json:"direction,omitempty"`
}

type XgenSortInputXgenDef

type XgenSortInputXgenDef struct {
	Object *XgenObjectDefinition `json:"object,omitempty"`
	Field  []*XgenObjectField    `json:"field"`
}

type XgenSortResourceConfig

type XgenSortResourceConfig struct {
	// If set to true, the sort will be disabled.
	Disabled *bool       `json:"Disabled,omitempty"`
	Default  []*XgenSort `json:"Default,omitempty"`
}

type XgenSortResourceConfigInput

type XgenSortResourceConfigInput struct {
	// If set to true, the sort will be disabled.
	Disabled *bool            `json:"Disabled,omitempty"`
	Default  []*XgenSortInput `json:"Default,omitempty"`
}

type XgenSortResourceConfigInputXgenDef

type XgenSortResourceConfigInputXgenDef struct {
	Object *XgenObjectDefinition `json:"object,omitempty"`
	Field  []*XgenObjectField    `json:"field"`
}

type XgenSortResourceConfigXgenDef

type XgenSortResourceConfigXgenDef struct {
	Object *XgenObjectDefinition `json:"object,omitempty"`
	Field  []*XgenObjectField    `json:"field"`
}

type XgenSortXgenDef

type XgenSortXgenDef struct {
	Object *XgenObjectDefinition `json:"object,omitempty"`
	Field  []*XgenObjectField    `json:"field"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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