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:
@ -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{
|
||||
|
Reference in New Issue
Block a user