Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallRequest ¶
type CallRequest struct {
Name string `json:"name"`
}
type CallResponse ¶
type CallResponse struct {
Message string `json:"message"`
}
type HelloworldService ¶
type HelloworldService struct {
// contains filtered or unexported fields
}
func NewHelloworldService ¶
func NewHelloworldService(token string) *HelloworldService
func (*HelloworldService) Call ¶
func (t *HelloworldService) Call(request *CallRequest) (*CallResponse, error)
Call returns a personalised "Hello $name" response
func (*HelloworldService) Stream ¶
func (t *HelloworldService) Stream(request *StreamRequest) (*StreamResponse, error)
Stream returns a stream of "Hello $name" responses
type StreamRequest ¶
type StreamResponse ¶
type StreamResponse struct {
Message string `json:"message"`
}
Click to show internal directories.
Click to hide internal directories.