Documentation
¶
Index ¶
Constants ¶
View Source
const ( StreamStatusQueued StreamStatus = 0 StreamStatusStarted = 1 StreamStatusRunning = 2 StreamStatusWaiting = 3 StreamStatusFinished = 4 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(address string, clientOpts ...ClientOption) (client *Client)
func (*Client) Stream ¶
func (s *Client) Stream(ctx context.Context, req MessageRequest) ( <-chan MessageResponse, error, )
type ClientAuth ¶
type ClientCancel ¶
type ClientCancel struct{}
type ClientOption ¶
func WithRouteTimeout ¶
func WithRouteTimeout(d time.Duration) ClientOption
type MessageRequest ¶
type MessageRequest interface {
Message
// contains filtered or unexported methods
}
type MessageResponse ¶
type MessageResponse interface {
Message
// contains filtered or unexported methods
}
type StreamCompleted ¶
type StreamCompleted struct {
Err error
}
type StreamOutput ¶
type StreamOutput []interface{}
func (StreamOutput) Unmarshal ¶
func (s StreamOutput) Unmarshal(schema StreamSchema, out interface{})
func (StreamOutput) UnmarshalRaw ¶
func (s StreamOutput) UnmarshalRaw(schema StreamSchema) map[string]interface{}
type StreamProgress ¶
type StreamProgress struct {
Status StreamStatus
Progress float64
Total float64
Units string
}
type StreamSchema ¶
type StreamSchema []TypeHint
func (*StreamSchema) MarshalJSON ¶
func (a *StreamSchema) MarshalJSON() ([]byte, error)
func (*StreamSchema) UnmarshalJSON ¶
func (a *StreamSchema) UnmarshalJSON(b []byte) (err error)
type StreamStarted ¶
type StreamStarted struct{}
type StreamStatus ¶
type StreamStatus int
Source Files
¶
Click to show internal directories.
Click to hide internal directories.