model

package
v0.0.0-...-521bf69 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrIncorrectSnippetType = errors.New("invalid snipppet type/id provided")

Functions

This section is empty.

Types

type Snippet

type Snippet struct {
	ID      string
	Snippet []byte
}

type SnippetController

type SnippetController interface {
	NewSnippet(snippet io.Reader, hexuuid string, st types.SnippetType) error
	FindSnippet(name string, st types.SnippetType) (*Snippet, error)
}

func NewS3SnippetController

func NewS3SnippetController(sp *storageprovider.S3Provider) SnippetController

Jump to

Keyboard shortcuts

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