github.com/iron-io/functions@v0.0.0-20180820112432-d59d7d1c40b2/api/runner/protocol/default.go (about) 1 package protocol 2 3 import ( 4 "context" 5 6 "github.com/iron-io/functions/api/runner/task" 7 ) 8 9 // DefaultProtocol is the protocol used by cold-containers 10 type DefaultProtocol struct { 11 } 12 13 func (p *DefaultProtocol) IsStreamable() bool { 14 return false 15 } 16 17 func (p *DefaultProtocol) Dispatch(ctx context.Context, t task.Request) error { 18 return nil 19 }