11 lines
292 B
Text
11 lines
292 B
Text
|
|
package testpkg
|
||
|
|
|
||
|
|
import "context"
|
||
|
|
|
||
|
|
//nd:hostservice name=Stream permission=stream
|
||
|
|
type StreamService interface {
|
||
|
|
// GetStream returns raw binary stream data with content type.
|
||
|
|
//nd:hostfunc raw=true
|
||
|
|
GetStream(ctx context.Context, uri string) (contentType string, data []byte, err error)
|
||
|
|
}
|