transform

package
v2.0.0-...-76fd7a6 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListTransformerFunc

type ListTransformerFunc func(apiOp *types.APIRequest, schema *types.Schema, data types.APIObject, opt *types.QueryOptions) (types.APIObject, error)

type Store

type Store struct {
	Store             types.Store
	Transformer       TransformerFunc
	ListTransformer   ListTransformerFunc
	StreamTransformer StreamTransformerFunc
}

func (*Store) ByID

func (s *Store) ByID(apiOp *types.APIRequest, schema *types.Schema, id string) (types.APIObject, error)

func (*Store) Create

func (s *Store) Create(apiOp *types.APIRequest, schema *types.Schema, data types.APIObject) (types.APIObject, error)

func (*Store) Delete

func (s *Store) Delete(apiOp *types.APIRequest, schema *types.Schema, id string) (types.APIObject, error)

func (*Store) List

func (s *Store) List(apiOp *types.APIRequest, schema *types.Schema, opt *types.QueryOptions) (types.APIObject, error)

func (*Store) Update

func (s *Store) Update(apiOp *types.APIRequest, schema *types.Schema, data types.APIObject, id string) (types.APIObject, error)

func (*Store) Watch

func (s *Store) Watch(apiOp *types.APIRequest, schema *types.Schema, w types.WatchRequest) (chan types.APIEvent, error)

type StreamTransformerFunc

type StreamTransformerFunc func(apiOp *types.APIRequest, schema *types.Schema, data chan types.APIEvent, w types.WatchRequest) (chan types.APIEvent, error)

type TransformerFunc

type TransformerFunc func(apiOp *types.APIRequest, schema *types.Schema, data types.APIObject, opt *types.QueryOptions) (types.APIObject, error)

Jump to

Keyboard shortcuts

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