helloworld

package
v0.0.0-...-795d1ad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

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 StreamRequest struct {
	// the number of messages to send back
	Messages int64  `json:"messages"`
	Name     string `json:"name"`
}

type StreamResponse

type StreamResponse struct {
	Message string `json:"message"`
}

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL