gridfs

package
v0.0.0-...-4ef8731 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Bucket *gridfs.Bucket
}

func (Client) DeleteFileFromLocation

func (c Client) DeleteFileFromLocation(s string) error

func (Client) ReadFileContentFromLocation

func (c Client) ReadFileContentFromLocation(s string) (string, error)

func (Client) WriteFileToLocation

func (c Client) WriteFileToLocation(content string, id primitive.ObjectID) error

type MarkdownResolver

type MarkdownResolver struct {
	Client *Client
}

func (MarkdownResolver) ResolveMarkdownFromLocationString

func (m MarkdownResolver) ResolveMarkdownFromLocationString(s string) (*model.Markdown, error)

type MarkdownWriter

type MarkdownWriter struct {
	Client *Client
}

func (MarkdownWriter) DeleteMarkdown

func (m MarkdownWriter) DeleteMarkdown(ref string) error

func (MarkdownWriter) WriteMarkdown

func (m MarkdownWriter) WriteMarkdown(markdown *model.Markdown) (string, error)

Jump to

Keyboard shortcuts

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