{"modulePath":"github.com/Stackdome/stackdome","version":"v0.0.7-alpha","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package interfaces\n\n## Types\n\n```go\ntype ServerSideStreamable interface {\n\tStream(ctx context.Context) (\u003c-chan StreamObject, error)\n}\n```\n\n```go\ntype StreamObject interface {\n\tData() string\n\tError() error\n}\n```\n\n```go\ntype StreamObjectWithID interface {\n\tStreamObject\n\tID() string\n}\n```\nStreamObjectWithID is an optional extension of StreamObject that supplies an SSE \\`id:\\` for the frame. The stream handler writes the id line before the data line when a StreamObject implements it.\n\n","path":"github.com/Stackdome/stackdome/pkg/interfaces","name":"interfaces","synopsis":"","isRedistributable":true}
