schema

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package schema contains schemas with additional fields id, created, updated form pocketbase.

Package schema Automatically generated by gen_structs.go, DO NOT EDIT manually

Index

Constants

View Source
const (
	CollectionEvent    = "crawl_event"
	CollectionNotifier = "crawl_notifier"
	CollectionTarget   = "crawl_target"
)

collections

Variables

This section is empty.

Functions

func ConvertType

func ConvertType(typ string) string

func ResponseMapToObject

func ResponseMapToObject(response map[string]any, object any) error

func ToPascalCase

func ToPascalCase(str string) string

func ToTitle

func ToTitle(str string) string

Types

type Base

type Base struct {
	ID             string `json:"id"`
	CollectionID   string `json:"collectionId"`
	CollectionName string `json:"collectionName"`
	Created        string `json:"created"`
	Updated        string `json:"updated"`
}

type CollectionExport

type CollectionExport struct {
	Id         string               `json:"id"`
	Name       string               `json:"name"`
	Type       string               `json:"type"`
	System     bool                 `json:"system"`
	Schema     []schema.SchemaField `json:"schema"`
	Indexes    []string             `json:"indexes"`
	ListRule   interface{}          `json:"listRule"`
	ViewRule   interface{}          `json:"viewRule"`
	CreateRule interface{}          `json:"createRule"`
	UpdateRule interface{}          `json:"updateRule"`
	DeleteRule interface{}          `json:"deleteRule"`
	Options    struct {
	} `json:"options"`
}

type CrawlEvent

type CrawlEvent struct {
	Base
	Status   string `json:"status"`
	Data     string `json:"data"`
	Checksum string `json:"checksum"`
}

type CrawlNotifier

type CrawlNotifier struct {
	Base
	NotifyMethod   string `json:"notify_method"`
	NotifyTemplate string `json:"notify_template"`
}

type CrawlTarget

type CrawlTarget struct {
	Base
	Name      string `json:"name"`
	Url       string `json:"url"`
	Selector  string `json:"selector"`
	Type      string `json:"type"`
	LastCrawl string `json:"last_crawl"`
	IsActive  bool   `json:"is_active"`
}

Jump to

Keyboard shortcuts

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