Documentation
¶
Overview ¶
Package service is the service layer of the gRPC client SDK example. It hides the SDK's request/endpoint mechanics behind plain business methods, matching the HTTP client SDK example's service layout.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DemoService ¶
type DemoService interface {
Echo(message string) (string, error)
Download(key string) ([]byte, error)
}
DemoService defines business operations against the remote Demo service.
type Factory ¶
type Factory interface {
Demo() DemoService
}
Factory is the entry point of the service layer.