micropub

package
v0.0.0-...-d74a441 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	USER_AGENT_STRING = "IndieScrobble (indiescrobble.club)"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HEntry

type HEntry struct {
	Type       []string
	Properties map[string]interface{}
}

type MicroPubConfig

type MicroPubConfig struct {
	MediaEndpoint    string                    `json:"media-endpoint"`
	PostTypes        []MicroPubPostType        `json:"post-types"`
	SyndicateTargets []MicroPubSyndicateTarget `json:"syndicate-to"`
}

type MicroPubPostType

type MicroPubPostType struct {
	Name string
	Type string
}

type MicroPubSyndicateTarget

type MicroPubSyndicateTarget struct {
	Name string
	Uid  string
}

type MicropubDiscoveryService

type MicropubDiscoveryService struct {
}

func (*MicropubDiscoveryService) Discover

func (m *MicropubDiscoveryService) Discover(me string, authToken string) (*MicroPubConfig, error)

Discover endpoints for given me/domain identifier

func (*MicropubDiscoveryService) SubmitMicropub

func (m *MicropubDiscoveryService) SubmitMicropub(currentUser *models.BaseUser, payload []byte) (*http.Response, error)

Send micropub to endpoint

Jump to

Keyboard shortcuts

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