Documentation ¶
Index ¶
Constants ¶
View Source
const (
USER_AGENT_STRING = "IndieScrobble (indiescrobble.club)"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MicroPubConfig ¶
type MicroPubConfig struct { MediaEndpoint string `json:"media-endpoint"` PostTypes []MicroPubPostType `json:"post-types"` SyndicateTargets []MicroPubSyndicateTarget `json:"syndicate-to"` }
type MicroPubPostType ¶
type MicroPubSyndicateTarget ¶
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
Click to show internal directories.
Click to hide internal directories.