plugins

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	Content     string
	Source      string
	OriginalUrl string // TODO remove as this is confluence coupled
}

type Page

type Page struct {
	ID    string `json:"id"`
	Type  string `json:"type"`
	Title string `json:"title"`
}

type PageResponse

type PageResponse struct {
	Results PageResult `json:"page"`
}

type PageResult

type PageResult struct {
	Pages []Page `json:"results"`
}

type Plugin

type Plugin struct {
	Name string
	// TODO missing ID field
	URL   string // TODO remove as this is confluence coupled
	Email string // TODO remove as this is confluence coupled
	Token string // TODO remove as this is confluence coupled
}

func (*Plugin) RunPlugin

func (p *Plugin) RunPlugin() ([]Content, error)

type Plugins

type Plugins struct {
	// contains filtered or unexported fields
}

func NewPlugins

func NewPlugins() *Plugins

func (*Plugins) AddPlugin

func (P *Plugins) AddPlugin(name string, url string, email string, token string)

func (*Plugins) RunPlugins

func (P *Plugins) RunPlugins() ([]Content, error)

type SpaceResponse

type SpaceResponse struct {
	Results []SpaceResult `json:"results"`
	Size    int           `json:"size"`
}

type SpaceResult

type SpaceResult struct {
	ID    int               `json:"id"`
	Key   string            `json:"key"`
	Name  string            `json:"Name"`
	Links map[string]string `json:"_links"`
}

Jump to

Keyboard shortcuts

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