Documentation ¶
Index ¶
- type AssetNotFound
- type CannotQuery
- type Code
- type Control
- func (c *Control) Close() error
- func (c *Control) CopyAsset(ctx context.Context, out io.Writer, assetPath string) (int64, string, error)
- func (c *Control) ImportCSVDataset(ctx context.Context, table string, csvStream io.Reader) (string, int64, error)
- func (c *Control) ListAssets(ctx context.Context) ([]string, error)
- func (c *Control) ListRoutes(ctx context.Context) ([]Code, error)
- func (c *Control) MapRoute(ctx context.Context, methods []string, route string, asset string) error
- func (c *Control) Query(ctx context.Context, out io.Writer, maxSize int, query string, ...) error
- func (c *Control) Queryable() bool
- func (c *Control) StoreAsset(ctx context.Context, assetPath string, mimetype string, content string) (int64, error)
- func (c *Control) ToggleCodebase(ctx context.Context, assetPath string, enable bool) error
- type DatasetNotAllowed
- type InvalidCodebase
- type InvalidColumnName
- type InvalidTableName
- type InvalidTextContent
- type QueryError
- type ReadonlyCassette
- type Row
- type WriteOverflow
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 Control ¶
type Control struct {
// contains filtered or unexported fields
}
func LoadControlCassette ¶
func (*Control) ImportCSVDataset ¶
func (*Control) StoreAsset ¶
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 ¶
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 WriteOverflow ¶
func (WriteOverflow) Error ¶
func (o WriteOverflow) Error() string
Click to show internal directories.
Click to hide internal directories.