cassette

package
v0.0.0-...-39dd9a3 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetNotFound

type AssetNotFound struct {
	Path string
}

func (AssetNotFound) Error

func (a AssetNotFound) Error() string

type CannotQuery

type CannotQuery struct{}

func (CannotQuery) Error

func (c CannotQuery) Error() string

type Code

type Code struct {
	Methods []string
	Route   string
	Code    string
}

type Control

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

func LoadControlCassette

func LoadControlCassette(ctx context.Context, tape string, readwrite bool, enableData bool) (*Control, error)

func (*Control) Close

func (c *Control) Close() error

func (*Control) CopyAsset

func (c *Control) CopyAsset(ctx context.Context, out io.Writer, assetPath string) (int64, string, error)

func (*Control) ImportCSVDataset

func (c *Control) ImportCSVDataset(ctx context.Context, table string, csvStream io.Reader) (string, int64, error)

func (*Control) ListAssets

func (c *Control) ListAssets(ctx context.Context) ([]string, error)

func (*Control) ListRoutes

func (c *Control) ListRoutes(ctx context.Context) ([]Code, error)

func (*Control) MapRoute

func (c *Control) MapRoute(ctx context.Context, methods []string, route string, asset string) error

func (*Control) Query

func (c *Control) Query(ctx context.Context, out io.Writer, maxSize int, query string, args ...interface{}) error

func (*Control) Queryable

func (c *Control) Queryable() bool

func (*Control) StoreAsset

func (c *Control) StoreAsset(ctx context.Context, assetPath string, mimetype string, content string) (int64, error)

func (*Control) ToggleCodebase

func (c *Control) ToggleCodebase(ctx context.Context, assetPath string, enable bool) error

type DatasetNotAllowed

type DatasetNotAllowed struct{}

func (DatasetNotAllowed) Error

func (d DatasetNotAllowed) Error() string

type InvalidCodebase

type InvalidCodebase struct {
	Path     string
	MimeType string
	// contains filtered or unexported fields
}

func (InvalidCodebase) Error

func (i InvalidCodebase) Error() string

func (InvalidCodebase) Unwrap

func (i InvalidCodebase) Unwrap() error

type InvalidColumnName

type InvalidColumnName struct {
	Name string
}

func (InvalidColumnName) Error

func (r InvalidColumnName) Error() string

type InvalidTableName

type InvalidTableName struct {
	Name string
}

func (InvalidTableName) Error

func (r InvalidTableName) Error() string

type InvalidTextContent

type InvalidTextContent struct {
	Path     string
	MimeType string
}

func (InvalidTextContent) Error

func (i InvalidTextContent) Error() string

type QueryError

type QueryError struct {
	Query  string
	Params []interface{}
	// contains filtered or unexported fields
}

func (QueryError) Error

func (q QueryError) Error() string

func (QueryError) Unwrap

func (q QueryError) Unwrap() error

type ReadonlyCassette

type ReadonlyCassette struct{}

func (ReadonlyCassette) Error

func (r ReadonlyCassette) Error() string

type Row

type Row []interface{}

type WriteOverflow

type WriteOverflow struct {
	Total int
	Max   int
	Next  int
}

func (WriteOverflow) Error

func (o WriteOverflow) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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