mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
* functions: modify datastore to accomodate hot containers support * functions: protocol between functions and hot containers * functions: add hot containers clockwork * fn: add hot containers support
20 lines
341 B
Go
20 lines
341 B
Go
package protocol
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/iron-io/functions/api/runner/task"
|
|
)
|
|
|
|
// DefaultProtocol is the protocol used by cold-containers
|
|
type DefaultProtocol struct {
|
|
}
|
|
|
|
func (p *DefaultProtocol) IsStreamable() bool {
|
|
return false
|
|
}
|
|
|
|
func (p *DefaultProtocol) Dispatch(ctx context.Context, t task.Request) error {
|
|
return nil
|
|
}
|