1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-12 22:07:47 +02:00

add service interfaces

This commit is contained in:
Asim Aslam
2021-12-30 08:44:34 +00:00
parent 5fe884e59f
commit af5e70a1d6
55 changed files with 334 additions and 0 deletions

View File

@ -4,6 +4,11 @@ import (
"go.m3o.com/client"
)
type Helloworld interface {
Call(*CallRequest) (*CallResponse, error)
Stream(*StreamRequest) (*StreamResponseStream, error)
}
func NewHelloworldService(token string) *HelloworldService {
return &HelloworldService{
client: client.NewClient(&client.Options{