DataSources

package
v0.0.0-...-384d90b Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileSystemDataSource

func NewFileSystemDataSource(root string,
	models []asynchronousIO.Bean,
	newFunctions []func() asynchronousIO.Bean,
	makeFunctions []func(bean asynchronousIO.Bean, r io.Reader) error,
	saveFunctions []func(bean asynchronousIO.Bean, w io.Writer) error) asynchronousIO.DataSource

Types

type FileSystem

type FileSystem struct {
	// contains filtered or unexported fields
}

func (*FileSystem) Delete

func (s *FileSystem) Delete(key asynchronousIO.Key) error

func (*FileSystem) Load

func (*FileSystem) Save

func (s *FileSystem) Save(bean asynchronousIO.Bean) error

type Http

type Http struct {
	// contains filtered or unexported fields
}

func (*Http) CanReIn

func (s *Http) CanReIn() bool

func (*Http) Delete

func (s *Http) Delete(key asynchronousIO.Key) error

func (*Http) Load

func (s *Http) Load(key asynchronousIO.Key) (asynchronousIO.Bean, error)

func (*Http) Save

func (s *Http) Save(bean asynchronousIO.Bean) error

Jump to

Keyboard shortcuts

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