store

package
v0.0.0-...-20de804 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(ctx context.Context, dc nykya.Config, opts AddOptions) error

Add an object from a path

func Scan

func Scan(ctx context.Context, root string) ([]*nykya.RenderInput, error)

Scan scans a directory for posted content

Types

type AddOptions

type AddOptions struct {
	// Title is the title of the post
	Title string
	// Content is the content: may be a string or filename
	Content string
	// Kind is the kind of content (thought, post, image)
	Kind string
	// Format is the format of the content (JPEG, HTML, etc)
	Format string
	// Timestamp is when the content was posted
	Timestamp time.Time
}

AddOptions are options that can be passed to the add command

Jump to

Keyboard shortcuts

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