Documentation ¶
Index ¶
- Constants
- func GFF3GenericConsumer(st Storage, key, t string, in <-chan string) (<-chan error, error)
- func GFF3LineProducer(r io.Reader) (<-chan string, <-chan error, error)
- func GFF3RegionConsumer(st Storage, key, t string, in <-chan string) (<-chan error, error)
- func GFF3Splitter(in <-chan string, len int) ([]chan string, <-chan error, error)
- func Handler(event functions.Event, ctx functions.Context) (string, error)
- func JSONAPIError(err error) (string, int, error)
- func MergeErrors(cs ...<-chan error) <-chan error
- func WaitForPipeline(errs ...<-chan error) error
- type GFF3Consumer
- type MetaData
- type RedisStorage
- func (r *RedisStorage) ClearAll(prefix string) error
- func (r *RedisStorage) Close() error
- func (r *RedisStorage) Delete(key string, fields ...string) error
- func (r *RedisStorage) Get(key, field string) (string, error)
- func (r *RedisStorage) IsExist(key, field string) bool
- func (r *RedisStorage) Set(key, field, val string) error
- type Storage
Constants ¶
View Source
const (
KEY_PREFIX = "dashboard"
)
Variables ¶
This section is empty.
Functions ¶
func GFF3GenericConsumer ¶
func GFF3RegionConsumer ¶
func GFF3Splitter ¶
func JSONAPIError ¶
JSONAPIError generate JSONAPI formatted http error from an error object
func MergeErrors ¶
MergeErrors merges multiple channels of errors. Based on https://blog.golang.org/pipelines.
func WaitForPipeline ¶
WaitForPipeline waits for results from all error channels. It returns early on the first error.
Types ¶
type GFF3Consumer ¶
type RedisStorage ¶
type RedisStorage struct {
// contains filtered or unexported fields
}
func (*RedisStorage) ClearAll ¶
func (r *RedisStorage) ClearAll(prefix string) error
func (*RedisStorage) Close ¶
func (r *RedisStorage) Close() error
func (*RedisStorage) IsExist ¶
func (r *RedisStorage) IsExist(key, field string) bool
func (*RedisStorage) Set ¶
func (r *RedisStorage) Set(key, field, val string) error
Click to show internal directories.
Click to hide internal directories.