-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhandler.go
More file actions
26 lines (20 loc) · 762 Bytes
/
handler.go
File metadata and controls
26 lines (20 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package main
import (
"context"
"github.com/BeroKiTeer/KitBridge/biz/service"
"github.com/BeroKiTeer/KitBridge/kitex_gen/api"
stability "github.com/BeroKiTeer/KitBridge/kitex_gen/thrift/stability"
)
// STServiceImpl implements the last service interface defined in the IDL.
type STServiceImpl struct{}
// TestSTReq implements the STServiceImpl interface.
func (s *STServiceImpl) TestSTReq(ctx context.Context, req *stability.STRequest) (resp *stability.STResponse, err error) {
// TODO: Your code here...
return
}
type HelloImpl struct{}
// Echo implements the HelloImpl interface.
func (s *HelloImpl) Echo(ctx context.Context, req *api.Request) (resp *api.Response, err error) {
resp, err = service.NewEchoService(ctx).Run(req)
return resp, err
}