plog

package
v0.0.0-...-c9f6891 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package plog offers a simple mean to share pvr repos with others. Similar to a blog you post your pvr repo with a title, some description text and tags/sections.

Every Pantahub user gets a plog he can use at his discretion.

AccessControl is either private or public. More advanced ACL features will be available later or for users of organization accounts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	API *rest.Api
	// contains filtered or unexported fields
}

App plog rest application

func New

func New(jwtMiddleware *jwt.JWTMiddleware, mongoClient *mongo.Client) *App

New creates a new plog rest application

type Post

type Post struct {
	ID          primitive.ObjectID     `json:"id" bson:"_id"`
	Owner       string                 `json:"owner"`
	LastInSync  time.Time              `json:"last-insync" bson:"last-insync"`
	LastTouched time.Time              `json:"last-touched" bson:"last-touched"`
	JSON        map[string]interface{} `json:"json" bson:"json"`
}

Post plog post payload

type PvrRemote

type PvrRemote struct {
	RemoteSpec         string   `json:"pvr-spec"`         // the pvr remote protocol spec available
	JSONGetURL         string   `json:"json-get-url"`     // where to pvr post stuff
	JSONKey            string   `json:"json-key"`         // what key is to use in post json [default: json]
	ObjectsEndpointURL string   `json:"objects-endpoint"` // where to store/retrieve objects
	PostURL            string   `json:"post-url"`         // where to post/announce new revisions
	PostFields         []string `json:"post-fields"`      // what fields require input
	PostFieldsOpt      []string `json:"post-fields-opt"`  // what optional fields are available [default: <empty>]
}

PvrRemote remote PVR

Jump to

Keyboard shortcuts

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