publisher

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCurlClient

func NewCurlClient(name, key, secret string) (shared.Publisher, error)

Types

type BrowserPublisher

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

func NewBrowserPublisher

func NewBrowserPublisher(identifier string, userDataDir string) (*BrowserPublisher, error)

func (*BrowserPublisher) CheckAuth

func (bp *BrowserPublisher) CheckAuth(reAuth bool) error

func (*BrowserPublisher) Clean added in v1.0.9

func (bp *BrowserPublisher) Clean() error

func (*BrowserPublisher) Do

func (*BrowserPublisher) Name

func (bp *BrowserPublisher) Name() string

type PluginPublisher

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

func NewPluginPublisher

func NewPluginPublisher(pc *PluginStore, developMode bool) (*PluginPublisher, error)

func (*PluginPublisher) Clean added in v1.0.9

func (pp *PluginPublisher) Clean() error

func (*PluginPublisher) Do

func (*PluginPublisher) Name

func (pp *PluginPublisher) Name() string

type PluginStore

type PluginStore struct {
	Store
	ProtocolVersion  int      `json:"version"`
	MagicCookieKey   string   `json:"magic_cookie_key"`
	MagicCookieValue string   `json:"magic_cookie_value"`
	Path             string   `json:"path"`
	Author           string   `json:"author"`
	Args             []string `json:"args,omitempty"`
}

type Store

type Store struct {
	Name    string `json:"name"`
	Key     string `json:"key,omitempty"`
	Secret  string `json:"secret,omitempty"`
	Disable bool
}

Jump to

Keyboard shortcuts

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