item

package
v0.0.0-...-27ce57f Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item interface {
	Name() string
	Content() (io.ReadCloser, error)
}

Item represents a stored component.

type Memory

type Memory struct {
	ID       string
	Contents []byte
}

Memory is a static Item.

func (Memory) Content

func (m Memory) Content() (io.ReadCloser, error)

Content implements the Item interface.

func (Memory) Name

func (m Memory) Name() string

Name implements the Item interface.

Jump to

Keyboard shortcuts

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