dtable

package
v0.0.0-...-8c2001a Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractUserOptions

func ExtractUserOptions(cabhub store.CabinetHub, coreHub store.CoreHub, dynhub dyndb.DataHub) func(tenantId string, auto bool, userData []byte, schemaData *xbprint.NewTableGroup) (*DataGroupRequest, error)

func New

func New(app xtypes.App) *dtabeInstancer

func Validate

func Validate(schema *xbprint.NewTableGroup) error

Types

type DataGroupRequest

type DataGroupRequest struct {
	DyndbSource   string                      `json:"dyndb_source,omitempty"`
	GroupName     string                      `json:"group_name,omitempty"`
	GroupSlug     string                      `json:"group_slug,omitempty"`
	CabinetSource string                      `json:"cabinet_source,omitempty"`
	CabinetFolder string                      `json:"cabinet_folder,omitempty"`
	SeedType      string                      `json:"seed_source,omitempty"`
	TableOptions  map[string]*DataTableOption `json:"table_options,omitempty"`
	UserId        string                      `json:"-"`
}

type DataGroupResponse

type DataGroupResponse struct {
	Source     string            `json:"source,omitempty"`
	GroupSlug  string            `json:"gslug,omitempty"`
	GroupName  string            `json:"name,omitempty"`
	SeedError  string            `json:"seed_error,omitempty"`
	ViewErrors map[string]string `json:"view_errors,omitempty"`
}

type DataTableOption

type DataTableOption struct {
	Name         string `json:"name,omitempty"`
	Slug         string `json:"slug,omitempty"`
	ActivityType string `json:"activity_type,omitempty"`
	SyncType     string `json:"sync_type,omitempty"`
	Seed         bool   `json:"seed,omitempty"`
}

type DataTableRequest

type DataTableRequest struct {
	Name         string `json:"name,omitempty"`
	Slug         string `json:"slug,omitempty"`
	ActivityType string `json:"activity_type,omitempty"`
	SyncType     string `json:"sync_type,omitempty"`
	SeedType     string `json:"seed_source,omitempty"`
	Seed         bool   `json:"seed,omitempty"`
}

type DataTableResponse

type DataTableResponse struct {
	Source     string            `json:"source,omitempty"`
	GroupSlug  string            `json:"gslug,omitempty"`
	GroupName  string            `json:"gname,omitempty"`
	TableSlug  string            `json:"tslug,omitempty"`
	TableName  string            `json:"tname,omitempty"`
	SeedError  string            `json:"seed_error,omitempty"`
	ViewErrors map[string]string `json:"view_errors,omitempty"`
}

Jump to

Keyboard shortcuts

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