db

package
v1.11.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NextPage

type NextPage struct {
	Name   string `json:"name"`
	NextID string `json:"nextId"`
}

NextPage represents a pagination header value.

type NotFoundError

type NotFoundError struct {
	Err error
}

NotFoundError represents a document not found error.

func (NotFoundError) Error

func (e NotFoundError) Error() string

Error stringifies the error.

func (NotFoundError) Unwrap

func (e NotFoundError) Unwrap() error

Unwrap returns the underlying error.

type Pagination

type Pagination struct {
	Start string
	Size  int
}

Pagination holds information for requesting page.

type Plugin

type Plugin struct {
	ID            string                 `json:"id,omitempty" bson:"id"`
	Name          string                 `json:"name,omitempty" bson:"name"`
	DisplayName   string                 `json:"displayName,omitempty" bson:"displayName"`
	Runtime       string                 `json:"runtime,omitempty" bson:"runtime"`
	WasmPath      string                 `json:"wasmPath,omitempty" bson:"wasmPath"`
	Author        string                 `json:"author,omitempty" bson:"author"`
	Type          string                 `json:"type,omitempty" bson:"type"`
	Import        string                 `json:"import,omitempty" bson:"import"`
	Compatibility string                 `json:"compatibility,omitempty" bson:"compatibility"`
	Summary       string                 `json:"summary,omitempty" bson:"summary"`
	IconURL       string                 `json:"iconUrl,omitempty" bson:"iconUrl"`
	BannerURL     string                 `json:"bannerUrl,omitempty" bson:"bannerUrl"`
	Readme        string                 `json:"readme,omitempty" bson:"readme"`
	LatestVersion string                 `json:"latestVersion,omitempty" bson:"latestVersion"`
	Versions      []string               `json:"versions,omitempty" bson:"versions"`
	Stars         int                    `json:"stars,omitempty" bson:"stars"`
	Snippet       map[string]interface{} `json:"snippet,omitempty" bson:"snippet"`
	CreatedAt     time.Time              `json:"createdAt" bson:"createdAt"`
	Disabled      bool                   `json:"disabled,omitempty" bson:"disabled"`
	Hidden        bool                   `json:"hidden,omitempty" bson:"hidden"`
}

Plugin The plugin information.

type PluginHash

type PluginHash struct {
	Name string `json:"name,omitempty" bson:"name"`
	Hash string `json:"hash,omitempty" bson:"hash"`
}

PluginHash The plugin hash tuple.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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