platform

package
v1.29.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCollectionMetas

func GetCollectionMetas() map[string]CollectionMeta

func InitAPI

func InitAPI()

Types

type CollectionMeta

type CollectionMeta struct {
	//collection name
	Name string `json:"name"`
	//permissions required to visit collection
	RequirePermission map[string][]string `json:"require_permission"`
	//use for orm.GetIndexName to get real index name
	MatchObject interface{} `json:"match_object"`
	//configure GetSearchRequestBodyFilter to filter search request dsl
	GetSearchRequestBodyFilter SearchRequestBodyFilter
}

CollectionMeta includes information about how to visit backend index

type PlatformAPI

type PlatformAPI struct {
	core.Handler
}

type SearchRequestBodyFilter

type SearchRequestBodyFilter func(api *PlatformAPI, req *http.Request) (util.MapStr, bool)

Jump to

Keyboard shortcuts

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